php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16494 Apache 2.0.35 changed its API and PHP 4.1.2 doesn't seem to compensate.
Submitted: 2002-04-08 09:57 UTC Modified: 2002-04-08 10:00 UTC
From: dratner at snapdragontech dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.1.2 OS: Red Hat Linux 7.2
Private report: No CVE-ID: None
 [2002-04-08 09:57 UTC] dratner at snapdragontech dot com
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-08 10:00 UTC] sander@php.net
PHP 4.1.x  doesn't work with Apache 2.
You can try 4.2.0RC3 from www.php.net/~derick when it's out (scheduled for the 12th of April), reopen if it doesn't work. RC2 doesn't work yet, you'll have to wait for RC3.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 10:01:32 2024 UTC