From: manish_dharwadker at yahoo dot com Operating system: Mandrake 10.0 RC1 PHP version: 5.0.0RC1 PHP Bug Type: Compile Failure Bug description: PHP5 + Apache2 + Mandrake 10/RC1 Fails
Description: ------------ OS: Mandrake 10.0 RC1 Binutils: binutils-2.14.90.0.7-2mdk Make: GNU Make 3.80 AutoConf: 2.13 Apache: Latest 2.0 CVS Pull 3/31 AND 2.0.49 (Stable) PHP5: Latest 5.0 RC1 Build Pull 3/31 (AND php4-stable) OpenSSL: 0.9.7d MySQL: 4.0.48/4.1.1-alpha/5.0-dev (ALL) Error Occurence: With ALL PHP Builds 4 stable AND 5 dev I checked the bug list and could not find one. Basically, the sapi/.../mod_php5.lo fails with various parse errors, etc. in apr.h. Please advise. - Manish. Compiled With: ./configure --prefix=/web --with-apxs2=/web/bin/apxs --enable-shared --enable-debug --enable-safe-mode --enable-sigchild --with-zlib=/usr --enable-memory-limit --with-openssl=/web --with-mysql=/web Reproduce code: --------------- Standard code ... no modifications Expected result: ---------------- Fully compiled libphp4/5.so and other binaries Actual result: -------------- Log: gcc -I/web/include -I/web/include -I/web/include -Isapi/apache2handler/ -I/software/php-5.0.0RC1/sapi/apache2handler/ -DPHP_ATOM_INC -I/software/php-5.0.0RC1/include -I/software/php-5.0.0RC1/main -I/software/php-5.0.0RC1 -I/software/php-5.0.0RC1/Zend -I/usr/local/include/libxml2 -I/web/include -I/web/include/mysql -I/software/php-5.0.0RC1/TSRM -g -Wall -c /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c -fPIC -DPIC -o sapi/apache2handler/mod_php5.lo In file included from /web/include/ap_config.h:19, from /web/include/httpd.h:29, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr.h:262: error: parse error before "apr_off_t" /web/include/apr.h:262: warning: type defaults to `int' in declaration of `apr_off_t' /web/include/apr.h:262: warning: data definition has no type or storage class In file included from /web/include/apr_file_io.h:28, from /web/include/apr_network_io.h:25, from /web/include/httpd.h:38, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_file_info.h:184: error: parse error before "apr_off_t" /web/include/apr_file_info.h:184: warning: no semicolon at end of struct or union /web/include/apr_file_info.h:186: warning: type defaults to `int' in declaration of `csize' /web/include/apr_file_info.h:186: warning: data definition has no type or storage class /web/include/apr_file_info.h:192: error: `ctime' redeclared as different kind of symbol /usr/include/time.h:254: error: previous declaration of `ctime' /web/include/apr_file_info.h:199: error: parse error before '}' token In file included from /web/include/apr_network_io.h:25, from /web/include/httpd.h:38, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_file_io.h:503: error: parse error before "apr_off_t" /web/include/apr_file_io.h:692: error: parse error before "apr_off_t" In file included from /web/include/httpd.h:38, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_network_io.h:535: error: parse error before "apr_off_t" In file included from /web/include/apr_buckets.h:31, from /web/include/httpd.h:39, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_mmap.h:133: error: parse error before "apr_off_t" /web/include/apr_mmap.h:160: error: parse error before "apr_off_t" In file included from /web/include/httpd.h:39, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/apr_buckets.h:241: error: parse error before "apr_off_t" /web/include/apr_buckets.h:241: warning: no semicolon at end of struct or union /web/include/apr_buckets.h:243: error: conflicting types for `data' /software/php-5.0.0RC1/main/php.h:261: error: previous declaration of `data' /web/include/apr_buckets.h:251: error: `free' redeclared as different kind of symbol /usr/include/stdlib.h:569: error: previous declaration of `free' /web/include/apr_buckets.h:254: error: parse error before '}' token /web/include/apr_buckets.h:633: error: field `b' has incomplete type /web/include/apr_buckets.h:701: error: parse error before "apr_off_t" /web/include/apr_buckets.h:724: error: parse error before "apr_off_t" /web/include/apr_buckets.h:760: error: parse error before "apr_off_t" /web/include/apr_buckets.h:1154: error: parse error before "apr_off_t" /web/include/apr_buckets.h:1353: error: parse error before "apr_off_t" /web/include/apr_buckets.h:1367: error: parse error before "apr_off_t" /web/include/apr_buckets.h:1417: error: parse error before "apr_off_t" /web/include/apr_buckets.h:1433: error: parse error before "apr_off_t" In file included from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:24, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/httpd.h:778: error: parse error before "apr_off_t" /web/include/httpd.h:778: warning: no semicolon at end of struct or union /web/include/httpd.h:780: warning: type defaults to `int' in declaration of `bytes_sent' /web/include/httpd.h:780: warning: data definition has no type or storage class /web/include/httpd.h:791: error: parse error before "clength" /web/include/httpd.h:791: warning: type defaults to `int' in declaration of `clength' /web/include/httpd.h:791: warning: data definition has no type or storage class /web/include/httpd.h:794: error: parse error before "remaining" /web/include/httpd.h:794: warning: type defaults to `int' in declaration of `remaining' /web/include/httpd.h:794: warning: data definition has no type or storage class /web/include/httpd.h:796: error: parse error before "read_length" /web/include/httpd.h:796: warning: type defaults to `int' in declaration of `read_length' /web/include/httpd.h:796: warning: data definition has no type or storage class /web/include/httpd.h:927: error: parse error before '}' token In file included from /web/include/http_core.h:22, from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:26, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/util_filter.h:140: error: parse error before "apr_off_t" /web/include/util_filter.h:276: error: parse error before "apr_off_t" In file included from /software/php-5.0.0RC1/sapi/apache2handler/php_apache.h:26, from /software/php-5.0.0RC1/sapi/apache2handler/mod_php5.c:26: /web/include/http_core.h:204: error: parse error before "ap_get_limit_req_body" /web/include/http_core.h:204: warning: type defaults to `int' in declaration of `ap_get_limit_req_body' /web/include/http_core.h:204: warning: data definition has no type or storage class /web/include/http_core.h:263: error: `ap_auth_type' redeclared as different kind of symbol /web/include/httpd.h:850: error: previous declaration of `ap_auth_type' /web/include/http_core.h:617: error: parse error before "apr_off_t" /web/include/httpd.h:875: error: storage size of `finfo' isn't known make: *** [sapi/apache2handler/mod_php5.lo] Error 1 -- Edit bug report at http://bugs.php.net/?id=27791&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27791&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27791&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27791&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27791&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27791&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27791&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27791&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27791&r=support Expected behavior: http://bugs.php.net/fix.php?id=27791&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27791&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27791&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27791&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27791&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27791&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27791&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27791&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27791&r=float