php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33448 Configure fails with curl
Submitted: 2005-06-23 11:26 UTC Modified: 2005-06-23 13:03 UTC
From: nohn@php.net Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.1.0b2 OS: CYGWIN_NT-5.1
Private report: No CVE-ID: None
 [2005-06-23 11:26 UTC] nohn@php.net
Description:
------------
Configuring PHP with curl does not work

Reproduce code:
---------------
$ ./configure --prefix=/opt/php --sysconfdir=/etc/opt/php --localstatedir=/var/opt/php --enable-cli --enable-fastcgi --enable-discard-path --enable-force-cgi-redirect --enable-mbstring --with-gd --with-zlib --with-curl --with-iconv --disable-ipv


Expected result:
----------------
Configure finishes successfully.

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.11.1
checking for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for more inf
ormation.

config.log says:
---------------------------------------------------------
configure:24281: checking for CURL support
configure:24327: checking if we should use CURL for url streams
configure:24354: checking for CURL in default path
configure:24372: checking for cURL 7.10.5 or greater
configure:24704: checking for curl_easy_perform in -lcurl
configure:24723: gcc -o conftest -g -O2   -lcurl -lssl -lcrypto -lgdi32 -lwinmm 
-lz conftest.c -lcurl  -lcurl -lz -lm  -lxml2 -lz -liconv -lm -lcurl -lssl -lcry
pto -lgdi32 -lwinmm -lz 1>&5
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
 -lssl
collect2: ld returned 1 exit status
configure: failed program was:
#line 24712 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char curl_easy_perform();

int main() {
curl_easy_perform()
; return 0; }
---------------------------------------------------------

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-23 11:30 UTC] sniper@php.net
Set your build environment correctly and it will work.
I don't know what it is with Cygwin but in unix it's usually set with LIBPATH (linux has also /etc/ld.so.conf file where the paths are stored)

 [2005-06-23 11:49 UTC] nohn@php.net
Installing then openssl-devel package fixed that problem. Nevertheless, the error message is so misleading that even you misunderstood it.
 [2005-06-23 13:03 UTC] sniper@php.net
The message is fine. There is no such magic to know whether it's your libpath that is wrong or if the library simply doesn't exist. (checking if the file to exists is not a solution)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 07:01:33 2025 UTC