php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16584 GD compile failure
Submitted: 2002-04-13 06:33 UTC Modified: 2002-05-29 00:00 UTC
Votes:4
Avg. Score:4.0 ± 1.0
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: chassaing at domisys dot com Assigned:
Status: No Feedback Package: GD related
PHP Version: 4.2.0 OS: FreeBSD 4.3-STABLE
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-04-13 06:33 UTC] chassaing at domisys dot com
Compile with GD 2.0.1 doesn't work anymore (used to work fine with earlier versions of PHP with the exact same parameters). Configure :
./configure \
--prefix=/usr/home/xxxx/local \
--enable-bcmath \
--with-zlib \
--with-png-dir=/usr/local \
--with-jpeg-dir=/usr/local \
--with-tiff-dir=/usr/home/xxxx/local \
--with-t1lib=/usr/home/xxxx/local \
--with-freetype-dir=/usr/home/xxxx/local \
--enable-gd-native-ttf \
--with-gd=/usr/home/xxxx/local \
--enable-exif \
--with-mysql=/usr/local \
--with-ming=/usr/home/xxxx/local \
--disable-pear \
--with-config-file-path=/usr/home/xxxx/local/etc \
--enable-debug=no \
--enable-force-cgi-redirect=yes \
--with-openssl=/usr/local/ssl \
--with-curl=/usr/home/xxxx/src/curl-7.9 \
--with-dom=/usr/home/xxxx/local

And the compile error message :
./.libs/libphp4cli.a(gd.o): In function `zif_imagecreatetruecolor':
/usr/home/xxxx/src/php-4_2_0RC3/ext/gd/gd.c(.text+0xd9e): undefined reference to `gdImageCreateTrueColor'
./.libs/libphp4cli.a(gd.o): In function `zif_imagetruecolortopalette':
/usr/home/xxxx/src/php-4_2_0RC3/ext/gd/gd.c(.text+0xf2b): undefined reference to `gdImageTrueColorToPalette'
./.libs/libphp4cli.a(gd.o): In function `zif_imagesetthickness':
/usr/home/xxxx/src/php-4_2_0RC3/ext/gd/gd.c(.text+0x1032): undefined reference to `gdImageSetThickness'
./.libs/libphp4cli.a(gd.o): In function `zif_imagefilledellipse':
/usr/home/xxxx/src/php-4_2_0RC3/ext/gd/gd.c(.text+0x136a): undefined reference to `gdImageFilledEllipse'
./.libs/libphp4cli.a(gd.o): In function `zif_imagefilledarc':
/usr/home/xxxx/src/php-4_2_0RC3/ext/gd/gd.c(.text+0x1836): undefined reference to `gdImageFilledArc'
./.libs/libphp4cli.a(gd.o): In function `zif_imagealphablending':
/usr/home/xxxx/src/php-4_2_0RC3/ext/gd/gd.c(.text+0x193a): undefined reference to `gdImageAlphaBlending'
./.libs/libphp4cli.a(gd.o): In function `zif_imagecolorresolvealpha':
/usr/home/xxxx/src/php-4_2_0RC3/ext/gd/gd.c(.text+0x1bd1): undefined reference to `gdImageColorResolveAlpha'
./.libs/libphp4cli.a(gd.o): In function `zif_imagecolorclosestalpha':
/usr/home/xxxx/src/php-4_2_0RC3/ext/gd/gd.c(.text+0x1e61): undefined reference to `gdImageColorClosestAlpha'
./.libs/libphp4cli.a(gd.o): In function `zif_imagecolorexactalpha':
/usr/home/xxxx/src/php-4_2_0RC3/ext/gd/gd.c(.text+0x20f1): undefined reference to `gdImageColorExactAlpha'
./.libs/libphp4cli.a(gd.o): In function `zif_imagecopyresampled':
/usr/home/xxxx/src/php-4_2_0RC3/ext/gd/gd.c:882: undefined reference to `gdImageCopyResampled'
./.libs/libphp4cli.a(gd.o): In function `php_imagettftext_common':
/usr/home/xxxx/src/php-4_2_0RC3/ext/gd/gd.c(.text+0x8aa5): undefined reference to `gdImageStringFT'
*** Error code 1

Stop in /usr/home/xxxx/src/php-4_2_0RC3/sapi/cli.
*** Error code 1

Stop in /usr/home/xxxx/src/php-4_2_0RC3/sapi/cli.
*** Error code 1

Stop in /usr/home/xxxx/src/php-4_2_0RC3.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-13 06:33 UTC] chassaing at domisys dot com
Edited to correct version (4.2.0RC3)
 [2002-04-13 23:54 UTC] sniper@php.net
The CLI version of PHP is experimental in PHP 4.2.0.
The RC3 was supposed to have it disabled by default,
but there was a bug in the configure.
Fixed in CVS and will be in next RC and the release.

 [2002-04-16 04:47 UTC] chassaing at domisys dot com
Re-opened the bug report : I just tried compiling PHP 4.2.0 RC4 and the problem is still here (exact same problem as with RC3).
 [2002-04-19 11:14 UTC] chassaing at domisys dot com
(changed version to RC4)
 [2002-04-24 03:00 UTC] chassaing at domisys dot com
Tried with the 4.2.0 final release, the bug is still here.
 [2002-04-24 10:09 UTC] sniper@php.net
The sapi/cli should be disabled by default in 4.2.0..
So it shouldn't even try to compile it if you haven't
added --enable-cli in your configure line. Do you have that?

Or is the error different now?

--Jani

 [2002-04-24 10:32 UTC] chassaing at domisys dot com
Didn't change anything, the configure options are exactly (letter for letter) the same as before. I tried to add "--disable-cli" just in case as well and the result is exactly the same. I tried also with an older version of GD (1.8) got the same problem (well the error message is longer since more functions seem to be missing)
 [2002-04-24 21:52 UTC] sniper@php.net
What is the compile/link line which gives that error?

 [2002-04-28 13:27 UTC] chassaing at domisys dot com
OK when I try with an older version of GD using this configure :
./configure \
--prefix=/usr/home/xxxx/local \
--enable-bcmath \
--with-zlib \
--enable-gd-native-ttf \
--with-gd=/usr/local \
--with-png-dir=/usr/local \
--with-jpeg-dir=/usr/local \
--enable-exif \
--with-mysql=/usr/local \
--disable-pear \
--with-config-file-path=/usr/home/xxxx/local/etc \
--enable-debug=no \
--enable-force-cgi-redirect=yes \
--with-openssl=/usr/local/ssl \
--with-curl=/usr/home/xxxx/src/curl-7.9 \
--with-dom=/usr/home/xxxx/local

configure works fine, and correctly detects the version of GD to use (it says "checking for gdImageCreateTrueColor in -lgd... no" which means this is indeed GD before 2.0 version which didn't support true color). I get this error when compiling :
./.libs/libphp4.a(gd.o): In function `zm_startup_gd':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c:281: undefined reference to `T1_SetBitmapPad'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c:282: undefined reference to `T1_InitLib'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c:283: undefined reference to `T1_SetLogLevel'
./.libs/libphp4.a(gd.o): In function `zif_imagecreatetruecolor':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0xd9e): undefined reference to `gdImageCreateTrueColor'
./.libs/libphp4.a(gd.o): In function `zif_imagetruecolortopalette':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0xf2b): undefined reference to `gdImageTrueColorToPalette'
./.libs/libphp4.a(gd.o): In function `zif_imagesetthickness':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x1032): undefined reference to `gdImageSetThickness'
./.libs/libphp4.a(gd.o): In function `zif_imagefilledellipse':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x136a): undefined reference to `gdImageFilledEllipse'
./.libs/libphp4.a(gd.o): In function `zif_imagefilledarc':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x1836): undefined reference to `gdImageFilledArc'
./.libs/libphp4.a(gd.o): In function `zif_imagealphablending':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x193a): undefined reference to `gdImageAlphaBlending'
./.libs/libphp4.a(gd.o): In function `zif_imagecolorresolvealpha':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x1bd1): undefined reference to `gdImageColorResolveAlpha'
./.libs/libphp4.a(gd.o): In function `zif_imagecolorclosestalpha':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x1e61): undefined reference to `gdImageColorClosestAlpha'
./.libs/libphp4.a(gd.o): In function `zif_imagecolorexactalpha':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x20f1): undefined reference to `gdImageColorExactAlpha'
./.libs/libphp4.a(gd.o): In function `zif_imagecopyresampled':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c:882: undefined reference to `gdImageCopyResampled'
./.libs/libphp4.a(gd.o): In function `php_imagettftext_common':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x8aa5): undefined reference to `gdImageStringFT'
./.libs/libphp4.a(gd.o): In function `php_free_ps_font':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x8b1e): undefined reference to `T1_DeleteFont'
./.libs/libphp4.a(gd.o): In function `php_free_ps_enc':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x8b3f): undefined reference to `T1_DeleteEncoding'
./.libs/libphp4.a(gd.o): In function `zif_imagepsloadfont':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x8c01): undefined reference to `T1_AddFont'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x8c45): undefined reference to `T1_LoadFont'
./.libs/libphp4.a(gd.o): In function `zif_imagepsencodefont':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x8df7): undefined reference to `T1_LoadEncoding'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x8e1e): undefined reference to `T1_DeleteAllSizes'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x8e29): undefined reference to `T1_ReencodeFont'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x8e39): undefined reference to `T1_DeleteEncoding'
./.libs/libphp4.a(gd.o): In function `zif_imagepsextendfont':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x8f6c): undefined reference to `T1_ExtendFont'
./.libs/libphp4.a(gd.o): In function `zif_imagepsslantfont':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x9084): undefined reference to `T1_SlantFont'
./.libs/libphp4.a(gd.o): In function `zif_imagepstext':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x97d9): undefined reference to `T1_AASetBitsPerPixel'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x9802): undefined reference to `T1_AASetGrayValues'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x980f): undefined reference to `T1_AASetLevel'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x9823): undefined reference to `T1_AAHSetGrayValues'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x982d): undefined reference to `T1_AASetLevel'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x9882): undefined reference to `T1_RotateMatrix'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x98b6): undefined reference to `T1_GetExtend'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x98f0): undefined reference to `T1_GetCharOutline'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x9925): undefined reference to `T1_GetKerning'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x99bc): undefined reference to `T1_GetMoveOutline'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x99c9): undefined reference to `T1_ConcatOutlines'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x9a06): undefined reference to `T1_GetCharOutline'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x9a13): undefined reference to `T1_ConcatOutlines'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x9a40): undefined reference to `T1_AAFillOutline'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x9a8d): undefined reference to `T1_AASetString'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x9a97): undefined reference to `T1_errno'
./.libs/libphp4.a(gd.o): In function `zif_imagepsbbox':
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0x9ff7): undefined reference to `T1_GetCharWidth'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0xa06d): undefined reference to `T1_GetCharBBox'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0xa089): undefined reference to `T1_GetCharWidth'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0xa0bb): undefined reference to `T1_GetKerning'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0xa3a2): undefined reference to `T1_GetStringBBox'
/usr/home/xxxx/src/php-4.2.0/ext/gd/gd.c(.text+0xa3ab): undefined reference to `T1_errno'
*** Error code 1

Stop in /usr/home/xxxx/src/php-4.2.0.
*** Error code 1

Stop in /usr/home/xxxx/src/php-4.2.0.


the first error lines are the same as when I use with GD 2.0.1, the rest seems to be related to freetype ?
 [2002-04-28 19:50 UTC] sniper@php.net
You have multiple gd.h and libgd.* files in your
system. Please remove all of them and reinstall only ONE
version of gd library.

And you're obviously trying to reconfigure same PHP sources but fail to cleanup properly in between the tries. Can you
please get fresh sources of PHP and try again

--Jani

 [2002-05-29 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 11:01:33 2024 UTC