Problem compiling PHP4 Beta 4 into Apache
| From: | PHP4Beta List | Date: | Mon, 21 Feb 2000 01:52:55 +0000 |
| Subject: | Problem compiling PHP4 Beta 4 into Apache | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-10545@lists.php.net to get a copy of this message | ||
I'm having problems compiling apache 1.3.11 with PHP... It seems to die while the php module,
even though PHP compiles with no problems. Here is what I'm using to configure PHP:
./configure --disable-debug --enable-track-vars --with-apache=../apache_1.3.11/ --with-dom=/usr/lib
--with-ftp --with-imap --with-java=/usr/lib/jdk1.1.7 --with-mysql --enable-xml
And here is the error I'm getting when compiling Apache:
... snip ...
===> src/modules/php4
gcc -c -I../../os/unix -I../../include -DLINUX=2 -I/home/phlip/php-4.0b4
-I/home/phlip/php-4.0b4/Zend -I/home/phlip/php-4.0b4/Zend -I/home/phlip/php-4.0b4 -DUSE_EXPAT
-I../../lib/expat-lite -DNO_DL_NEEDED
../../apaci mod_php4.c
cp libmodphp4.a libphp4.a
ar r libphp4.a mod_php4.o
ranlib libphp4.a
<=== src/modules/php4
<=== src/modules
gcc -c -I./os/unix -I./include -DLINUX=2 -I/home/phlip/php-4.0b4 -I/home/phlip/php-4.0b4/Zend
-I/home/phlip/php-4.0b4/Zend -I/home/phlip/php-4.0b4 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
./apaci modules.c
gcc -c -I./os/unix -I./include -DLINUX=2 -I/home/phlip/php-4.0b4 -I/home/phlip/php-4.0b4/Zend
-I/home/phlip/php-4.0b4/Zend -I/home/phlip/php-4.0b4 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
./apaci buildmark.c
gcc -DLINUX=2 -I/home/phlip/php-4.0b4 -I/home/phlip/php-4.0b4/Zend -I/home/phlip/php-4.0b4/Zend
-I/home/phlip/php-4.0b4 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ./apaci \
-o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php4/libphp4.a
main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a -Wl,-rpath,/usr/lib/mysql
-rdynamic -L/usr/lib/mysql -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -ldb
-lpam -ldl -ldl -lmysqlclient -lc-client -lresolv -lm -lcrypt -lnsl -lresolv -lm -lcrypt
modules/php4/libphp4.a(mod_php4.o): In function `send_php':
mod_php4.o(.text+0x724): undefined reference to `executor_globals'
modules/php4/libphp4.a(php_apache.o): In function `php_if_apache_note':
/home/phlip/php-4.0b4/sapi/apache/php_apache.c:136: undefined reference to `alloc_globals'
/home/phlip/php-4.0b4/sapi/apache/php_apache.c:136: undefined reference to `alloc_globals'
/home/phlip/php-4.0b4/sapi/apache/php_apache.c:136: undefined reference to `alloc_globals'
/home/phlip/php-4.0b4/sapi/apache/php_apache.c:140: undefined reference to `alloc_globals'
/home/phlip/php-4.0b4/sapi/apache/php_apache.c:140: undefined reference to `alloc_globals'
modules/php4/libphp4.a(php_apache.o):/home/phlip/php-4.0b4/sapi/apache/php_apache.c:140: more
undefined references to `alloc_globals' follow
modules/php4/libphp4.a(info.lo): In function `php_print_info':
/home/phlip/php-4.0b4/ext/standard/info.c:118: undefined reference to `ts_resource'
/home/phlip/php-4.0b4/ext/standard/info.c:119: undefined reference to `sapi_globals_id'
/home/phlip/php-4.0b4/ext/standard/info.c:119: undefined reference to `ts_resource'
modules/php4/libphp4.a(info.lo): In function `php_if_phpinfo':
/home/phlip/php-4.0b4/ext/standard/info.c:460: undefined reference to `ts_resource'
modules/php4/libphp4.a(info.lo): In function `php_if_phpcredits':
/home/phlip/php-4.0b4/ext/standard/info.c:499: undefined reference to `ts_resource'
modules/php4/libphp4.a(output.lo): In function `php_ginit_output':
/home/phlip/php-4.0b4/ext/standard/output.c:92: undefined reference to `ts_allocate_id'
modules/php4/libphp4.a(output.lo): In function `php_output_startup':
/home/phlip/php-4.0b4/ext/standard/output.c:129: undefined reference to `ts_resource'
... continues for hundreds of more lines before finally stopping with:
modules/php4/libphp4.a(zend_execute.o):/home/phlip/php-4.0b4/Zend/./zend_execute.c:1297: more
undefined references to `ts_resource' follow
modules/php4/libphp4.a(zend_highlight.o): In function `zend_highlight':
/home/phlip/php-4.0b4/Zend/zend_highlight.c:110: undefined reference to `zend_get_zendleng'
/home/phlip/php-4.0b4/Zend/zend_highlight.c:110: undefined reference to `zend_get_zendtext'
/home/phlip/php-4.0b4/Zend/zend_highlight.c:141: undefined reference to `zend_get_zendleng'
/home/phlip/php-4.0b4/Zend/zend_highlight.c:141: undefined reference to `zend_get_zendtext'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/phlip/apache_1.3.11/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/phlip/apache_1.3.11'
make: *** [build] Error 2
Any idea what is wrong?
-Matt Phillips