Bug #15792 Updated: sapi_apache2.c:247
| From: | php-bugs at lists dot php dot net | Date: | Sun, 21 Apr 2002 04:00:07 +0000 |
| Subject: | Bug #15792 Updated: sapi_apache2.c:247 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-5489@lists.php.net to get a copy of this message | ||
ID: 15792
Updated by: php-bugs@lists.php.net
Reported By: mentat@azsoft.pl
-Status: Feedback
+Status: No Feedback
Bug Type: Apache2 related
Operating System: GNU/Linux
PHP Version: 4.1.2
New Comment:
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2002-03-20 15:02:22] sniper@php.net
reclassified
------------------------------------------------------------------------
[2002-03-20 15:00:40] sniper@php.net
Try latest CVS snapshot from http://snaps.php.net/ as this
should be fixed there.
------------------------------------------------------------------------
[2002-03-20 14:54:00] bugs@optonline.net
I just want to say I got this same error and I have
Mandrake 8.1.
[root@irc-server php-4.1.2]# ./configure
--with-apxs2=/www/bin/apxs --without-mysql --quiet
That's my configure line. It works without any errors.
Hope this bug is fixed soon. Thanks in advance. :)
------------------------------------------------------------------------
[2002-03-11 01:47:02] richard@haimann.com
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
------------------------------------------------------------------------
[2002-03-09 12:30:32] richard.downing@bcs.org.uk
I get the same thing exactly. I am using apache-2.0.23, and my compiler
is gcc-3.0.3. This might have a bearing.
Richard.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/15792
--
Edit this bug report at http://bugs.php.net/?id=15792&edit=1