#41555 [Fbk->Opn]: Unable to compile with --with-gd switch

From: Date: Fri, 01 Jun 2007 15:12:59 +0000
Subject: #41555 [Fbk->Opn]: Unable to compile with --with-gd switch
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113265@lists.php.net to get a copy of this message
ID: 41555 User updated by: genetiq at gmail dot com Reported By: genetiq at gmail dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: MacOS X 10.4.9 PHP Version: 5.2.3 New Comment: tried --with-png-dir=/usr, exactly the same error Previous Comments: ------------------------------------------------------------------------ [2007-06-01 15:05:54] sniper@php.net /usr/lib is also wrong. Try just /usr ------------------------------------------------------------------------ [2007-06-01 10:07:27] genetiq at gmail dot com sorry, my mistake (just copied wrong combination of configure options string from console). of course it's /usr/lib in case of MacOS X (where libpng.a reside) tried different combinations of libjpg and libpng, same error. previous version (5.2.2) builds normally with or without "--with-png- dir" option. ------------------------------------------------------------------------ [2007-06-01 06:39:59] tony2001@php.net >--with-png-dir=/usr/src/libpng This doesn't look like installation prefix. ------------------------------------------------------------------------ [2007-06-01 01:54:15] genetiq at gmail dot com Description: ------------ Unable to compile with bundled GD library - configure script fails with an error. Reproduce code: --------------- trying to compile with the following options: ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man/ --with-apxs2=/usr/sbin/apxs --with-curl --with-gd --enable-exif --enable-fastcgi --with-pgsql --with-zip --with-jpeg-dir=/usr/src/libjpeg --with-png-dir=/usr/src/libpng it fails with this error: configure: error: GD build test failed. Please check the config.log for details. in config.log there are following info: configure:42434: gcc -o conftest -g -O2 -no-cpp-precomp conftest.c -L -lpng -lz -lcurl -lm -lxml2 -lz -liconv -lm -lcurl -lssl -lcrypto -lz -lxml2 -lz -liconv -lm 1>&5 /usr/bin/ld: -L: directory name missing collect2: ld returned 1 exit status configure: failed program was: #line 42423 "configure" #include "confdefs.h" char foobar () {} char foobar(); int main() { foobar(); return 0; } Expected result: ---------------- php is always expected to build normally :) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41555&edit=1

« previous php.bugs (#113265) next »