php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45212 compiling from source returns an error when using --with-curl parameter
Submitted: 2008-06-09 12:56 UTC Modified: 2008-06-09 18:49 UTC
From: theprisonerofzenda at gmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2.6 OS: RedHat Enterprise Linux 5 x86_64
Private report: No CVE-ID: None
 [2008-06-09 12:56 UTC] theprisonerofzenda at gmail dot com
Description:
------------
PHP-5.2.6 compilation using the --with-curl parameter end with...

##
checking for cURL support... yes
checking if we should use cURL for url streams... no
checking for cURL in default path... found in /usr
checking for cURL 7.10.5 or greater... libcurl 7.15.5
checking for SSL support in libcurl... yes
checking how to run the C preprocessor... gcc -E
checking for openssl support in libcurl... no
checking for gnutls support in libcurl... no
checking for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for more information.
##

However without using the --with-curl everything compiles fine.

Reproduce code:
---------------
1. got php-5.2.6.tar.bz2
2. used this configuration parameters

CFLAGS='-O3' \
'./configure' \
'--disable-debug' \
'--with-libdir=/lib64' \
'--prefix=/usr/local' \
'--enable-bcmath' \
'--enable-calendar' \
'--with-gd' \
'--with-jpeg-dir=/usr/local' \
'--with-png-dir=/usr' \
'--with-gettext' \
'--with-mysqli' \
'--with-mysql=/usr' \
'--with-pear' \
'--with-mcrypt' \
'--enable-sockets' \
'--with-ttf' \
'--with-freetype-dir=/usr' \
'--enable-gd-native-ttf' \
'--with-zlib' \
'--disable-ipv6' \
'--disable-cli' \
'--enable-magic-quotes' \
'--enable-discard-path' \
'--enable-force-cgi-redirect' \
'--enable-fastcgi' \
'--with-openssl' \
'--with-curl' \
"$@"


3. compilation fails.


Expected result:
----------------
PHP compiles with curl support.

Actual result:
--------------
checking for cURL support... yes
checking if we should use cURL for url streams... no
checking for cURL in default path... found in /usr
checking for cURL 7.10.5 or greater... libcurl 7.15.5
checking for SSL support in libcurl... yes
checking how to run the C preprocessor... gcc -E
checking for openssl support in libcurl... no
checking for gnutls support in libcurl... no
checking for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for more information.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-09 16:30 UTC] jani@php.net
I would guess it's caused by this wrong line:
'--with-libdir=/lib64' \

But if you had bothered doing what configure tells you to, you would propably have found out yourself. No bug here.
 [2008-06-09 16:41 UTC] theprisonerofzenda at gmail dot com
I do the /lib64 to avoid some previous compilation errors on x86_64 machines on other machines so supposing that you are right, I did the configuration without this parameter and I got the same output.

Also here's a link to the paste of the config.log file http://pastebin.com/m45f78efd

One thing to mention, I did what the error message told me and opened the config.log file and I think it's something related with libcurl and openssl support but I got the rpms installed on my systems and fetched them to find that libcurl is compiled with openssl support, May be I am wrong in that but the config.log output would clear things out to you.
 [2008-06-09 18:49 UTC] theprisonerofzenda at gmail dot com
Now happens to be that the system came with wrong mix of package installations as it was having many *-devel.i386 and *-libs.i386 although it is an x86_64, I fixed this mixture specially e2fsprogs-libs and libidn-devel and recompiled to find everything went smooth.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 01:01:30 2024 UTC