php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22722 make failed with --with-gd
Submitted: 2003-03-15 01:55 UTC Modified: 2003-03-17 04:34 UTC
From: libser at manas dot kg Assigned:
Status: Closed Package: GD related
PHP Version: 4.3.2RC1 OS: FreeBSD 4.8-RC
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: libser at manas dot kg
New email:
PHP Version: OS:

 

 [2003-03-15 01:55 UTC] libser at manas dot kg
Good day,

FreeBSD 4.8-RC, Apache 2.0.44, PHP 4.3.2RC1

#pkg_info | grep gd
gd-1.8.4_6 A graphics library for fast image creation
gd-2.0.1_3 A graphics library for fast creation of images

./configure \
--prefix=/usr/local/php4 \
--with-apxs2=/usr/local/sbin/apxs \
--with-zlib=/usr \
--with-mysql=/usr/local \
--with-gettext=/usr/local \
--with-mm=/usr/local \
--with-imap=../imap \
--with-imap-ssl \
--enable-ftp \
--with-expat=/usr/local \
--with-mcrypt=/usr/local \
--with-mcal=/usr/local \
--with-openssl \
--with-dom=/usr/local \
--with-iconv=/usr/local \
--enable-mime-magic \
--with-xml=/usr/local \
--enable-mbstring \
--with-tsrm-pth \
--with-gd=/usr/local

Here is the error message after running `make`:

ext/gd/gd.lo: In function `zm_deactivate_gd':
/usr/tmp/complete_new/php-4.3.2RC1/ext/gd/gd.c:380: undefined reference to `gdFreeFontCache'
*** Error code 1

Stop in /usr/tmp/complete_new/php-4.3.2RC1.

PHP 4.3.0 with the same configure options compiles just fine.

Thank you.
Roman

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-15 23:18 UTC] sniper@php.net
You mention 2 different GD versions, where are they installed? Both under /usr/local ? Or other one under /usr/ perhaps? 

Try using the bundled GD library. (use just '--with-gd')

 [2003-03-17 04:34 UTC] libser at manas dot kg
Hi,

Thank you for your response.
Yes, both are installed under /usr/local:

#cd /usr/local/lib
#ls -al | grep libgd

-r--r--r-- 1 root wheel 235654 Feb 12 10:03 libgd.a
lrwxr-xr-x 1 root wheel 10 Feb 12 10:03 libgd.so -> libgd.so.4
-r--r--r-- 1 root wheel 194112 Dec 17 09:54 libgd.so.2
-r--r--r-- 1 root wheel 210980 Feb 12 10:03 libgd.so.4

I just tried using the bundled GD library you mentioned before and it compiles fine.

Thank you.
 [2003-06-09 16:30 UTC] alasdair at alivewww dot com
I'm having exactly the same problem - except I only have one version of GD installed:

psa1# cd /usr/local/lib
psa1# ls -al | grep libgd
-r--r--r--   1 root  wheel   235664 Feb 26 03:24 libgd.a
lrwxr-xr-x   1 root  wheel       10 Apr  8 11:12 libgd.so -> libgd.so.4
-r--r--r--   1 root  wheel   211044 Feb 26 03:24 libgd.so.4

This is not a bogus or closed bug - a perfectly valid installation of GDLib 2.0.1 is present, and PHP 4.3.1 compiled without problem.

GD was installed from the FreeBSD ports collection, and the system is FreeBSD 4.7-RELEASE.

If there is any other information that may help find the cause of this bug, please let me know so I can post that information.
 [2003-06-09 16:31 UTC] alasdair at alivewww dot com
I also forgot to mention that I'm installing PHP with Apache 1.3.27, not version 2.0.44 as the original submitter.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 18:01:30 2024 UTC