Click to See Complete Forum and Search --> : PHP 4.2.2 and apxs2 - problems compiling


yusuf_a
08-01-2002, 08:14 AM
Hi,

I have downloaded the latest php and apache web server and was tring to compile it on Redhat linux 7.3,
however i ha getting the following error when i try to run make.

Configure command.
-----------------------

./configure
--with-apxs2=/usr/local/apache/bin/apxs
--with-mysql
--with-imap
--with-mhash
--with-mcrypt
--with-expat
--with-sablot
--enable-wddx
--with-kerberos

Error during make.
---------------------

Making all in sapi
make[1]: Entering directory `/opt/php-4.2.2/sapi'
Making all in apache2filter
make[2]: Entering directory `/opt/php-4.2.2/sapi/apache2filter'
make[3]: Entering directory `/opt/php-4.2.2/sapi/apache2filter'
/bin/sh /opt/php-4.2.2/libtool --silent --mode=compile gcc -I. -I/opt/php-4.2.2/sapi/apache2filter -I/opt/php-4.2.2/main -I/opt/php-4.2.2 -I/usr/local/apache/include -I/opt/php-4.2.2/Zend -I/usr/include/imap -I/usr/local/include -I/opt/php-4.2.2/ext/mysql/libmysql -I/opt/php-4.2.2/ext/xml/expat -D_REENTRANT -I/opt/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c sapi_apache2.c
/bin/sh /opt/php-4.2.2/libtool --silent --mode=compile gcc -I. -I/opt/php-4.2.2/sapi/apache2filter -I/opt/php-4.2.2/main -I/opt/php-4.2.2 -I/usr/local/apache/include -I/opt/php-4.2.2/Zend -I/usr/include/imap -I/usr/local/include -I/opt/php-4.2.2/ext/mysql/libmysql -I/opt/php-4.2.2/ext/xml/expat -D_REENTRANT -I/opt/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c apache_config.c
/bin/sh /opt/php-4.2.2/libtool --silent --mode=compile gcc -I. -I/opt/php-4.2.2/sapi/apache2filter -I/opt/php-4.2.2/main -I/opt/php-4.2.2 -I/usr/local/apache/include -I/opt/php-4.2.2/Zend -I/usr/include/imap -I/usr/local/include -I/opt/php-4.2.2/ext/mysql/libmysql -I/opt/php-4.2.2/ext/xml/expat -D_REENTRANT -I/opt/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c php_functions.c
php_functions.c:93:27: missing binary operator before '!'
make[3]: *** [php_functions.lo] Error 1
make[3]: Leaving directory `/opt/php-4.2.2/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/php-4.2.2/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/php-4.2.2/sapi'
make: *** [all-recursive] Error 1


however when i remove the --with-apxs2[=path] and compile php, It works, Can you please advice.

Thanks,
Yusuf.

Anon
08-01-2002, 11:11 AM
copy from latest CVS version
sapi/apache2filter over
opt/php-4.2.2/sapi/apache2filter
and
ENJOY :)

yusuf_a
08-02-2002, 01:55 AM
Hi thank you for the quick response.
I did what you sugested but am still getting the following error, it is different than the last one though. Please do help.

Making all in sapi
make[1]: Entering directory `/opt/php-4.2.2/sapi'
Making all in apache2filter
make[2]: Entering directory `/opt/php-4.2.2/sapi/apache2filter'
make[3]: Entering directory `/opt/php-4.2.2/sapi/apache2filter'
/bin/sh /opt/php-4.2.2/libtool --silent --mode=compile gcc -I. -I/opt/php-4.2.2/sapi/apache2filter -I/opt/php-4.2.2/main -I/opt/php-4.2.2 -I/usr/local/apache/include -I/opt/php-4.2.2/Zend -I/usr/include/imap -I/usr/local/include -I/opt/php-4.2.2/ext/mysql/libmysql -I/opt/php-4.2.2/ext/xml/expat -D_REENTRANT -I/opt/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c sapi_apache2.c
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:567: incompatible type for argument 3 of `ap_register_output_filter'
sapi_apache2.c:567: too many arguments to function `ap_register_output_filter'
sapi_apache2.c:568: incompatible type for argument 3 of `ap_register_input_filter'
sapi_apache2.c:568: too many arguments to function `ap_register_input_filter'
make[3]: *** [sapi_apache2.lo] Error 1
make[3]: Leaving directory `/opt/php-4.2.2/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/php-4.2.2/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/php-4.2.2/sapi'
make: *** [all-recursive] Error 1