|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-02-28 15:05 UTC] mentat at azsoft dot pl
in sapi/apache2filter/sapi_apache2.c sapi_apache2.c: In function `php_apache_sapi_register_variables': sapi_apache2.c:148: warning: initialization discards qualifiers from pointer target type sapi_apache2.c: In function `php_input_filter': sapi_apache2.c:247: incompatible type for argument 4 of `ap_get_brigade' sapi_apache2.c:247: too few arguments to function `ap_get_brigade' sapi_apache2.c: In function `php_register_hook': sapi_apache2.c:408: warning: passing arg 2 of `ap_register_input_filter' from incompatible pointer type PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 07:00:02 2025 UTC |
Having the same problem with apache 2.0.32, PHP 4.1.2, Linux kernal 2.2.18, gcc 2.91.66, make 3.77, zlib 1.1.3, mysql 3.23.47, posgresql 7.2. /etc/ld.so.cache has all the various shared libraries listed (and then some). Apache, zlib, mysql, postresql all load and operate fine (with limited testing) PHP however: './configure' \ '--with-zlib' \ '--with-zlib-dir=/usr/local/zlib' \ '--with-apxs2=/usr/local/apache2/bin/apxs' \ '--with-pgsql=shared,/usr/local/pgsql' \ '--with-mysql=shared,/usr/local/mysql' \ '--enable-force-cgi-redirect' \ '--enable-debug' \ configures fine. make results in sapi_apache2.c: In function `php_apache_sapi_register_variables': sapi_apache2.c:148: warning: initialization discards `const' from pointer target type sapi_apache2.c: In function `php_input_filter': sapi_apache2.c:248: incompatible type for argument 4 of `ap_get_brigade' sapi_apache2.c:248: too few arguments to function `ap_get_brigade' sapi_apache2.c: In function `php_register_hook': sapi_apache2.c:409: warning: passing arg 2 of `ap_register_input_filter' from in compatible pointer type make[3]: *** [sapi_apache2.lo] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1 make then ends. The make compile line that results in this error is make[3]: Entering directory `/usr/local/php-4.1.2/sapi/apache2filter' /bin/sh /usr/local/php-4.1.2/libtool --mode=compile /usr/local/php-4.1.2/meta_ccld -I. -I/usr/local/php-4.1.2/sapi/apache2filter -I/usr/local/php-4.1.2/main -I/usr/local/php-4.1.2 -I/usr/local/apache2/include -I/usr/local/php-4.1.2/Zend -I/usr/local/mysql/include -I/usr/local/php-4.1.2/ext/xml/expat -D_REENTRANT -I/usr/local/php-4.1.2/TSRM -g -O2 -pthread -Wall -DZTS -prefer-pic -c sapi_apache2.c /usr/local/php-4.1.2/meta_ccld -I. -I/usr/local/php-4.1.2/sapi/apache2filter -I/usr/local/php-4.1.2/main -I/usr/local/php-4.1.2 -I/usr/local/apache2/include -I/usr/local/php-4.1.2/Zend -I/usr/local/mysql/include -I/usr/local/php-4.1.2/ext/xml/expat -D_REENTRANT -I/usr/local/php-4.1.2/TSRM -g -O2 -pthread -Wall -DZTS -c sapi_apache2.c -fPIC -DPIC -o sapi_apache2.lo I've found some old notes on earlier releases of PHP 4 with Apache 2 that this bug exists and has been worked around slightly by changing a line in PHPROOT/sapi/apache2filter/sapi_apache2.c from if ((rv = ap_get_brigade(f->next, bb, mode, readbytes)) !=APR_SUCCESS) { return rv; to if ((rv = ap_get_brigade(f->next, bb, mode)) !=APR_SUCCESS) { return rv; I tried this with no success. Not having worked on any of this code in the past, I am facing a daunting task trying to debug this. If anyone has any insight, I would greatly appreciate it. Otherwise, I am going to go back to Apache 1.3.23 and PHP 3.0.18. Thanks in advance Richard http://www.haimann.com