php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #367 functions/datetime.c won't compile
Submitted: 1998-05-08 17:52 UTC Modified: 1998-05-12 14:54 UTC
From: hal at enteract dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0 Latest CVS OS: FreeBSD-2.2.5
Private report: No CVE-ID: None
 [1998-05-08 17:52 UTC] hal at enteract dot com
gmake output:

functions/datetime.c:67: `timezone' redeclared as different kind of symbol
/usr/include/time.h:116: previous declaration of `timezone'
functions/datetime.c:83: warning: no previous prototype for `_php3_mktime'
gmake: *** [functions/datetime.o] Error 1

from datetime.c:
#if HAVE_TZSET
extern time_t timezone, altzone;
#endif

from /usr/include/time.h:
char *timezone __P((int, int));

I think the extern "timezone" in datetime.c needs
to be turned off in FreeBSD builds. Also the
assignment further in datetime.c should be
bypassed:
gmadjust=timezone/3600;

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-05-12 14:54 UTC] zeev
Fixed by Rasmus
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 10:01:35 2025 UTC