php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10336 configure: test gd functions lacks inclusion of -lpng, -lz
Submitted: 2001-04-15 12:46 UTC Modified: 2001-06-03 07:11 UTC
From: elkner at linofee dot org Assigned:
Status: Closed Package: GD related
PHP Version: 4.0.4pl1 OS: Linux 2.4.3 i686
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: elkner at linofee dot org
New email:
PHP Version: OS:

 

 [2001-04-15 12:46 UTC] elkner at linofee dot org
I'm using shared libgd.so.2.0.0 which supports jpeg, xpm, png and libz. Unfortunately php configure does NOT include
libpng and libz in its test, so it gets wrong results.
E.g.:

configure:15759: checking whether to include GD support
configure:16388: checking for gdImageString16 in -lgd
configure:16407: gcc -o conftest -g -O2  -DLINUX=2 -DMOD_SSL=206105 -DEAPI -DUSE
_EXPAT -DSHARED_CORE  -Wl,-rpath,/opt/ssl/lib -L/opt/ssl/lib -Wl,-rpath,/usr/X11
R6/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -L/usr/local/
lib conftest.c -lgd  -lgd -lX11 -lXpm -ljpeg -lcrypto -lssl -lresolv -lm -ldl -l
crypt -lnsl  -lresolv -L/usr/lib -ljpeg -L/usr/X11R6/lib -lXpm -L/usr/X11R6/lib 
-lX11 1>&5
/usr/local/lib/libgd.so: undefined reference to `uncompress'
/usr/local/lib/libgd.so: undefined reference to `png_get_rowbytes'
/usr/local/lib/libgd.so: undefined reference to `png_set_strip_16'
/usr/local/lib/libgd.so: undefined reference to `png_create_read_struct'
...
collect2: ld returned 1 exit status
configure: failed program was:
...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-03 07:11 UTC] sniper@php.net
This should be fixed in PHP 4.0.6. Please try the
latest release candidate (RC2) from:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 07:01:31 2024 UTC