[PHP-DEV] PHP 4.0 Bug #7795 Updated: Duplicate symbol gdImageColorResolve From: sniper <email protected>
Date: 12/15/00

ID: 7795
Updated by: sniper
Reported By: kard235 <email protected>
Old-Status: Open
Status: Feedback
Bug Type: Compile Failure
Assigned To:
Comments:

Try doing this (php4):

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

--Jani

Previous Comments:
---------------------------------------------------------------------------

[2000-12-12 18:05:18] kard235 <email protected>
libpng version is 1.0.7

---------------------------------------------------------------------------

[2000-12-12 14:59:25] kard235 <email protected>
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-04 09:38:28] sniper <email protected>
Sorry for duplicate emails about this..could you
try adding the base install dir of GD to the --with-gd
parameter?

--Jani

---------------------------------------------------------------------------

[2000-11-29 18:34:38] kard235 <email protected>
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-11-29 16:46:35] sniper <email protected>
Could you please include your configure line into this bug report?
And what is the version of the GD library ??

--Jani

---------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=7795

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>