php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4392 Compile failure with GD 1.7, possibly others
Submitted: 2000-05-10 20:28 UTC Modified: 2002-10-01 15:32 UTC
From: rstevens at publichost dot com Assigned:
Status: Wont fix Package: Compile Failure
PHP Version: 3.0.16 OS: RedHat Linux 6.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rstevens at publichost dot com
New email:
PHP Version: OS:

 

 [2000-05-10 20:28 UTC] rstevens at publichost dot com
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?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 15:32 UTC] hholzgra@php.net
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jun 03 01:01:26 2025 UTC