From:             [EMAIL PROTECTED]
Operating system: Red Hat Linux 7.2
PHP version:      4.1.2
PHP Bug Type:     Compile Failure
Bug description:  Apache 2.0.35 changed its API and PHP 4.1.2 doesn't seem to 
compensate.

Hi there,

I tried installing PHP 4.1.2 on a fairly bare Linux test box with Apache
2.0.35 with no optional modules installed besides mod_so and mod_ssl. 
Using the php configure option --with-apxs2=[blah] I can get the configure
script to execute, but when I try to compile I get errors like the ones
reproduced at the bottom of this report.

My php configure line is:

./configure --with-mysql --with-apxs2=/usr/apache/bin/apxs
--with-config-file-path=/usr/apache/conf --with-xml

although I get the same problem with any set of configure directives I've
tried, so long as I try to use --with-apxs2.

I took a look at the changelog for Apache and found the following change
for version 2.0.35:

*) Change bucket brigades API to allow a "bucket allocator" to be passed
in at certain points.  This allows us to implement freelists so that we
can stop using malloc/free so frequently. [Cliff Woolley, Brian Pane]

This seems to explain the problem, but I'm not familiar enough with the
code base of either package to take a stab at a solution.

I hope this helps.  Lovin' PHP, so keep up the great work.

Cheers,
Dan

Compile errors:

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_register_variables':
sapi_apache2.c:148: warning: initialization discards qualifiers from
pointer target type
sapi_apache2.c: In function `php_apache_sapi_flush':
sapi_apache2.c:171: too few arguments to function `apr_brigade_create'
sapi_apache2.c:172: too few arguments to function
`apr_bucket_flush_create'
sapi_apache2.c: In function `php_input_filter':
sapi_apache2.c:246: too few arguments to function `apr_brigade_create'
sapi_apache2.c:248: warning: passing arg 5 of `ap_get_brigade' makes
integer from pointer without a cast
sapi_apache2.c: In function `php_output_filter':
sapi_apache2.c:312: too few arguments to function `apr_brigade_create'
sapi_apache2.c:367: too few arguments to function
`apr_bucket_transient_create'
sapi_apache2.c:376: too few arguments to function `apr_bucket_eos_create'
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:408: `AP_FTYPE_CONTENT' undeclared (first use in this
function)
sapi_apache2.c:408: (Each undeclared identifier is reported only once
sapi_apache2.c:408: for each function it appears in.)
sapi_apache2.c:409: warning: passing arg 2 of `ap_register_input_filter'
from incompatible pointer type
make[3]: *** [sapi_apache2.lo] Error 1
make[3]: Leaving directory `/home/src/php-4.1.2/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/src/php-4.1.2/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/src/php-4.1.2/sapi'
make: *** [all-recursive] Error 1
-- 
Edit bug report at http://bugs.php.net/?id=16494&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16494&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16494&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16494&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16494&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16494&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16494&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16494&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16494&r=submittedtwice

Reply via email to