|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-10-30 10:45 UTC] rasmus at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Jun 28 14:00:02 2026 UTC |
I am trying to configure PHP to work with apache and GD. The install is also using openssl and mod_ssl, which may be complicating matters. The following (note how gd-1.7.3 is not included in the PHP configure) *does* work: $ tar -zvxf *.gz $ cd mysql-3.22.26a $ ./configure $ make $ make install $ cp -r client/.libs lib $ cd ../openssl-0.9.4 $ ./config $ make $ cd ../apache_1.3.9 $ ./configure $ cd ../php-3.0.12 $ ./configure --with-mysql=../mysql-3.22.26a --with-apache=../apache_1.3.9 --enable-track-vars $ make $ make install $ cd ../mod_ssl-2.4.4-1.3.9 $ ./configure --with-apache=../apache_1.3.9 --with-ssl=../openssl-0.9.4 --prefix=/usr/local/apache --activate-module=src/modules/php3/libphp3.a $ cd ../apache_1.3.9 $ make $ make certificate $ make install However, switching the php configure line with: $ ./configure --with-mysql=../mysql-3.22.26a --with-apache=../apache_1.3.9 --with-gd=../stats/gd-1.7.3 --enable-track-vars causes PHP to 'make' OK, but gives the following error with the final Apache 'make': gcc -DLINUX=2 -DMOD_SSL=204105 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I./lib/expat-lite `./apaci` -L/usr/src/openssl-0.9.4 \ -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/ssl/libssl.a modules/php3/libphp3.a main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a lib/expat-lite/libexpat.a -Wl,-rpath,/usr/src/stats/gd-1.7.3 -Wl,-rpath,/usr/lib -Wl,-rpath,/usr/src/php-3.0.12/../mysql-3.22.26a/lib -L/usr/src/stats/gd-1.7.3 -lgd -L/usr/lib -lttf -L/usr/src/php-3.0.12/../mysql-3.22.26a/lib -lmysqlclient -Lmodules/php3 -L../modules/php3 -L../../modules/php3 -lmodphp3 -lpam -lm -ldl -lcrypt -lnsl -lresolv -lm -lcrypt -lssl -lcrypto -ldb /usr/src/stats/gd-1.7.3/libgd.a(gd.o): In function `gdImageColorResolve': gd.o(.text+0x2f0): multiple definition of `gdImageColorResolve' modules/php3/libphp3.a(gd.o):/usr/src/php-3.0.12/functions/gd.c:291: first defined here /usr/bin/ld: Warning: size of symbol `gdImageColorResolve' changed from 281 to 226 in gd.o collect2: ld returned 1 exit status make[2]: *** [target_static] Error 1 Any info would be gratefully received. I can't see what I'm doing wrong. Ollie