problem with gcc datetime

From: Date: Wed, 15 Aug 2001 18:46:40 +0000
Subject: problem with gcc datetime
Groups: php.dev 
Request: Send a blank email to php-dev+get-63322@lists.php.net to get a copy of this message
i'm getting a rather wierd problem here. i'm trying a standard make of the php source (actually of the php-4.0.6 source.) i keep getting this compile error on the datetime.c file. i've also gone to cvs and grabbed the latest datetime.c and gotten the same results. is anyone else getting something simular. this is on a win2k box with cygwin. i also included an version of gcc at the bottom if it any help . . . ---------------------------------------------------------------------------- ------------- gcc -I. -I//e/php-4.0.6/ext/standard -I//e/php-4.0.6/main -I//e/php-4.0.6 - I//e /php-4.0.6/Zend -I//e/php-4.0.6/ext/mysql/libmysql -I//e/php-4.0.6/ext/xml/e xpat /xmltok -I//e/php-4.0.6/ext/xml/expat/xmlparse -I//e/php-4.0.6/TSRM -DSUPPO RT_U TF8 -DXML_BYTE_ORDER=12 -g -O2 -c datetime.c && touch datetime.lo datetime.c: In function `php_mktime': datetime.c:188: wrong type argument to unary minus datetime.c: In function `php_date': datetime.c:442: invalid operands to binary / datetime.c:442: invalid operands to binary % datetime.c:450: wrong type argument to unary minus datetime.c:450: wrong type argument to unary minus datetime.c:503: invalid operands to binary / datetime.c:504: invalid operands to binary % datetime.c: In function `php_if_checkdate': datetime.c:693: too many arguments to function `is_numeric_string' make[3]: *** [datetime.lo] Error 1 make[3]: Leaving directory `//e/php-4.0.6/ext/standard' $ gcc --version 2.95.3-5 ---------------------------------------------------------------------------- ------------- Chris Gardner Book Systems, Inc. cgardner@booksys.com

« previous php.dev (#63322) next »