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] [EMAIL PROTECTED]
/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] [EMAIL PROTECTED]
>--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