Apache 2.0.39 and PHP 4.2.2

Lucas Peet lpeet at eccod.com
Wed Jul 24 17:45:36 CDT 2002


Hello, all.

I'm trying to compile PHP 4.2.2 with Apache 2.0.39 and MySQL 3.23.48.  I saw somewhere on a message 
board a similar error, and they said to use PHP 4.2.1.  So I tried that, and got the *exact* error 
message.

Apache compiled just fine, but when I tried to compile PHP, here's the error I got:

Making all in sapi
make[1]: Entering directory `/usr/src/php-4.2.1/sapi'
Making all in apache2filter
make[2]: Entering directory `/usr/src/php-4.2.1/sapi/apache2filter'
make[3]: Entering directory `/usr/src/php-4.2.1/sapi/apache2filter'
/bin/sh /usr/src/php-4.2.1/libtool --silent --mode=compile gcc  -I. 
-I/usr/src/php-4.2.1/sapi/apache2filter -I/usr/src/php-4.2.1/main -I/usr/src/php-4.2.1 
-I/opt/apache2.0/apache/include -I/usr/src/php-4.2.1/Zend -I/usr/src/php-4.2.1/ext/mysql/libmysql 
-I/usr/src/php-4.2.1/ext/xml/expat  -D_REENTRANT -I/usr/src/php-4.2.1/TSRM -DTHREAD=1 -g -O2 
-pthread -DZTS -prefer-pic -c sapi_apache2.c
/bin/sh /usr/src/php-4.2.1/libtool --silent --mode=compile gcc  -I. 
-I/usr/src/php-4.2.1/sapi/apache2filter -I/usr/src/php-4.2.1/main -I/usr/src/php-4.2.1 
-I/opt/apache2.0/apache/include -I/usr/src/php-4.2.1/Zend -I/usr/src/php-4.2.1/ext/mysql/libmysql 
-I/usr/src/php-4.2.1/ext/xml/expat  -D_REENTRANT -I/usr/src/php-4.2.1/TSRM -DTHREAD=1 -g -O2 
-pthread -DZTS -prefer-pic -c apache_config.c
/bin/sh /usr/src/php-4.2.1/libtool --silent --mode=compile gcc  -I. 
-I/usr/src/php-4.2.1/sapi/apache2filter -I/usr/src/php-4.2.1/main -I/usr/src/php-4.2.1 
-I/opt/apache2.0/apache/include -I/usr/src/php-4.2.1/Zend -I/usr/src/php-4.2.1/ext/mysql/libmysql 
-I/usr/src/php-4.2.1/ext/xml/expat  -D_REENTRANT -I/usr/src/php-4.2.1/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 `/usr/src/php-4.2.1/sapi/apache2filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.2.1/sapi/apache2filter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.2.1/sapi'
make: *** [all-recursive] Error 1

The command I used to configure it was:

./configure --with-mysql --with-apxs2=/opt/apache2.0/apache/bin/apxs --with-ftp 
--prefix=/opt/apache2.0/php-4.2.1

Any ideas?

-Lucas





More information about the Kclug mailing list