ID: 16494 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: Red Hat Linux 7.2 PHP Version: 4.1.2 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [2002-04-08 09:57:27] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=16494&edit=1
