php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20246 Unable to compile latest snapshot (gd-related + ssl problems)
Submitted: 2002-11-04 09:34 UTC Modified: 2002-11-04 10:22 UTC
From: bugsphp at yayel dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4CVS-2002-11-04 OS: Linux Redhat 7.2
Private report: No CVE-ID: None
 [2002-11-04 09:34 UTC] bugsphp at yayel dot com
Hi

I'm getting errors related to gd library when compiling php4.3pre2 or latest snapshot available (Nov 3, 6am)

With:

./configure --with-apache=../apache_1.3.27 --enable-trans-sid --with-jpeg-dir --with-gd=../gd-2.0.1 --with-tiff-dir --with-png-dir --with-zlib-dir --with-pdflib --enable-ftp --enable-gd-native-ttf --with-freetype-dir=/usr/include/freetype2 --with-mysql=/usr/local/mysql --with-gettext --with-imap --with-kerberos --enable-sysvsem --enable-sysvshm --with-xml --with-db --enable-bcmath --enable-calendar --with-imap-ssl

'make' outputs:

ext/gd/gd.o: In function `zif_imagecreatetruecolor':
/home/ovh/src/php4-200211030600/ext/gd/gd.c:631: undefined reference to `gdImageCreateTrueColor'
ext/gd/gd.o: In function `zif_imagetruecolortopalette':
/home/ovh/src/php4-200211030600/ext/gd/gd.c:652: undefined reference to `gdImageTrueColorToPalette'
ext/gd/gd.o: In function `zif_imagesetthickness':
/home/ovh/src/php4-200211030600/ext/gd/gd.c:710: undefined reference to `gdImageSetThickness'
ext/gd/gd.o: In function `zif_imagefilledellipse':
/home/ovh/src/php4-200211030600/ext/gd/gd.c:735: undefined reference to `gdImageFilledEllipse'
ext/gd/gd.o: In function `zif_imagefilledarc':
/home/ovh/src/php4-200211030600/ext/gd/gd.c:770: undefined reference to `gdImageFilledArc'
ext/gd/gd.o: In function `zif_imagealphablending':
/home/ovh/src/php4-200211030600/ext/gd/gd.c:789: undefined reference to `gdImageAlphaBlending'
ext/gd/gd.o: In function `zif_imagecolorresolvealpha':
/home/ovh/src/php4-200211030600/ext/gd/gd.c:835: undefined reference to `gdImageColorResolveAlpha'
ext/gd/gd.o: In function `zif_imagecolorclosestalpha':
/home/ovh/src/php4-200211030600/ext/gd/gd.c:857: undefined reference to `gdImageColorClosestAlpha'
ext/gd/gd.o: In function `zif_imagecolorexactalpha':
/home/ovh/src/php4-200211030600/ext/gd/gd.c:879: undefined reference to `gdImageColorExactAlpha'
ext/gd/gd.o: In function `zif_imagecopyresampled':
/home/ovh/src/php4-200211030600/ext/gd/gd.c:917: undefined reference to `gdImageCopyResampled'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Erreur 1


Now with --with-gd (no path submited), it seems to compile correctly bundled gd functions, but compilation ends with:

/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libc-client.a(osdep.o): In function `ssl_onceonlyinit':
/usr/src/build/41512-i386/BUILD/imap-2000c/c-client/auth_ssl.c:153: the use of `tmpnam' is dangerous, better use `mkstemp'

I think I must upgrade something but what ? Anyway, this message has been output without any ERROR or WARNING label from 'make'.

Thank you for you help, my server is down for hours :(

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-04 10:22 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Use --with-gd, this will compile PHP with bundled GD 2.0.4, which contains a number of additions made by the PHP team. 
The errors you are seeing are the result of the gd library not being being in the path where the linker can find it.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Dec 03 01:00:01 2025 UTC