I had already gotten php4.0.3pl1 & apache 1.3.19 installed and working correctly when I decided I'd like to add PDFLib and libgd support. I got all the required supporting libraries installed and working (although PDFLib refuses to accept the presence of tiff & libpng, oh well), including (but not limited to) zlib, jpeg-6b, libpng, gd-1.8.4. PDFLib and libgd support compiled into PHP fine. The problem comes when recompiling the new PHP module back into Apache...
PHP configure line(s)...
./configure --with-gd=/usr/local \
--with-mysql=/usr/local/mysql \
--with-pdflib=/usr/local/pdflib \
--with-apache=/usr/src/apache/apache_1.3.19 \
--enable-track-vars \
--with-zlib-dir=/usr \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-tiff-dir=/usr
then I did make and make install, all seemed to go well..
Then I went to the apache source dir and:
./configure --activate-module=src/modules/php4/libphp4.a
That seemed ok...
make produced this error:
gcc -funsigned-char -I/usr/src/php -I/usr/src/php/main -I/usr/src/php/main -I/usr/src/php/Zend -I/usr/src/php/Zend -I/usr/src/php/TSRM -I/usr/src/php/TSRM -I/usr/src/php -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 -R/usr/local/lib -R/usr/local/mysql/lib -rdynamic -L/usr/local/lib -L/usr/local/mysql/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam -lmysqlclient -lgd -ljpeg -lm -lcrypt -L/usr/lib -ljpeg -lcrypt
Error code 1
/usr/local/lib/libgd.a(gd.o): In function 'gdImageColorResolve'
Stop in /usr/src/apache/apache_1.3.19/src.
Error code 1
gd.o(.text.+0x684): multiple definition of 'gdImageColorResolve'
modules/php4/libphp4.a(gd.o)(.text+0x148):/usr/src/php/ext/gd/gd.c: first defined here
Stop in /usr/src/apache/apache_1.3.19.
*** Error code 1
/usr/libexec/elf/ld: warning size of symbol 'gdImageColorResolve' changed from 218 to 211 in gd.o
Stop in /usr/src/apache/apache_1.3.19.
Now this seems to suggest that there is a problem with the PHP configure, but it compiling has me stumped.
-Mark