From:             [EMAIL PROTECTED]
Operating system: freeBSD 4.5-RELEASE
PHP version:      4.1.2
PHP Bug Type:     Compile Failure
Bug description:  sapi_apache2.c won't compile

I am trying to compile PHP 4.1.2 with apache 2.0.35. Here is my configure
line:
./configure --with-mysql --with-apxs2  --with-openssl -with-bz2
--enable-calendar --enable-ftp --enable-sockets --enable-magic-quotes

This is what I get when I run "make":

Making all in apache2filter
/bin/sh /root/php-4.1.2/libtool --silent --mode=compile
/root/php-4.1.2/meta_ccl
d  -I. -I/root/php-4.1.2/sapi/apache2filter -I/root/php-4.1.2/main
-I/root/php-4
.1.2 -I/usr/local/apache/include -I/root/php-4.1.2/Zend
-I/root/php-4.1.2/ext/my
sql/libmysql -I/root/php-4.1.2/ext/xml/expat  -D_REENTRANT -D_THREAD_SAFE
-I/roo
t/php-4.1.2/TSRM -DTHREAD=1 -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 tar
get 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 in
compatible pointer type
*** Error code 1

Stop in /root/php-4.1.2/sapi/apache2filter.
*** Error code 1

Stop in /root/php-4.1.2/sapi/apache2filter.
*** Error code 1

Stop in /root/php-4.1.2/sapi.
*** Error code 1

Stop in /root/php-4.1.2.




-- 
Edit bug report at http://bugs.php.net/?id=16560&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16560&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16560&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16560&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16560&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16560&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16560&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16560&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16560&r=submittedtwice

Reply via email to