#45212 [Bgs]: compiling from source returns an error when using --with-curl parameter
| From: | theprisonerofzenda at gmail dot com | Date: | Mon, 09 Jun 2008 16:41:29 +0000 |
| Subject: | #45212 [Bgs]: compiling from source returns an error when using --with-curl parameter | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-125611@lists.php.net to get a copy of this message | ||
ID: 45212
User updated by: theprisonerofzenda at gmail dot com
Reported By: theprisonerofzenda at gmail dot com
Status: Bogus
Bug Type: Compile Failure
Operating System: RedHat Enterprise Linux 5 x86_64
PHP Version: 5.2.6
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2008-06-09 16:30:50] 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 12:56:50] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45212&edit=1