|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-23 11:30 UTC] sniper@php.net
[2005-06-23 11:49 UTC] nohn@php.net
[2005-06-23 13:03 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 24 05:00:01 2025 UTC |
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; } ---------------------------------------------------------