php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61102 GD build test failed. Please check the config.log for details
Submitted: 2012-02-16 10:18 UTC Modified: 2014-03-05 08:45 UTC
Votes:6
Avg. Score:4.3 ± 1.5
Reproduced:4 of 5 (80.0%)
Same Version:1 (25.0%)
Same OS:4 (100.0%)
From: leonardo dot burchi at gmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.3.10 OS: Centos 6.2
Private report: No CVE-ID: None
 [2012-02-16 10:18 UTC] leonardo dot burchi at gmail dot com
Description:
------------
Launching configure script for PHP 5.3.10 on Centos 6.2 64 bit with configure commando you can see in test script, I get the error GD build test failed. Please check the config.log for details.



Test script:
---------------
./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql --with-mysqli=/usr/bin/mysql_config --enable-mbstring --with-openssl --with-zlib --with-gd --with-jpeg-dir=/root/jpeg-8d --with-gettext --with-mcrypt --with-curl --with-libdir=lib64 --with-freetype-dir=/usr/local --with-pdo-mysql

Expected result:
----------------
I expect a successfull build :-)

Actual result:
--------------
I get the error "configure: error: GD build test failed. Please check the config.log for details.".
The last lines I can see in config.log are:

configure:37551: gcc -o conftest -g -O2 -fvisibility=hidden   -Wl,-rpath,/usr/li                                                       b6464 -L/usr/lib6464 -Wl,-rpath,/usr/local/lib64 -L/usr/local/lib64 -lz conftest                                                       .c -lpng  -ljpeg -lcurl -lz -lrt -lm -ldl -lnsl  -lxml2 -lz -lm -lssl -lcrypto -                                                       ldl -lz -lcurl -lxml2 -lz -lm 1>&5
configure:38325: checking for FT_New_Face in -lfreetype
configure:38344: gcc -o conftest -g -O2 -fvisibility=hidden   -Wl,-rpath,/usr/li                                                       b6464 -L/usr/lib6464 -Wl,-rpath,/usr/local/lib64 -L/usr/local/lib64 conftest.c -                                                       lfreetype  -lpng -lz -ljpeg -lcurl -lz -lrt -lm -ldl -lnsl  -lxml2 -lz -lm -lssl                                                        -lcrypto -ldl -lz -lcurl -lxml2 -lz -lm 1>&5
configure:44777: gcc -o conftest -g -O2 -fvisibility=hidden   -Wl,-rpath,/usr/li                                                       b6464 -L/usr/lib6464 -Wl,-rpath,/usr/local/lib64 -L/usr/local/lib64 conftest.c                                                           -lfreetype -lpng -lz -ljpeg -lcurl -lz -lrt -lm -ldl -lnsl  -lxml2 -lz -lm -ls                                                       sl -lcrypto -ldl -lz -lcurl -lxml2 -lz -lm 1>&5
configure: failed program was:
#line 44766 "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
 [2012-07-05 19:21 UTC] damon dot conway at alchemysystems dot com
For those of you having trouble with this, I was able to work around it by doing an export LDFLAGS=-L/usr/lib64/mysql in the script I use to configure php.  Try setting this env variable for what you need until the PHP devs are able to fix the configure process.
 [2014-03-05 08:16 UTC] silent dot daemon81 at gmail dot com
For me the issue was related to the server not having enough resources. After rectifying the issue, the configure script ran with no issue:

PHP 5.3.10 on Centos 6.2 64 bit
 [2014-03-05 08:45 UTC] pajoye@php.net
-Status: Open +Status: Not a bug
 [2014-03-05 08:45 UTC] pajoye@php.net
.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 16:01:28 2024 UTC