Re: Bug #954: datetime.c uses a struct member that doesn't exist

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Bug #954: datetime.c uses a struct member that doesn't exist
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-2607@lists.php.net to get a copy of this message
> gcc -g -O2 -O2 -I. -I. -I/opt/home/viinitupa/vt2/utils/apache_1.3.1/src/include > -I/opt/home/viinitupa/vt2/utils/apache_1.3.1/src/os/unix > -I/opt/home/viinitupa/vt2/solid/include -c functions/datetime.c -o functions/datetime.o > functions/datetime.c: In function `_php3_mktime': > functions/datetime.c:105: structure has no member named `tm_gmtoff' > make: *** [functions/datetime.o] Error 1 > > The code there looks like the following: > #if HAVE_TZSET > tzset(); > #if HAVE_TM_ZONE > gmadjust=(tn->tm_gmtoff)/3600; > #else > gmadjust=timezone/3600; > #endif Look at your config.h file. Is HAVE_TM_ZONE really defined? On my Solaris 2.5.1 box this does not get defined, so it would be interesting to see how it is getting set on yours. -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#2607) next »