From: pauls at sellingsource dot com Operating system: Mac OS X 10.3.6 PHP version: 4.3.10RC1 PHP Bug Type: Compile Failure Bug description: error: parse error before "one"
Description: ------------ It appears there is an uncommented comment at line 228 and 229 of /php-5.0.3RC1/Zend/zend_strtod.c. This error occurs for me in both php-5.0.3RC1 and php-4.3.10RC1. The fix is to comment those two lines of code. Reproduce code: --------------- ./configure --with-xml --with-zlib --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --enable-wddx --enable-soap make gcc -IZend/ -I/php-5.0.3RC1/Zend/ -DPHP_ATOM_INC -I/php-5.0.3RC1/include -I/php-5.0.3RC1/main -I/php-5.0.3RC1 -I/php-5.0.3RC1/Zend -I/usr/include/libxml2 -I/usr/local/include -I/usr/local/mysql/include -no-cpp-precomp -I/php-5.0.3RC1/TSRM -g -O2 -c /php-5.0.3RC1/Zend/zend_strtod.c -o Zend/zend_strtod.o && echo > Zend/zend_strtod.lo /php-5.0.3RC1/Zend/zend_strtod.c:228: error: parse error before "one" /php-5.0.3RC1/Zend/zend_strtod.c:229: error: parse error before "IBM" /php-5.0.3RC1/Zend/zend_strtod.c:235: error: parse error before '}' token /php-5.0.3RC1/Zend/zend_strtod.c:235: warning: data definition has no type or storage class /php-5.0.3RC1/Zend/zend_strtod.c: In function `ulp': /php-5.0.3RC1/Zend/zend_strtod.c:923: error: parse error before "x" /php-5.0.3RC1/Zend/zend_strtod.c:925: error: parse error before "a" /php-5.0.3RC1/Zend/zend_strtod.c:927: error: `x' undeclared (first use in this function) /php-5.0.3RC1/Zend/zend_strtod.c:927: error: (Each undeclared identifier is reported only once /php-5.0.3RC1/Zend/zend_strtod.c:927: error: for each function it appears in.) /php-5.0.3RC1/Zend/zend_strtod.c:935: error: `a' undeclared (first use in this function) /php-5.0.3RC1/Zend/zend_strtod.c: In function `b2d': /php-5.0.3RC1/Zend/zend_strtod.c:965: error: parse error before "d" /php-5.0.3RC1/Zend/zend_strtod.c:983: error: `d' undeclared (first use in this function) /php-5.0.3RC1/Zend/zend_strtod.c: In function `d2b': /php-5.0.3RC1/Zend/zend_strtod.c:1036: error: parse error before "d" /php-5.0.3RC1/Zend/zend_strtod.c:1041: error: `d' undeclared (first use in this function) /php-5.0.3RC1/Zend/zend_strtod.c: In function `ratio': /php-5.0.3RC1/Zend/zend_strtod.c:1167: error: parse error before "da" /php-5.0.3RC1/Zend/zend_strtod.c:1170: error: `da' undeclared (first use in this function) /php-5.0.3RC1/Zend/zend_strtod.c:1171: error: `db' undeclared (first use in this function) /php-5.0.3RC1/Zend/zend_strtod.c: In function `zend_strtod': /php-5.0.3RC1/Zend/zend_strtod.c:1238: error: parse error before "rv" /php-5.0.3RC1/Zend/zend_strtod.c:1247: error: `rv' undeclared (first use in this function) /php-5.0.3RC1/Zend/zend_strtod.c:1480: error: `rv0' undeclared (first use in this function) make: *** [Zend/zend_strtod.lo] Error 1 -- Edit bug report at http://bugs.php.net/?id=30948&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30948&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30948&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30948&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30948&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30948&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30948&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30948&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30948&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30948&r=support Expected behavior: http://bugs.php.net/fix.php?id=30948&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30948&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30948&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30948&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30948&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30948&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30948&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30948&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30948&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30948&r=mysqlcfg