ID:               45177
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ignos at sandboxed dot org
-Status:           Open
+Status:           Feedback
 Bug Type:         GD related
 Operating System: RedHat 9.0
 PHP Version:      5.2.6
 New Comment:

Start by reducing that massive configure line to the shortest possible
that still causes the problem. Or rather: start from scratch:

# ./configure --disable-all <add needed options one by one..>

You also use options that don't even exist anymore. Check "./configure
--help" for more information.



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

[2008-06-05 09:00:52] ignos at sandboxed dot org

I checked also to compile it with the latest CVS snapshot, but it
did'nt work.

------------------------------------------------------------------------

[2008-06-04 16:43:14] ignos at sandboxed dot org

Description:
------------
I'm having compile failures when I try to use the --with-gd switch on
my configure script. I think that this bug was solved on Bug#41555(PHP
5.2.3), but from 5.2.4 and up I couldn't achieve to compile it.

I tried to use the Bug#41555 suggestions on the configure code with a
little of guessing, but it didn't work either.

This problem is *partially* solved when you use your own customized and
compiled gd libraries (--with-gd=/usr/local), but I need to use the
bundled ones with PHP because I need the imagerotate() function.

Note: The configure options I submit work as expected with PHP5.2.3,
but not for any other later versions).

Reproduce code:
---------------
#make distclean

#./configure --enable-cgi --disable-fastcgi --enable-cli --prefix=/usr
--exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var
--mandir=/usr/share/man --info
dir=/usr/share/info --with-config-file-path=/cgis/php
--enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath
--enable-inline-optimization --
with-freetype-dir=/usr --with-png-dir=/usr --with-gd
--enable-gd-native-ttf --with-ttf --with-jpeg-dir=/usr
--with-mm=/usr/local/mm --with-png --with-zlib --e
nable-bcmath --enable-debugger --enable-exif --enable-ftp
--enable-magic-quotes --enable-safe-mode --with-exec-dir=/usr/bin
--enable-sockets --enable-track-va
rs --enable-trans-sid --with-mysql=/usr/local/mysql
--enable-ucd-snmp-hack --enable-memory-limit --enable-shmop
--enable-versioning --enable-calendar --enable
-dbx --enable-dio --enable-mbstring --enable-mbstr-enc-trans
--with-bz2=/usr/lib --with-db4 --with-curl --with-dom --with-gdbm
--with-gettext --with-ncurses -
-with-gmp --with-iconv --with-pgsql=/usr/local --with-unixODBC
--with-mcrypt=/usr/local --with-pspell --with-xml=/usr/local
--with-expat --with-mhash --disabl
e-yp --disable-wddx --with-pear --without-oci8 --without-ldap
--without-snmp --with-openssl=/usr/local

#make

Expected result:
----------------
Successful compilation with PHP 5.2.6.

Actual result:
--------------
> configure output

configure: error: GD build test failed. Please check the config.log for
details.

> related config log information

...
configure:43284: gcc -o conftest -g -O2   -L/usr/local/lib
-L/usr/kerberos/lib conftest.c    -lfreetype -lpng -lz -ljpeg -lssl
-lcrypto -ldb-4.0 -lgdbm -lcurl -lbz2 -lz -lssl -lcrypto -lresolv -lm
-ldl -lnsl  -lxml2 -lz -lm -lcurl -lxml2 -lz -lm 1>&5

(and now, the problem at the GD section of the configure script)
configure: failed program was:
#line 43273 "configure"
#include "confdefs.h"

    char foobar () {}
    char foobar();
    int main() {
      foobar();
      return 0;
    }


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45177&edit=1

Reply via email to