php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7795 Duplicate symbol gdImageColorResolve
Submitted: 2000-11-13 16:41 UTC Modified: 2001-01-30 04:12 UTC
From: kard235 at lni dot wa dot gov Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.3pl1 OS: HP-UX 11.x
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: kard235 at lni dot wa dot gov
New email:
PHP Version: OS:

 

 [2000-11-13 16:41 UTC] kard235 at lni dot wa dot gov
/usr/bin/ld: Duplicate symbol "gdImageColorResolve" in files modules/php4/libphp4.a(gd.o) and /usr/local/lib/libgd.a(gd.o)
/usr/bin/ld: Found 1 duplicate symbol(s)
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/opt/GNU/archive/apache_1.3.14/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/opt/GNU/archive/apache_1.3.14'
make: *** [build] Error 2

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-29 16:46 UTC] sniper@php.net
Could you please include your configure line into this bug report?
And what is the version of the GD library ??

--Jani
 [2000-11-29 18:34 UTC] kard235 at lni dot wa dot gov
Version Info
gd = 1.8.3
apache = 1.3.14
php = 4.0.3pl1
gcc = 2.95.2
gnu make = 3.79
gnu binutils = 2.9.1
flex = 2.5.4

gd has been verified to work correctly using GD.pm and perl.  The PHP static module under apache compiles and installs only if I omit the --with-gd option.

Here is my php configure line:
./configure \
--with-mysql=/usr/local/mysql \
--with-xml \
--with-apache=../apache_1.3.14 \
--enable-track-vars \
--enable-pic \
--with-gd \
--with-xpm-dir=/opt/xpm/lib/X11 \
--with-jpeg-dir=/usr/local/lib \
--with-ttf

Here is my apache configure line:
./configure \
--activate-module=src/modules/php4/libphp4.a \
--enable-module=php4 \
--prefix=/usr/local/apache

Here is the compiler error message:
/usr/bin/ld: Duplicate symbol "gdImageColorResolve" in files modules/php4/libphp4.a(gd.o) and /usr/local/lib/libgd.a(gd.o)
/usr/bin/ld: Found 1 duplicate symbol(s)
collect2: ld returned 1 exit status
gmake[2]: *** [target_static] Error 1
gmake[2]: Leaving directory `/opt/GNU/archive/apache_1.3.14/src'
gmake[1]: *** [build-std] Error 2
gmake[1]: Leaving directory `/opt/GNU/archive/apache_1.3.14'
gmake: *** [build] Error 2

 [2000-12-04 09:38 UTC] sniper@php.net
Sorry for duplicate emails about this..could you
try adding the base install dir of GD to the --with-gd
parameter?

--Jani
 [2000-12-12 14:59 UTC] kard235 at lni dot wa dot gov
The original problem seems to have been fixed by following
your --with-gd=/path/to/gd suggestion.  Unfortunately, an 
new problem developed later in the compile process.

Here is the output of the new error when I try to compile
apache with php4 static:

./configure \
--activate-module=src/modules/php4/libphp4.a \
--enable-module=php4 \
--prefix=/usr/local/apache \

...

/usr/bin/ld: Unsatisfied symbols:
   png_set_PLTE (code)
   png_get_error_ptr (code)
   png_get_PLTE (code)
   png_read_end (code)
   png_check_sig (code)
   png_set_tRNS (code)
   png_create_read_struct (code)
   png_destroy_read_struct (code)
   png_write_end (code)
   png_get_tRNS (code)
   png_set_strip_16 (code)
   png_read_info (code)
   png_get_valid (code)
   png_get_io_ptr (code)
   png_set_dither (code)
   png_destroy_write_struct (code)
   png_write_image (code)
   png_set_write_fn (code)
   png_create_write_struct (code)
   png_create_info_struct (code)
   png_get_rowbytes (code)
   png_read_image (code)
   png_set_sig_bytes (code)
   png_set_packing (code)
   png_set_read_fn (code)
   png_set_IHDR (code)
   png_set_strip_alpha (code)
   png_get_IHDR (code)
   png_write_info (code)
   png_read_update_info (code)
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/opt/GNU/archive/apache_1.3.14/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/opt/GNU/archive/apache_1.3.14'
make: *** [build] Error 2

I verified that I have only a single copy of libpng on my
system.

Here is a listing of the php configure line I used:


./configure \
--with-mysql=/usr/local/mysql \
--with-xml \
--with-apache=../apache_1.3.14 \
--enable-track-vars \
--enable-pic \
--with-gd=/usr/local \
--with-png-dir=/usr/local/lib \
--with-xpm-dir=/opt/xpm/lib/X11 \
--with-jpeg-dir=/usr/local/lib \
--with-ttf




 [2000-12-12 18:05 UTC] kard235 at lni dot wa dot gov
libpng version is 1.0.7
 [2000-12-15 09:07 UTC] sniper@php.net
Try doing this (php4):

1. delete config.cache
2. configure
3. make clean; make depend ; make

--Jani
 [2001-01-30 04:12 UTC] sniper@php.net
No feedback.

--Jani
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 13:01:34 2025 UTC