First off, I'm running Slackware Linux 4.0 upgraded to kernel 2.2.12.
I recently compiled Apache 1.3.9 with php and everything worked fine.
I then decided to compile php with gd and zlib and I've had nothing
but problems when I try to compile php support into Apache.
I have the gd-1.7.3 and zlib-1.1.3 both installed under /usr/local
I am using the following command to configure php.
./configure --with-shared-apache=../apache_1.3.9 \
--with-zlib=/usr/local --with-gd=/usr/local
php compiles just fine and I then run make install and cd to the
apache dir. I then run the following in the apache directory...
./configure --prefix=/www \
--activate-module=src/modules/php3/libphp3.a \
--enable-shared=max
but when I run make I get the followiing errors
gcc -rpath /usr/local/lib -shared -o libphp3.so mod_php3.so-o
libmodphp3-so.a -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lgd
-L/usr/local/lib -lz -lm -ldl -lm -lgdbm -ldl
gcc: unrecognized option `-rpath'
/usr/local/lib: file not recognized: Is a directory
make[4]: *** [libphp3.so] Error 1
make[3]: *** [all] Error 1
So then I thought I'd install gd and zlib directly under /usr but then
I get the following errors when compiling apache!!! I'm assuming the
above errors have something to do with an improper path (any ideas how
to fix that one?) but the following one is something more serious than
that I think. :) Any ideas what I need to do to fix this and has
anyone else encountered this problem? Thanks for any assistance!
===> src/modules/php3
gcc -c -I../../os/unix -I../../include -DLINUX=2 -DUSE_HSREGEX
-DUSE_EXPAT -I../../lib/expat-lite `../../apaci` -fpic -DSHARED_MODULE
mod_php3.c && mv mod_php3.o mod_php3.so-o
rm -f libphp3.so
gcc -shared -o libphp3.so mod_php3.so-o libmodphp3-so.a -lgd
-lz -lm -ldl -lm -lgdbm -ldl
/usr/lib/libgd.a(gd.o): In function `gdImageColorResolve':
gd.o(.text+0x2c0): multiple definition of `gdImageColorResolve'
libmodphp3-so.a(gd.o):/var/tmp/php-3.0.12/functions/gd.c:291: first
defined here
/usr/i486-linux/bin/ld: Warning: size of symbol `gdImageColorResolve'
changed from 237 to 229 in gd.o
make[4]: *** [libphp3.so] Error 1