php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43860 compile fails with curl version 7.16.4 and gd
Submitted: 2008-01-15 20:39 UTC Modified: 2008-06-28 11:35 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:2 (50.0%)
From: pierre dot grandmaison at gmail dot com Assigned: pajoye (profile)
Status: Not a bug Package: Compile Failure
PHP Version: 5.2.5 OS: Centos 5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pierre dot grandmaison at gmail dot com
New email:
PHP Version: OS:

 

 [2008-01-15 20:39 UTC] pierre dot grandmaison at gmail dot com
Description:
------------
Hi,

On a clean system, I am installing from source:

openssl:

cd /usr/local/src
wget [mirror]/openssl-0.9.8g.tar.gz
tar xfz openssl-0.9.8g.tar.gz
cd openssl-0.9.8g
./config --openssldir=/usr/local/ssl
make; make install

curl version 7.16.4:

cd /usr/local/src
wget [mirror]/curl-7.16.4.tar.gz
tar xfz curl-7.16.4.tar.gz
cd curl-7.16.4
./configure --disable-ipv6 --with-ssl=/usr/local/ssl; make; make install


Then PHP:

cd /usr/local/src
wget [mirror]/php-5.2.5.tar.gz
tar xfz php-5.2.5.tar.gz
cd php-5.2.5

Then, The following WORKS:
rm config.cache ; ./configure --disable-all --disable-cgi --with-gd

The following also WORKS:
rm config.cache ; ./configure --disable-all --disable-cgi --with-curl=/usr/local/lib


Howether, the following does NOT work:
rm config.cache ; ./configure --disable-all --disable-cgi --with-gd --with-curl=/usr/local/lib

The error message is:

checking for GD support... yes
checking for the location of libjpeg... no
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
If configure fails try --with-jpeg-dir=<DIR>
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=<DIR>
If configure fails try --with-freetype-dir=<DIR>
configure: error: GD build test failed. Please check the config.log for details.

Expected result:
----------------
PHP should compile


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-15 20:42 UTC] pierre dot grandmaison at gmail dot com
Even though there are line breaks in the configure commands show in the php bug page, in reality I did type it correctly in the system.
 [2008-01-15 20:57 UTC] pierre dot grandmaison at gmail dot com
I have just tested the following versions of PHP using the same method. Here are my results:

With:
rm config.cache ; ./configure --disable-all --disable-cgi --with-gd --with-curl=/usr/local/lib

FAILED: PHP latest snapshot (
FAILED: PHP 5.2.4
FAILED: PHP 5.2.3
SUCCESS: PHP 5.2.2

So I think something has changed from PHP version 5.2.2 to PHP version 5.2.3 that makes compiling PHP with curl versions 7.16.4 (and I'm guessing lower versions as well not work)

Do you need anything else to help in resolving this?

Thanks,
 [2008-01-15 21:22 UTC] pajoye@php.net
Specify the options for the dependencies (xpm, png and jpeg libraries for ex.)

The compile tests fail for a reason, this reason is in your config.log, please paste the relevant part here.
 [2008-01-23 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".
 [2008-03-27 13:33 UTC] nils dot clark-bernhard at human-aspects dot de
This error also occurs on gentoo linux, php version 5.2.6_rc1-r1 and curl version 7.17.1 with exactly the same error message.

compiling php with gd and without curl is a workaround that actually works.

Finding the reason for php not compiling is hard, as far as the error thrown seems might be not related to the problem.
I think so, because I have my current curl version since december 2007 and already have compiled php three times this year.
 [2008-04-11 22:07 UTC] contact at youssefazari dot com
Same error here, here is the output (bottom) of the config.log  :

...

configure: failed program was:
#line 43268 "configure"
#include "confdefs.h"

    char foobar () {}
    char foobar();
    int main() {
      foobar();
      return 0;
    }

Got this Trying to compile with GD and CURL support.

PHP version : 5.2.5
OS : CentOs 5
 [2008-06-28 11:26 UTC] pekka at photography-on-the dot net
See http://bugs.php.net/bug.php?id=45212

Removing related 32-bit libraries and programs fixed this issue. On 64-bit RHEL 5.2 you can uninstall 32-bit packages with e.g.

yum remove curl.i386

and to install only 64-bit packages use e.g.

yum --exclude=*.i?86 install curl-devel
 [2008-06-28 11:35 UTC] pajoye@php.net
Not a php problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 21:01:29 2024 UTC