From: tuxedobob at mac dot com
Operating system: Mac OS X 10.3.4
PHP version: 4.3.6
PHP Bug Type: Compile Failure
Bug description: --with-gd doesn't work: "problem with libpng.(a|so)"
Description:
------------
Tried to run configure using this line (which works
without the --with-gd and --with-jpeg-dir options):
./configure --with-apxs --with-zlib=/usr --with-mysql --
enable-cgi --with-gd --with-jpeg-dir --with-ldap --with-
xml --with-iodbc --enable-sockets --enable-dbx --enable-
dbase --enable-trans-sid --enable-exif --enable-wddx --
enable-ftp --enable-mbstring --with-iconv
configure told me this:
checking for png_write_image in -lpng... no
configure: error: Problem with libpng.(a|so) or
libz.(a|so). Please check config.log for more
information.
config.log has this to say:
configure:30316: checking for png_write_image in -lpng
configure:30335: gcc -o conftest -g -O2 -no-cpp-precomp
-L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/
usr/local/lib -lz conftest.c -lpng -ljpeg -lz -lm 1>&5
ld: table of contents for archive: /usr/local/lib/
libpng.a is out of date; rerun ranlib(1) (can't load
from it)
configure: failed program was:
#line 30324 "configure"
#include "confdefs.h"/* Override any gcc2 internal
prototype to avoid an error. */
/* We use char because int might match the return type
of a gcc2
builtin and then its argument prototype would still
apply. */char png_write_image();
int main() {
png_write_image(); return 0; }
I also get this error trying to compile/configure PHP
4.3.7RC1. The strange thing is, I have 4.3.6 running
already with GD included. I have somewhat changed my
system since last install, but even reinstalling zlib
and libpng, this persists, and since the GD stuff
supposedly comes bundled with PHP, I don't see how I
could've messed things up.
--
Edit bug report at http://bugs.php.net/?id=28607&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28607&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28607&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28607&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28607&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28607&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28607&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28607&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28607&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28607&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28607&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28607&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28607&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28607&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28607&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28607&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28607&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28607&r=float