Bug #10422: cant compile with --with-apxs2
| From: | petko at 5co dot org | Date: | Fri, 20 Apr 2001 13:15:37 +0000 |
| Subject: | Bug #10422: cant compile with --with-apxs2 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52050@lists.php.net to get a copy of this message | ||
From: petko@5co.org
Operating system: Linux 2.2.18 #sparc64
PHP version: 4.0.4pl1
PHP Bug Type: Compile Failure
Bug description: cant compile with --with-apxs2
I made configure in this way:
./configure --with-mysql=/home/petkok/mysql --with-apxs2=/home/petkok/httpd/bin/apxs
--with-config-file-path=/home/petkok/php4
when i run "make" i receive this error:
make[1]: Entering directory `/home/petkok/php-4.0.4pl1/sapi/apache2filter'
/bin/sh /home/petkok/php-4.0.4pl1/libtool --silent --mode=compile gcc -I.
-I/home/petkok/php-4.0.4pl1/sapi/apache2filter -I/home/petkok/php-4.0.4pl1/main
-I/home/petkok/php-4.0.4pl1 -I/home/petkok/httpd/include -I/home/petkok/httpd/include/apr
-I/home/petkok/php-4.0.4pl1/Zend -I/home/petkok/mysql/include/mysql
-I/home/petkok/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/petkok/php-4.0.4pl1/ext/xml/expat/xmlparse
-I/home/petkok/php-4.0.4pl1/TSRM -D_REENTRANT -DXML_BYTE_ORDER=21 -I../TSRM -g -O2 -pthread -c
sapi_apache2.c
In file included from sapi_apache2.c:44:
php_apache.h:27: parse error before `ap_bucket_brigade'
php_apache.h:27: warning: no semicolon at end of struct or union
php_apache.h:35: parse error before `}'
php_apache.h:35: warning: data definition has no type or storage class
sapi_apache2.c: In function `php_apache_sapi_ub_write':
sapi_apache2.c:49: `ap_bucket' undeclared (first use in this function)
sapi_apache2.c:49: (Each undeclared identifier is reported only once
sapi_apache2.c:49: for each function it appears in.)
....
sapi_apache2.c:453: warning: excess elements in scalar initializer
sapi_apache2.c:453: warning: (near initialization for `php4_module')
sapi_apache2.c:455: warning: excess elements in scalar initializer
sapi_apache2.c:455: warning: (near initialization for `php4_module')
sapi_apache2.c:455: warning: data definition has no type or storage class
make[1]: *** [sapi_apache2.lo] Error 1
make[1]: Leaving directory `/home/petkok/php-4.0.4pl1/sapi/apache2filter'
make: *** [all-recursive] Error 1
--
Edit Bug report at: http://bugs.php.net/?id=10422&edit=1