php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24770 gd lib function undefined in final build process
Submitted: 2003-07-23 13:01 UTC Modified: 2003-07-23 13:27 UTC
From: tim at subscriberbase dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.0.0b1 (beta1) OS: Red hat 8.0
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tim at subscriberbase dot com
New email:
PHP Version: OS:

 

 [2003-07-23 13:01 UTC] tim at subscriberbase dot com
Description:
------------
Building php5-b1 on this machine breaks with this error. However on the exact same machine this works on php4.3.3-RC1

ext/gd/gd.o: In function `zm_deactivate_gd':
/data/BUILD/php5/ext/gd/gd.c:437: undefined reference to `gdFreeFontCache'
collect2: ld returned 1 exit status

I am using gdlib 2.0.15

The configuration is listed below

Reproduce code:
---------------
./configure --prefix=/php5 \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-tiff-dir="/usr/local" \
--with-freetype-dir=/usr/local \
--with-zlib-dir=/usr/local \
--with-gettext \
--with-mcrypt=/usr/local \
--with-ming=/usr/local \
--with-mhash=/usr/local \
--with-mysql=/usr/local \
--with-zlib=/usr/local \
--with-ncurses=/usr/local \
--with-unixODBC=/usr/local/unixODBC \
--with-xml \
--with-calendar=shared \
--with-freetype=/usr/local \
--with-ttf=/usr/local \
--with-bz2 \
--with-dom \
--enable-localizer \
--enable-bcmath \
--enable-calendar \
--enable-dio \
--enable-exif \
--enable-ftp \
--enable-shmop \
--enable-sigchild \
--enable-sockets \
--enable-track-vars \
--enable-magic-quotes \
--enable-trans-sid \
--enable-libgcc \
--enable-wddx \
--enable-sysvshm \
--enable-sysvsem \
--enable-sysvmsg \
--enable-mbstring \
--enable-versioning \
--enable-mailparse

Expected result:
----------------
Completed php binary

Actual result:
--------------
ext/gd/gd.o: In function `zm_deactivate_gd':
/data/BUILD/php5/ext/gd/gd.c:437: undefined reference to `gdFreeFontCache'
collect2: ld returned 1 exit status

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-23 13:18 UTC] iliaa@php.net
Try using the bundled gd library.
 [2003-07-23 13:27 UTC] tim at subscriberbase dot com
That fixed it.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 21:01:33 2025 UTC