Bug #17864: Won't compile with Apache2
| From: | davidd at datasphereweb dot com | Date: | Thu, 20 Jun 2002 05:40:14 +0000 |
| Subject: | Bug #17864: Won't compile with Apache2 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-11502@lists.php.net to get a copy of this message | ||
From: davidd@datasphereweb.com
Operating system: FreeBSD 4.6RC
PHP version: 4.2.1
PHP Bug Type: *Compile Issues
Bug description: Won't compile with Apache2
I recently upgraded my Apache2 to the newest 2.0.39 in order to fix the
recent Apache security exploit. I installed this from the ports collection
after CVSuping this afternoon.
I then tried to restart Apache and got some weird error that I don't
remember the exact text from. Something about a sapi something or other
being out of date. It was something PHP related.
Anyways, I tried to install the latest PHP from the ports, 4.2.1, using
'make -WITH_APACHE2=YES' and I get the following error:
Making all in apache2filter
/bin/sh /usr/ports/www/mod_php4/work/php-4.2.1/libtool --silent
--mode=compile cc -I.
-I/usr/ports/www/mod_php4/work/php-4.2.1/sapi/apache2filter
-I/usr/ports/www/mod_php4/work/php-4.2.1/main
-I/usr/ports/www/mod_php4/work/php-4.2.1 -I/usr/local/include/apache2
-I/usr/ports/www/mod_php4/work/php-4.2.1/Zend
-I/usr/local/include/c-client -I/usr/local/include/mysql
-I/usr/local/include
-I/usr/ports/www/mod_php4/work/php-4.2.1/ext/xml/expat -D_REENTRANT
-D_THREAD_SAFE -I/usr/ports/www/mod_php4/work/php-4.2.1/TSRM
-I/usr/local/include/pth -O -pipe -I/usr/local/include -pthread -DZTS
-prefer-pic -c sapi_apache2.c
/bin/sh /usr/ports/www/mod_php4/work/php-4.2.1/libtool --silent
--mode=compile cc -I.
-I/usr/ports/www/mod_php4/work/php-4.2.1/sapi/apache2filter
-I/usr/ports/www/mod_php4/work/php-4.2.1/main
-I/usr/ports/www/mod_php4/work/php-4.2.1 -I/usr/local/include/apache2
-I/usr/ports/www/mod_php4/work/php-4.2.1/Zend
-I/usr/local/include/c-client -I/usr/local/include/mysql
-I/usr/local/include
-I/usr/ports/www/mod_php4/work/php-4.2.1/ext/xml/expat -D_REENTRANT
-D_THREAD_SAFE -I/usr/ports/www/mod_php4/work/php-4.2.1/TSRM
-I/usr/local/include/pth -O -pipe -I/usr/local/include -pthread -DZTS
-prefer-pic -c apache_config.c
/bin/sh /usr/ports/www/mod_php4/work/php-4.2.1/libtool --silent
--mode=compile cc -I.
-I/usr/ports/www/mod_php4/work/php-4.2.1/sapi/apache2filter
-I/usr/ports/www/mod_php4/work/php-4.2.1/main
-I/usr/ports/www/mod_php4/work/php-4.2.1 -I/usr/local/include/apache2
-I/usr/ports/www/mod_php4/work/php-4.2.1/Zend
-I/usr/local/include/c-client -I/usr/local/include/mysql
-I/usr/local/include
-I/usr/ports/www/mod_php4/work/php-4.2.1/ext/xml/expat -D_REENTRANT
-D_THREAD_SAFE -I/usr/ports/www/mod_php4/work/php-4.2.1/TSRM
-I/usr/local/include/pth -O -pipe -I/usr/local/include -pthread -DZTS
-prefer-pic -c php_functions.c
php_functions.c:93: syntax error
*** Error code 1
Stop in /usr/ports/www/mod_php4/work/php-4.2.1/sapi/apache2filter.
*** Error code 1
Stop in /usr/ports/www/mod_php4/work/php-4.2.1/sapi/apache2filter.
*** Error code 1
Stop in /usr/ports/www/mod_php4/work/php-4.2.1/sapi.
*** Error code 1
Stop in /usr/ports/www/mod_php4/work/php-4.2.1.
*** Error code 1
Stop in /usr/ports/www/mod_php4.
*** Error code 1
I took out the 3 lines from php_functions.c that it was puking on and it
seemed to compile and work fine.
--
Edit bug report at http://bugs.php.net/?id=17864&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17864&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17864&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17864&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17864&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17864&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17864&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17864&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17864&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17864&r=globals