php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24310 undefined reference to `gdFreeFontCache' and others...
Submitted: 2003-06-24 03:51 UTC Modified: 2003-06-29 21:18 UTC
Votes:8
Avg. Score:4.5 ± 0.7
Reproduced:6 of 7 (85.7%)
Same Version:3 (50.0%)
Same OS:2 (33.3%)
From: kkwan at comp dot hkbu dot edu dot hk Assigned:
Status: No Feedback Package: GD related
PHP Version: 4.3.2 OS: SuSE 8.2
Private report: No CVE-ID: None
 [2003-06-24 03:51 UTC] kkwan at comp dot hkbu dot edu dot hk
Description:
------------
I have a problems when in 'make' stage in my php 4.3.2
with gd 2.0.15
installation, it shows a lot if undefined references:

ext/gd/gd.o(.text+0x5f7): In function `zm_deactivate_gd':
/usr/local/src/php-4.3.2/ext/gd/gd.c:382: undefined reference to `gdFreeFontCache'
ext/gd/gd.o(.text+0x2f01): In function `zif_imagecreatefromstring':
/usr/local/src/php-4.3.2/ext/gd/gd.c:1313: undefined reference to `gdImageCreateFromJpegCtx'
ext/gd/gd.o(.text+0x3297): In function `zif_imagecreatefromjpeg':
/usr/local/src/php-4.3.2/ext/gd/gd.c:1497: undefined reference to `gdImageCreateFromJpegCtx'
ext/gd/gd.o(.text+0x329c):/usr/local/src/php-4.3.2/ext/gd/gd.c:1497: undefined reference to `gdImage
CreateFromJpeg'
ext/gd/gd.o(.text+0x39e7): In function `zif_imagejpeg':
/usr/local/src/php-4.3.2/ext/gd/gd.c:1736: undefined reference to `gdImageJpegCtx'
ext/gd/gd.o(.text+0x3eb8): In function `zif_imagecolorat':
/usr/local/src/php-4.3.2/ext/gd/gd.c:1855: undefined reference to `gdImageBoundsSafe'
ext/gd/gd.o(.text+0x3f04):/usr/local/src/php-4.3.2/ext/gd/gd.c:1863: undefined reference to `gdImage
BoundsSafe'
ext/gd/gd.o(.text+0x9466): In function `_php_image_convert':
/usr/local/src/php-4.3.2/ext/gd/gd.c:3724: undefined reference to `gdImageCreateFromJpeg'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

---------------------------------------------

The following is my configure setting:

./configure \
--with-mysql=/usr/local/mysql \
--with-xml \
--with-apache=/usr/local/src/apache_1.3.27 \
--enable-track-vars \
--with-gd \
--with-zlib-dir=/usr/local/lib \
--with-jpg-dir=/usr/local/lib \
--with-png-dir=/usr/local/lib \
--enable-gd-native-ttf 


Can anyone one tell me what the problem is?
Thank you very much.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-29 21:18 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2004-11-30 11:32 UTC] s dot besteman at kernpunkt dot de
I have nearly the same problem. It's the same php and gdlib version, but in my build only one of the errors occour:

ext/gd/gd.o(.text+0x57b): In function `zm_deactivate_gd':
/.../php4-STABLE-200411300930/ext/gd/gd.c:390: undefined reference to `gdFreeFontCache'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1

As you can see, I have already downloaded the latest stable build, so what's the matter with this error?

My configure command:

./configure --host=i386-redhat-linux --build=i386-redhat-linux --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db4=/usr --with-curl --with-dom=/usr --with-exec-dir=/usr/bin --with-freetype-dir=/usr/local/lib/ --with-png-dir=/usr/lib --with-gd=/usr/local --enable-gd-native-ttf --with-ttf --with-gettext --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr/lib --without-openssl --with-png --with-pspell --with-regex=system --with-xml --with-expat-dir=/usr --with-pcre-regex=/usr/local --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --without-oci8 --with-pear=/usr/share/pear --with-ldap=shared --with-mysql=shared,/usr --with-unixODBC=shared --enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning --enable-calendar --enable-dbx --enable-dio --enable-mcal --with-apxsfilter=/usr/local/psa/admin/bin/apxs
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 15:01:32 2024 UTC