php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45177 Unable to compile with --with-gd switch
Submitted: 2008-06-04 16:43 UTC Modified: 2008-07-14 01:00 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:4 (100.0%)
Same OS:0 (0.0%)
From: ignos at sandboxed dot org Assigned:
Status: No Feedback Package: GD related
PHP Version: 5.2.6 OS: RedHat 9.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ignos at sandboxed dot org
New email:
PHP Version: OS:

 

 [2008-06-04 16:43 UTC] 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;
    }

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-05 09:00 UTC] ignos at sandboxed dot org
I checked also to compile it with the latest CVS snapshot, but it did'nt work.
 [2008-07-06 12:00 UTC] jani@php.net
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.

 [2008-07-14 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 18:01:34 2025 UTC