PHP 4.0 Bug #10140: Apache fails to link - LD complains about GD
| From: | stevenf at shellnet dot co dot uk | Date: | Tue, 03 Apr 2001 16:01:52 +0000 |
| Subject: | PHP 4.0 Bug #10140: Apache fails to link - LD complains about GD | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-50706@lists.php.net to get a copy of this message | ||
From: stevenf@shellnet.co.uk
Operating system: FreeBSD 4.0
PHP version: 4.0.4pl1
PHP Bug Type: Compile Failure
Bug description: Apache fails to link - LD complains about GD
PHP config:
./configure --with-mysql --with-apache=../apache_1.3.19 --with-sysvshm --disable-debug
--with-mcrypt --with-gd=
/home/stevenf/Software/gd-1.8.4
Apache config:
./configure --enable-module=speling --activate-module=src/modules/php4/libphp4.a
--add-module=/home/stevenf/Software/mod_throttle-3.1.2/mod_throttle.c
--activate-module=src/modules/auth_mysql/libauthmysql.a --enable-suexec
--suexec-userdir=/usr/local/apache/share --suexec-caller=nobody
PHP compiles fine - no problems (it seems).
Apache compiles with no problems, untill the linking stage. Apache hasn't ever had any previous
problems linking since I've tried to compile in the GD functions.
I'm running Apache 1.3.19, PHP 4.0.4pl1, GD 1.8.4, libpng-1.0.10, zlib-1.1.3 and jpeg-6b,
although I'm not trying to use jpeg support for PHP just yet.
During the Apache 'make' process, I get:
[..snip..]
===> src/modules/auth_mysql
<=== src/modules/auth_mysql
<=== src/modules
gcc -c -I./os/unix -I./include -I/usr/home/stevenf/Software/openssl-0.9.5a/include
-funsigned-char -DTARGET=\"httpsd\" -I/usr/home/stevenf/Software/php-4.0.4pl1
-I/usr/home/stevenf/Software/php-4.0.4pl1/main -I/usr/home/stevenf/Software/php-4.0.4pl1/main
-I/usr/home/stevenf/Software/php-4.0.4pl1/Zend -I/usr/home/stevenf/Software/php-4.0.4pl1/Zend
-I/usr/home/stevenf/Software/php-4.0.4pl1/TSRM -I/usr/home/stevenf/Software/php-4.0.4pl1/TSRM
-I/usr/home/stevenf/Software/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED -DAPACHE_SSL
./apaci modules.c
gcc -c -I./os/unix -I./include -I/usr/home/stevenf/Software/openssl-0.9.5a/include
-funsigned-char -DTARGET=\"httpsd\" -I/usr/home/stevenf/Software/php-4.0.4pl1
-I/usr/home/stevenf/Software/php-4.0.4pl1/main -I/usr/home/stevenf/Software/php-4.0.4pl1/main
-I/usr/home/stevenf/Software/php-4.0.4pl1/Zend -I/usr/home/stevenf/Software/php-4.0.4pl1/Zend
-I/usr/home/stevenf/Software/php-4.0.4pl1/TSRM -I/usr/home/stevenf/Software/php-4.0.4pl1/TSRM
-I/usr/home/stevenf/Software/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED -DAPACHE_SSL
./apaci buildmark.c
gcc -funsigned-char -DTARGET=\"httpsd\" -I/usr/home/stevenf/Software/php-4.0.4pl1
-I/usr/home/stevenf/Software/php-4.0.4pl1/main -I/usr/home/stevenf/Software/php-4.0.4pl1/main
-I/usr/home/stevenf/Software/php-4.0.4pl1/Zend -I/usr/home/stevenf/Software/php-4.0.4pl1/Zend
-I/usr/home/stevenf/Software/php-4.0.4pl1/TSRM -I/usr/home/stevenf/Software/php-4.0.4pl1/TSRM
-I/usr/home/stevenf/Software/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED -DAPACHE_SSL
./apaci -o httpsd buildmark.o modules.o modules/extra/libextra.a
modules/auth_mysql/libauth_mysql.a modules/standard/libstandard.a modules/ssl/libssl.a
modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a
-R/home/stevenf/Software/gd-1.8.4 -R/usr/local/lib -rdynamic -L/home/stevenf/Software/gd-1.8.4
-L/usr/local/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam -lmcrypt
-lmcrypt -lgd -lpng -lz -lm -lcrypt -lcrypt -L/usr/local/ssl/lib -lssl -lcrypto
/home/stevenf/Software/gd-1.8.4/libgd.a(gd.o): In function `gdImageColorResolve':
gd.o(.text+0x698): multiple definition of `gdImageColorResolve'
modules/php4/libphp4.a(gd.o)(.text+0x148):/usr/home/stevenf/Software/php-4.0.4pl1/ext/gd/gd.c: first
defined here
/usr/libexec/elf/ld: Warning: size of symbol `gdImageColorResolve' changed from 218 to 211 in
gd.o
*** Error code 1
Stop in /usr/home/stevenf/Software/apache_1.3.19/src.
*** Error code 1
Stop in /usr/home/stevenf/Software/apache_1.3.19.
*** Error code 1
Stop in /usr/home/stevenf/Software/apache_1.3.19.
Others have reported problems in the bug database about the errors that gdImageColorResolve has
different symbol sizes, but I've tried the suggested solutions (namely, remove config.cache,
and remake PHP), and cannot fix the problem.
Unfortunatley many bug reports seem to get disowned by those who submit them, with neither a
positive or negative response, which dosen't really help the situation. I'm quite keen to
get this one fixed though. Solutions greatly appreciated!
-Steven Fletcher
stevenf@shellnet.co.uk
--
Edit Bug report at: http://bugs.php.net/?id=10140&edit=1