Apache module install issues
| From: | Ian Marlier | Date: | Sat, 29 Sep 2001 06:09:40 +0000 |
| Subject: | Apache module install issues | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-4433@lists.php.net to get a copy of this message | ||
I'm trying to build PHP 4.0.6 with GD and some other stuff, but I'm running into two problems -- one I solved, the other I haven't.
The configure line that I'm using is:
./configure --enable-ftp --with-gd=../gd-1.8.4 --with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/ --with-mysql --with-pdflib=/usr/lib/tcl8.2/pdflib/ --with-apache=../apache_1.3.20 --with-zlib-dir=/usr/local/lib
The first issue is that the make of PHP would barf in the middle of the ext/zlib/Makefile build. I fixed the problem by doing "touch ext/zlib/zlib.lo; touch ext/zlib/zlib_fopen_wrapper.lo" from the source root.
The second issue comes after doing "make; make install". The module compliles fine and all that, or at least it appears to. I cd into the apache source directory, and do
./configure --prefix=/usr/local/apache-bb --activate-module=src/modules/php4/libphp4.module
The build gets part way done, and then I get this (fairly long output, sorry...):
-----
<=== src/modules/php4
<=== src/modules
gcc -c -I./os/unix -I./include -DLINUX=22 -I/root/php-4.0.6 -I/root/php-4.0.6/main -I/root/php-4.0.6/main -I/root/php-4.0.6/Zend -I/root/php-4.0.6/Zend -I/root/php-4.0.6/TSRM -I/root/php-4.0.6/TSRM -I/root/php-4.0.6 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
./apaci modules.c
gcc -c -I./os/unix -I./include -DLINUX=22 -I/root/php-4.0.6 -I/root/php-4.0.6/main -I/root/php-4.0.6/main -I/root/php-4.0.6/Zend -I/root/php-4.0.6/Zend -I/root/php-4.0.6/TSRM -I/root/php-4.0.6/TSRM -I/root/php-4.0.6 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ./apaci buildmark.c
gcc -DLINUX=22 -I/root/php-4.0.6 -I/root/php-4.0.6/main -I/root/php-4.0.6/main -I/root/php-4.0.6/Zend -I/root/php-4.0.6/Zend -I/root/php-4.0.6/TSRM -I/root/php-4.0.6/TSRM -I/root/php-4.0.6 -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//lib -Wl,-rpath,/root/gd-1.8.4 -rdynamic -L/usr/lib//lib -L/root/gd-1.8.4 -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -ldl -lgd -lpng -lz -ljpeg -lz -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lm -lcrypt
modules/php4/libphp4.a(internal_functions.o): In function `php_startup_internal_extensions':
/root/php-4.0.6/main/internal_functions.c:64: undefined reference to `php_zlib_module_entry'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/root/apache_1.3.20/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/root/apache_1.3.20'
make: *** [build] Error 2
----
I'm assuming that the problem is with php, since the error is actually in a file in the php source, not the apache source. But I don't know how to fix it.
For what it's worth, php_startup_internal_extensions seems to do basically the logical thing from the name -- tell php what internal extensions to load at startup. It reads an array, which doesn't include "php_zlib_module_entry" but does include "phpext_zlib_ptr".
I kinda need zlib working, so I can do on-the-fly image creation....it's required for some of the other extensions that I'm loading in.
Thanks,
Ian
--
ian@onepost.net
773 667 9763 (home)
773 844 0105 (cell)
Eventually all things merge into one, and a river runs through it.
The river was cut by the world's great flood and runs over rocks from
the basement of time. On some of the rocks are timeless raindrops.
Under the rocks are the words, and some of the words are theirs.
I am haunted by waters.