Bug #61102 [Com]: GD build test failed. Please check the config.log for details

From: Date: Thu, 05 Jul 2012 19:21:45 +0000
Subject: Bug #61102 [Com]: GD build test failed. Please check the config.log for details
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-171754@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61102&edit=1

 ID:                 61102
 Comment by:         damon dot conway at alchemysystems dot com
 Reported by:        leonardo dot burchi at gmail dot com
 Summary:            GD build test failed. Please check the config.log
                     for details
 Status:             Open
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Centos 6.2
 PHP Version:        5.3.10
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2012-02-16 10:18:35] 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;
    }


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=61102&edit=1


Thread (4 messages)

« previous php.bugs (#171754) next »