From: frew dot robert at gmail dot com
Operating system: Linux
PHP version: 5.3.0RC1
PHP Bug Type: Compile Failure
Bug description: configure: error: GD build test failed.
Description:
------------
Compile fails with GD enabled.
checking for GD support... yes
checking for the location of libjpeg... /usr
checking for the location of libpng... /usr
checking for the location of libXpm... /usr
checking for FreeType 2... /usr
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
checking for XpmFreeXpmImage in -lXpm... yes
checking for FT_New_Face in -lfreetype... yes
configure: error: GD build test failed. Please check the config.log for
details.
Expected result:
----------------
Error free compiling.
Actual result:
--------------
config.log
----------
configure:34852: checking for GD support
configure:34900: checking for the location of libjpeg
configure:34928: checking for the location of libpng
configure:34983: checking for the location of libXpm
configure:35009: checking for FreeType 2
configure:35035: checking for T1lib support
configure:35061: checking whether to enable truetype string function in
GD
configure:35087: checking whether to enable JIS-mapped Japanese font
support in GD
configure:35141: checking for fabsf
configure:35169: gcc -o conftest -g -O2 -fvisibility=hidden
-L/usr/kerberos/lib64 -L/usr/local/lib -L/usr/local/lib64 conftest.c -lcurl
-lz -lpcre -lm -ldl -lnsl -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto
-lcom_err -lssl -lcrypto -ldl -lz -lcurl -lidn -lssl -lcrypto -lrt -lssl
-lcrypto -ldl -lz -lz -lxml2 -lz -lm -lssl -lcrypto -ldl -lz 1>&5
configure:35153: warning: conflicting types for built-in function 'fabsf'
configure:35141: checking for floorf
configure:35169: gcc -o conftest -g -O2 -fvisibility=hidden
-L/usr/kerberos/lib64 -L/usr/local/lib -L/usr/local/lib64 conftest.c -lcurl
-lz -lpcre -lm -ldl -lnsl -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto
-lcom_err -lssl -lcrypto -ldl -lz -lcurl -lidn -lssl -lcrypto -lrt -lssl
-lcrypto -ldl -lz -lz -lxml2 -lz -lm -lssl -lcrypto -ldl -lz 1>&5
configure:35153: warning: conflicting types for built-in function
'floorf'
configure:35341: checking for jpeg_read_header in -ljpeg
configure:35360: gcc -o conftest -g -O2 -fvisibility=hidden
-L/usr/kerberos/lib64 -L/usr/local/lib -L/usr/local/lib64 conftest.c -ljpeg
-lcurl -lz -lpcre -lm -ldl -lnsl -lxml2 -lz -lm -lgssapi_krb5 -lkrb5
-lk5crypto -lcom_err -lssl -lcrypto -ldl -lz -lcurl -lidn -lssl -lcrypto
-lrt -lssl -lcrypto -ldl -lz -lz -lxml2 -lz -lm -lssl -lcrypto -ldl -lz
1>&5
configure:35642: checking for png_write_image in -lpng
configure:35661: gcc -o conftest -g -O2 -fvisibility=hidden
-L/usr/kerberos/lib64 -L/usr/local/lib -L/usr/local/lib64 -lz conftest.c
-lpng -ljpeg -lcurl -lz -lpcre -lm -ldl -lnsl -lxml2 -lz -lm
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl -lz -lcurl
-lidn -lssl -lcrypto -lrt -lssl -lcrypto -ldl -lz -lz -lxml2 -lz -lm -lssl
-lcrypto -ldl -lz 1>&5
configure:36041: checking for XpmFreeXpmImage in -lXpm
configure:36060: gcc -o conftest -g -O2 -fvisibility=hidden
-L/usr/kerberos/lib64 -L/usr/local/lib -L/usr/local/lib64 -lX11 conftest.c
-lXpm -lpng -lz -ljpeg -lcurl -lz -lpcre -lm -ldl -lnsl -lxml2 -lz -lm
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl -lz -lcurl
-lidn -lssl -lcrypto -lrt -lssl -lcrypto -ldl -lz -lz -lxml2 -lz -lm -lssl
-lcrypto -ldl -lz 1>&5
configure:36435: checking for FT_New_Face in -lfreetype
configure:36454: gcc -o conftest -g -O2 -fvisibility=hidden
-L/usr/kerberos/lib64 -L/usr/local/lib -L/usr/local/lib64 conftest.c
-lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lcurl -lz -lpcre -lm -ldl -lnsl
-lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto
-ldl -lz -lcurl -lidn -lssl -lcrypto -lrt -lssl -lcrypto -ldl -lz -lz
-lxml2 -lz -lm -lssl -lcrypto -ldl -lz 1>&5
configure:42874: gcc -o conftest -g -O2 -fvisibility=hidden
-L/usr/kerberos/lib64 -L/usr/local/lib -L/usr/local/lib64 conftest.c
-lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lcurl -lz -lpcre -lm -ldl -lnsl
-lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto
-ldl -lz -lcurl -lidn -lssl -lcrypto -lrt -lssl -lcrypto -ldl -lz -lz
-lxml2 -lz -lm -lssl -lcrypto -ldl -lz 1>&5
configure: failed program was:
#line 42863 "configure"
#include "confdefs.h"
char foobar () {}
char foobar();
int main() {
foobar();
return 0;
}
--
Edit bug report at http://bugs.php.net/?id=48172&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48172&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48172&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48172&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48172&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=48172&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48172&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=48172&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=48172&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=48172&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=48172&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=48172&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=48172&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=48172&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48172&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48172&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48172&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=48172&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=48172&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=48172&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=48172&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=48172&r=mysqlcfg