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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
20 + 34 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 09:01:27 2024 UTC