php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15000 gd1.3 : gdImageColorResolve : reference symbol not found
Submitted: 2002-01-11 13:27 UTC Modified: 2002-08-07 13:32 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: jmgseb at worldnet dot fr Assigned:
Status: Closed Package: GD related
PHP Version: 4.1.1 OS: Solaris
Private report: No CVE-ID: None
 [2002-01-11 13:27 UTC] jmgseb at worldnet dot fr
Every thing works fine with php 4.0.6 but not with the 4.1.1.

When starting apache 1.3.22 I've got the message :

rast.instdev2> /opt/apache_adm/bin/apachectl  start
Syntax error on line 223 of /opt/apache_adm/conf/httpd.conf:
Cannot load /opt/apache_adm/libexec/libphp4.so into server: ld.so.1: /opt/apache_adm/bin/httpd: fatal: relocation error: file /opt/a
pache_adm/libexec/libphp4.so: symbol gdImageColorResolve: referenced symbol not found
/opt/apache_adm/bin/apachectl start: httpd could not be started

Configure options for php 4.1.1 :
./configure --with-apxs=/opt/apache_adm/bin/apxs \
--with-oracle=/opt/oracle/ora8170 \
--with-oci8=/opt/oracle/ora8170 \
--with-config-file-path=/opt/apache_adm/conf \
--enable-debug=no --enable-magic-quotes \
--enable-track-vars --enable-sigchild \
--without-mysql --prefix=/opt/php \
--with-gd=/opt/packages/instit/gd1.3 \
--with-ttf=/opt/freetype 

Part of the configure output regarding GD :
checking whether to enable FTP support... no
checking whether to include GD support... yes
checking whether to enable truetype string function in gd... no
checking for the location of libjpeg... no
If configure fails try --with-jpeg-dir=<DIR>
checking for the location of libpng... no
If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>
checking for the location of libXpm... no
If configure fails try --with-xpm-dir=<DIR>
checking for freetype(2)... no
If configure fails try --with-freetype-dir=<DIR>
checking whether to include include FreeType 1.x support... yes
checking whether to include T1lib support... no
checking for gdImageString16 in -lgd... (cached) yes
checking for gdImagePaletteCopy in -lgd... (cached) no
checking for gdImageCreateFromPng in -lgd... (cached) no
checking for gdImageCreateFromGif in -lgd... (cached) yes
checking for gdImageGif in -lgd... (cached) yes
checking for gdImageWBMP in -lgd... (cached) no
checking for gdImageCreateFromJpeg in -lgd... (cached) no
checking for gdImageCreateFromXpm in -lgd... (cached) no
checking for gdImageCreateFromGd2 in -lgd... (cached) no
checking for gdImageCreateTrueColor in -lgd... (cached) no
checking for gdImageSetTile in -lgd... (cached) yes
checking for gdImageSetBrush in -lgd... (cached) yes
checking for gdImageStringTTF in -lgd... (cached) no
checking for gdImageStringFT in -lgd... (cached) no
checking for gdImageStringFTEx in -lgd... (cached) no
checking for gdImageColorClosestHWB in -lgd... (cached) no
checking for gdImageColorResolve in -lgd... (cached) no
checking for gdImageGifCtx in -lgd... (cached) no
checking whether to include GNU gettext support... no


I'm using gd1.3 (for GIF support) and freetype 1.3.1.
I'm compiling php4.1.1 with no change regarding the 4.0.6 compilation.
No error during compilation.

With php4.0.6, no problem at apache statup (gd and ttf supported), with 4.1.1 I have got the previous message.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-08 17:29 UTC] dward at maidencreek dot com
Check bug #14426 for the problem.

I had the same problem when installing 4.1.2 and needed to change ext/gd/php_gd.h to have
extern int gdImageColorResolve(...);
instead of
static int gdImageColorResolve(...);
 [2002-03-17 12:02 UTC] sander@php.net
This bug has been fixed in CVS.


 [2002-08-07 13:26 UTC] jmgseb at worldnet dot fr
The bug still appears in release 4.2.2 even if it has been fixed in CVS in march.
 [2002-08-07 13:32 UTC] sander@php.net
For some reason, the fix hasn't made it into the 4.2.x branch. It will be in 4.3.0. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 07:01:32 2024 UTC