Bug #4392: Compile failure with GD 1.7, possibly others
| From: | rstevens at publichost dot com | Date: | Thu, 11 May 2000 00:28:55 +0000 |
| Subject: | Bug #4392: Compile failure with GD 1.7, possibly others | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18600@lists.php.net to get a copy of this message | ||
From: rstevens@publichost.com
Operating system: RedHat Linux 6.2
PHP version: 3.0.16
PHP Bug Type: Compile Failure
Bug description: Compile failure with GD 1.7, possibly others
When attempting to compile for static Apache use, the following problems occur:
[rick@prophead apache_1.3.12]$ ./configure --prefix=/usr/local/apache
--activate-module=src/modules/php3/libphp3.a --activate-module=src/modules/perl/libperl.a
Configuring for Apache, Version 1.3.12
<<<< snip... >>>>
[rick@prophead apache_1.3.12]$ make
<<<< snip... >>>>
/usr/local/lib/libgd.a(gd.o): In function `gdImageColorResolve':
gd.o(.text+0x340): multiple definition of `gdImageColorResolve'
modules/php3/libphp3.a(gd.o):/usr/home/rick/work/php-3.0.16/functions/gd.c:231: first defined here
/usr/cygnus/codefusion-990706/H-i686-pc-linux-gnulibc2.1/lib/gcc-lib/i686-pc-linux-gnulibc2.1/2.9-codefusion-990706/../../../../i686-pc-linux-gnulibc2.1/bin/ld:
Warning: size of symbol `gdImageColorResolve' changed from 239 to 238 in gd.o
modules/php3/libphp3.a(gd.o): In function `php3_imagecreatefromgif':
/usr/home/rick/work/php-3.0.16/functions/gd.c:415: undefined reference to
`gdImageCreateFromGif'
modules/php3/libphp3.a(gd.o): In function `php3_imagegif':
/usr/home/rick/work/php-3.0.16/functions/gd.c:867: undefined reference to `gdImageGif'
/usr/home/rick/work/php-3.0.16/functions/gd.c:889: undefined reference to `gdImageGif'
It smells like the configuration doesn't properly set the "#define HAVE_GD_COLORRESOLVE
1" or something similar if you have libgd installed (I have gd 1.7).
Is this a known gotcha? Do I have to upgrade to gd 1.8 to fix it?