From:             [EMAIL PROTECTED]
Operating system: Linux Mandrake 8.0
PHP version:      4.1.2
PHP Bug Type:     Compile Failure
Bug description:  Compiling PHP 4.1.2 with Apache 2.0.35

Hello there,

I got Apache 2.0.35 compiled successfully, then I tried with PHP 4.1.2 but
I got compiling errors

I configured Apache with this command:
./configure --prefix=/usr/local/apache2 --enable-file-cache --enable-cache
--enable-disk-cache --enable-mem-cache --enable-deflate --enable-ssl
--enable-threads --enable-rewrite --enable-so

I tried before with ./configure --prefix=/usr/local/apache2 but PHP
neither get compiled

then I configured PHP with this:

./configure --prefix=/usr/local/php --disable-static --disable-debug
--enable-inline-optimization --with-config-file-path=/usr/local/php/etc
--enable-magic-quotes --enable-safe-mode --with-exec-dir=/usr/bin
--enable-versioning --enable-sysvsem --enable-sysvshm --with-mod_charset
--enable-force-cgi-redirect --enable-trans-sid --with-xml --with-gettext
--with-mysql=/usr --with-oci8=/opt/OraHome1 --with-zlib
--with-apxs2=/usr/local/apache2/bin/apxs --enable-optimize=O3
--enable-strip

And I got this error in the sapi module for Apache 2:

Making all in sapi
make[1]: Cambiando a directorio `/tmp/php-4.1.2/sapi'
Making all in apache2filter
make[2]: Cambiando a directorio `/tmp/php-4.1.2/sapi/apache2filter'
make[3]: Cambiando a directorio `/tmp/php-4.1.2/sapi/apache2filter'
/bin/sh /tmp/php-4.1.2/libtool --silent --mode=compile
/tmp/php-4.1.2/meta_ccld  -I. -I/tmp/php-4.1.2/sapi/apache2filter
-I/tmp/php-4.1.2/main -I/tmp/php-4.1.2 -I/usr/local/apache2/include
-I/tmp/php-4.1.2/Zend -I/usr/include/mysql -I/opt/OraHome1/rdbms/public
-I/opt/OraHome1/rdbms/demo -I/tmp/php-4.1.2/ext/xml/expat  -D_REENTRANT
-I/tmp/php-4.1.2/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_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:245: too few arguments to function `apr_brigade_create'
sapi_apache2.c:247: incompatible type for argument 4 of `ap_get_brigade'
sapi_apache2.c:247: too few arguments to function `ap_get_brigade'
sapi_apache2.c: In function `php_output_filter':
sapi_apache2.c:311: too few arguments to function `apr_brigade_create'
sapi_apache2.c:366: too few arguments to function
`apr_bucket_transient_create'
sapi_apache2.c:375: too few arguments to function `apr_bucket_eos_create'
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:407: `AP_FTYPE_CONTENT' undeclared (first use in this
function)
sapi_apache2.c:407: (Each undeclared identifier is reported only once
sapi_apache2.c:407: for each function it appears in.)
sapi_apache2.c:408: warning: passing arg 2 of `ap_register_input_filter'
from incompatible pointer type
make[3]: *** [sapi_apache2.lo] Error 1
make[3]: Saliendo directorio `/tmp/php-4.1.2/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Saliendo directorio `/tmp/php-4.1.2/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Saliendo directorio `/tmp/php-4.1.2/sapi'
make: *** [all-recursive] Error 1
[root@sdes02 php-4.1.2]# 


---===(O)===---


Note that I got compiled PHP 4.1.2 with the very same ./configure
parameters that I did show above but with Apache 1.3.x


My system is a Mandrake Linux box, kernel 2.4.17, Updated to Ximian
Gnome.


TIA

William.

PD. I tried with PHP 4.2.0-RC2 but I got the same error.
-- 
Edit bug report at http://bugs.php.net/?id=16561&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16561&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16561&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16561&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16561&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16561&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16561&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16561&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16561&r=submittedtwice

Reply via email to