php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28675 compiling with internal GD lib fails
Submitted: 2004-06-07 16:25 UTC Modified: 2004-07-08 13:06 UTC
From: till at klimpong dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.7 OS: FreeBSD 4.6
Private report: No CVE-ID: None
 [2004-06-07 16:25 UTC] till at klimpong dot com
Description:
------------
I'm using 4.3.7 stable.

Configure string:
./configure \
--with-apxs=/usr/local/sbin/apxs \
--with-config-file-path=/usr/local/etc \
--enable-versioning \
--with-regex=system \
--with-pgsql \
--with-gd \
--enable-gd-native-ttf \
--with-freetype-dir=/usr/local \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-zlib \
--with-bz2=/usr \
--with-mcrypt=/usr/local \
--with-mhash=/usr/local \
--with-pdflib=/usr/local \
--with-zlib-dir=/usr \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-tiff-dir=/usr/local \
--with-mysql=/usr/local/mysql4 \
--with-expat-dir=/usr/local \
--with-xmlrpc \
--enable-xslt \
--with-xslt-sablot \
--enable-wddx \
--with-dom=/usr/local \
--enable-ftp \
--with-gettext=/usr/local \
--enable-mbregex \
--enable-bcmath \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-trans-sid \
--with-iconv=/usr/local \
--enable-exif \
--enable-track-vars \
--with-imap \
--with-mcal \
--with-pear \
--with-openssl=/usr/local \
--disable-ipv6

Make fails with:
ext/gd/gd.lo: In function `zif_imagegif':
/usr/src/php-4.3.7/ext/gd/gd.c(.text+0x3d24): undefined reference to `gdImageGifCtx'
ext/gd/gd.lo: In function `zif_imagecolorat':
/usr/src/php-4.3.7/ext/gd/gd.c:1874: undefined reference to `gdImageBoundsSafe'
/usr/src/php-4.3.7/ext/gd/gd.c:1882: undefined reference to `gdImageBoundsSafe'
ext/pdf/pdf.lo: In function `zif_pdf_open_memory_image':
/usr/src/php-4.3.7/ext/pdf/pdf.c(.text+0x6067): undefined reference to `gdImageBoundsSafe'
/usr/src/php-4.3.7/ext/pdf/pdf.c(.text+0x60aa): undefined reference to `gdImageBoundsSafe'
*** Error code 1


I searched multipe mailing lists, no answer was provided.

I also tried the latest snapshot:
http://snaps.php.net/php4-STABLE-200406071230.tar.gz

Same configure string, but the make and make install worked perfectly.

Now my problem is that this _always_ works in the snapshots, but it's "messed up" in the stable release, which is why I thought I'd report it anyway.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-07 16:35 UTC] iliaa@php.net
Do you have gd.h anywhere on your system beside the one 
found in the PHP directory? 
 [2004-06-07 16:38 UTC] till at klimpong dot com
Yes I do.
 [2004-06-07 16:39 UTC] iliaa@php.net
Can you temporary remove that file and then try to 
configure/compile PHP. 
 [2004-06-07 18:19 UTC] till at klimpong dot com
/usr/local/include/gd/gd.h.old
/usr/local/include/libwmf/gd/gd.h
/usr/local/include/libwmf/gd.h
/usr/local/include/gd.h.old
/usr/local/share/doc/libwmf/gd.html

Did that, but it still failed. Do you think I need to remove it from within libwmf directory as well?
 [2004-06-08 09:52 UTC] derick@php.net
Yes, and use a fresh copy of the PHP sources (as our configure stuff already found out about those other gd.h files).
 [2004-06-08 16:15 UTC] till at klimpong dot com
Ok, renamed the rest, did a 'make clean' and it all went through. I did a "make test", email is the same as on here.

Strange. Is this "fixable"?

Cheers,
Till
 [2004-07-08 13:06 UTC] sniper@php.net
No.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 17 18:01:29 2024 UTC