php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20125 not reconizing GD functions with GD-2.0.4
Submitted: 2002-10-27 15:22 UTC Modified: 2002-10-27 17:38 UTC
From: richard at klik-on dot nl Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.2.3 OS: Redhat 7.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: richard at klik-on dot nl
New email:
PHP Version: OS:

 

 [2002-10-27 15:22 UTC] richard at klik-on dot nl
i've installed GD-4.0.2 with jpeg,libpng,zlib and freetype2.

but when i tried to install GD under PHP, i'm getting the folowing:

checking for GD support... yes
checking whether to enable truetype string function in GD... yes
checking for the location of libjpeg... yes
checking for jpeg_read_header in -ljpeg... yes
checking for the location of libpng... yes
checking for png_write_image in -lpng... yes
checking for the location of libXpm... no
If configure fails try --with-xpm-dir=<DIR>
checking for freetype(2)... yes
checking for FreeType 1.x support... no
checking for T1lib support... yes
checking for T1_LoadFont in -lt1... yes
checking for gdImageString16 in -lgd... no
checking for gdImagePaletteCopy in -lgd... no
checking for gdImageCreateFromPng in -lgd... no
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageGif in -lgd... no
checking for gdImageWBMP in -lgd... no
checking for gdImageCreateFromJpeg in -lgd... no
checking for gdImageCreateFromXpm in -lgd... no
checking for gdImageCreateFromGd2 in -lgd... no
checking for gdImageCreateTrueColor in -lgd... no
checking for gdImageSetTile in -lgd... no
checking for gdImageSetBrush in -lgd... no
checking for gdImageStringTTF in -lgd... no
checking for gdImageStringFT in -lgd... no
checking for gdImageStringFTEx in -lgd... no
checking for gdImageColorClosestHWB in -lgd... no
checking for gdImageColorResolve in -lgd... no
checking for gdImageGifCtx in -lgd... no

so as you can see, it's even dedecting the GD2 function, but it's not working.

i've spoken with the creator of GD, and he's positieve that it's an error in PHP.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-27 15:23 UTC] derick@php.net
what does config.log say?

Derick

 [2002-10-27 15:33 UTC] richard at klik-on dot nl
well, i'm getting all kind's of error:

/usr/local/gd/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 24556 "configure"


/usr/local/gd/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 24609 "configure"



/usr/local/gd/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 24662 "configure"



/tmp/ccHr63vt.o: In function `main':
/usr/local/src/php-4.2.3/configure:24722: undefined reference to `gdImageCreateFromGif'
/usr/local/gd/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 24715 "configure"


/tmp/ccrawnoi.o: In function `main':
/usr/local/src/php-4.2.3/configure:24775: undefined reference to `gdImageGif'
/usr/local/gd/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 24768 "configure"


/usr/local/gd/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 24821 "configure"


/usr/local/gd/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 24874 "configure"



/usr/local/gd/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 24927 "configure"


/usr/local/gd/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 24980 "configure"


/usr/local/gd/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 25033 "configure"



/usr/local/gd/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 25086 "configure"


/usr/local/gd/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 25139 "configure"


/usr/local/gd/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 25192 "configure"


/tmp/ccLorihZ.o: In function `main':
/usr/local/src/php-4.2.3/configure:25464: undefined reference to `gdImageGifCtx'
/usr/local/gd/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status


/usr/bin/ld: cannot find -lintl
collect2: ld returned 1 exit status
configure: failed program was:
#line 25631 "configure"
configure: failed program was:
#line 25457 "configure"

i don't know what's wrong...
 [2002-10-27 16:48 UTC] derick@php.net
Please provide your full config.log online (or mail it as attachement).

Derick
 [2002-10-27 17:38 UTC] sniper@php.net
1. GD 2.0.4 is not supported by any released version of PHP
2. You're configure line misses --with-xpm-dir (pay more attention to what configure outputs, will ya?)
3. Grab a snapshot, compile php with --with-gd (ie. no path)
and the extra options needed.  That will work as it uses the PHP bundled GD library and as it compiles it to contain all the extra stuff you want it to contain. No more hassle with GD library this way.

Last but not least: This "bug" has already been reported. Please don't submit yet another report about it but add your comments to the existing one.




 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 21:01:33 2024 UTC