From: adam dot jaber dot ctr at dla dot mil Operating system: AIX 5.3 PHP version: 5.2.8 PHP Bug Type: *Compile Issues Bug description: Run make to compile, comes back with error
Description: ------------ I set up php to work with apache and db2. I try to run the make command to compile and keeps coming back with an error. Apache httpd 2.2.10 is installed. Reproduce code: --------------- #./configure --enable-cli --disable-cgi --with-apxs2=/usr/local/bin/apxs --with-ibm-db2=/data/db2/db2inst1/sqllib # make #/bin/sh /usr/local/src/php5/php-5.2.8/libtool --silent --preserve-dup-deps --mode=compile gcc -I/usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib -Iext/pcre/ -I/usr/local/src/php5/php-5.2.8/ext/pcre/ -DPHP_ATOM_INC -I/usr/local/src/php5/php-5.2.8/include -I/usr/local/src/php5/php-5.2.8/main -I/usr/local/src/php5/php-5.2.8 -I/usr/include/libxml2 -I/usr/local/src/php5/php-5.2.8/ext/date/lib -I/usr/local/src/php5/php-5.2.8/TSRM -I/usr/local/src/php5/php-5.2.8/Zend -I/usr/include -g -O2 -c /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_chartables.c -o ext/pcre/pcrelib/pcre_chartables.lo In file included from /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_chartables.c:25: /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:976: error: parse error before 'BOOL' /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:976: warning: no semicolon at end of struct or union /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:980: error: parse error before '}' token /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:980: warning: data definition has no type or storage class /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1027: error: parse error before 'BOOL' /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1027: warning: no semicolon at end of struct or union /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1028: warning: data definition has no type or storage class /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1029: error: parse error before 'noteol' /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1029: warning: data definition has no type or storage class /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1030: error: parse error before 'utf8' /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1030: warning: data definition has no type or storage class /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1031: error: parse error before 'jscript_compat' /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1031: warning: data definition has no type or storage class /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1032: error: parse error before 'endonly' /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1032: warning: data definition has no type or storage class /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1033: error: parse error before 'notempty' /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1033: warning: data definition has no type or storage class /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1034: error: parse error before 'partial' /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1034: warning: data definition has no type or storage class /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1035: error: parse error before 'hitend' /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1035: warning: data definition has no type or storage class /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1036: error: parse error before 'bsr_anycrlf' /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1036: warning: data definition has no type or storage class /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1049: error: parse error before '}' token /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1049: warning: data definition has no type or storage class /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1137: error: parse error before 'php__pcre_is_newline' /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1138: error: parse error before 'BOOL' /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1138: warning: data definition has no type or storage class /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1143: error: parse error before 'php__pcre_was_newline' /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1144: error: parse error before 'BOOL' /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1144: warning: data definition has no type or storage class /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1145: error: parse error before 'php__pcre_xclass' /usr/local/src/php5/php-5.2.8/ext/pcre/pcrelib/pcre_internal.h:1145: warning: data definition has no type or storage class make: 1254-004 The error code from the last command is 1. Stop. Expected result: ---------------- Want to be able to compile php. Actual result: -------------- NEED HELP! -- Edit bug report at http://bugs.php.net/?id=46892&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46892&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46892&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46892&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46892&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46892&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46892&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46892&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46892&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46892&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46892&r=support Expected behavior: http://bugs.php.net/fix.php?id=46892&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46892&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46892&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46892&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46892&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46892&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46892&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46892&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46892&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46892&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46892&r=mysqlcfg