php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16434 Build Error
Submitted: 2002-04-04 14:18 UTC Modified: 2002-04-08 11:13 UTC
From: wrose at loislaw dot com Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.1.2 OS: Linux 2.4.2-2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wrose at loislaw dot com
New email:
PHP Version: OS:

 

 [2002-04-04 14:18 UTC] wrose at loislaw dot com
sapi_apache2.c refuses to build with Apache 2.0.32. The 
function call to ap_get_brigade, line 247, needs the 
APR_BLOCK_READ or APR_NONBLOCK_READ parameter added to the 
call. I don't know which is appropriate, so I chose to 
BLOCK.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-05 05:16 UTC] sander@php.net
Well, AFAIK 4.1.x doesn't work with Apache 2.
Anyway, we don't really care since Apache 2 is still beta.
It will probably work OK in 4.2.0. You can try RC2 from www.php.net/~derick
 [2002-04-05 09:18 UTC] wrose at loislaw dot com
After adding the required parameter, it compiled and has run fine under an adhoc stress test.
 [2002-04-06 11:12 UTC] sniper@php.net
You need latest CVS versions of both Apache2 and PHP.

 [2002-04-06 11:12 UTC] sebastian dot wolfgarten at gmx dot net
Hi,

which changes did you exactly made to sapi_apache2.c?

Bye,
Sebastian
 [2002-04-08 09:27 UTC] wrose at loislaw dot com
I added APR_BLOCK_READ to the ap_get_brigade function call on line 247.
 [2002-04-08 09:41 UTC] wrose at loislaw dot com
I grabbed the neweest Apache 2.0 from CVS Friday, compiled 
it with:
./configure --prefix=/opt/apache_2.0dev --with-mpm=worker 
--enable-so
then compiled PHP 4.2.0RC2 with:
./configure --with-apxs2=/opt/apache_2.0dev/bin/apxs 
--with-mysql=/usr
Here's what it says just before dying:
make[3]: Entering directory 
`/root/php-4.2.0RC2/sapi/apache2filter'
/bin/sh /root/php-4.2.0RC2/libtool --silent --mode=compile 
gcc  -I. -I/root/php-4.2.0RC2/sapi/apache2filter 
-I/root/php-4.2.0RC2/main -I/root/php-4.2.0RC2 
-I/opt/apache_2.0dev/include -I/root/php-4.2.0RC2/Zend 
-I/usr/include/mysql -I/root/php-4.2.0RC2/ext/xml/expat  
-D_REENTRANT -I/root/php-4.2.0RC2/TSRM -g -O2 -pthread 
-DZTS -prefer-pic  -c sapi_apache2.c
sapi_apache2.c: In function `php_apache_sapi_ub_write':
sapi_apache2.c:58: too few arguments to function 
`apr_brigade_create'
sapi_apache2.c:61: too few arguments to function 
`apr_bucket_transient_create'
sapi_apache2.c: In function `php_apache_sapi_flush':
sapi_apache2.c:174: too few arguments to function 
`apr_brigade_create'
sapi_apache2.c:175: too few arguments to function 
`apr_bucket_flush_create'
sapi_apache2.c: In function `php_input_filter':
sapi_apache2.c:257: too few arguments to function 
`apr_brigade_create'
sapi_apache2.c: In function `php_output_filter':
sapi_apache2.c:331: too few arguments to function 
`apr_brigade_create'
sapi_apache2.c:386: too few arguments to function 
`apr_bucket_transient_create'
sapi_apache2.c:395: too few arguments to function 
`apr_bucket_eos_create'
make[3]: *** [sapi_apache2.lo] Error 1
make[3]: Leaving directory 
`/root/php-4.2.0RC2/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/root/php-4.2.0RC2/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/php-4.2.0RC2/sapi'
make: *** [all-recursive] Error 1
I'll figure out the problem and let you guys know. I bet 
it's the APR_BLOCK_READ/APR_NONBLOCK_READ thing again.
 [2002-04-08 10:56 UTC] wrose at loislaw dot com
I have a diff for PHP 4.2.0RC2 so it will compile against 
Apache 2.0.35-dev. Where do I send it?
 [2002-04-08 11:10 UTC] sander@php.net
It has already been fixed...
 [2002-04-08 11:13 UTC] wrose at loislaw dot com
Disregard the diff I posted on the dev list then... Just trying to help...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 18:01:27 2024 UTC