From: ignos at sandboxed dot org Operating system: RedHat 9.0 PHP version: 5.2.6 PHP Bug Type: Compile Failure Bug description: Unable to compile with --with-gd switch, possible reopen of Bug#41555
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 bug report at http://bugs.php.net/?id=45177&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45177&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45177&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45177&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45177&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45177&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45177&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45177&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45177&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45177&r=support Expected behavior: http://bugs.php.net/fix.php?id=45177&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45177&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45177&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45177&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45177&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45177&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45177&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45177&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45177&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45177&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45177&r=mysqlcfg