php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48172 configure: error: GD build test failed.
Submitted: 2009-05-06 19:11 UTC Modified: 2009-05-14 01:00 UTC
Votes:6
Avg. Score:4.2 ± 0.9
Reproduced:4 of 5 (80.0%)
Same Version:1 (25.0%)
Same OS:2 (50.0%)
From: frew dot robert at gmail dot com Assigned:
Status: No Feedback Package: GD related
PHP Version: 5.3.0RC1 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-05-06 19:11 UTC] frew dot robert at gmail dot com
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;
    }

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-06 20:03 UTC] jani@php.net
What was the full configure line you used?
 [2009-05-06 20:33 UTC] frew dot robert at gmail dot com
After process of elimination...  here is what I have found:

Using this configure:

./configure --with-libdir=lib64 --disable-rpath --with-pear --with-curl=/usr/local/lib --with-gd

Gives me the GD build test failed error.

If I take out --disable-rpath.  It compiles fine.
 [2009-05-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".
 [2023-02-03 16:25 UTC] alexwriter2003 at gmail dot com
https://github.com/
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 14:01:32 2024 UTC