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

From: Date: Fri, 01 Jun 2007 15:05:55 +0000
Subject: #41555 [Opn->Fbk]: Unable to compile with --with-gd switch
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113271@lists.php.net to get a copy of this message
 ID:               41555
 Updated by:       sniper@php.net
 Reported By:      genetiq at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: MacOS X 10.4.9
 PHP Version:      5.2.3
 New Comment:

/usr/lib is also wrong. Try just /usr



Previous Comments:
------------------------------------------------------------------------

[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


Thread (16 messages)

« previous php.bugs (#113271) next »