php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9642 Failure at configure stage when linking with curl that has ssl support
Submitted: 2001-03-08 18:40 UTC Modified: 2001-03-10 19:55 UTC
From: paulm at opentec dot com dot au Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4pl1 OS: Solaris
Private report: No CVE-ID: None
 [2001-03-08 18:40 UTC] paulm at opentec dot com dot au
When configuring PHP with curl support, and curl has been compiled with ssl support the configure stage fails with unresolved symbol errors:
======
Undefined               first referenced
?symbol                     in file
SSL_library_init       /usr/local/lib/libcurl.so
======

The problem stems from the fact that the SSL libs aren't being included in the LIB list.

Hacking the configure file so that the line:
LIBS="-lcurl $LIBS"
now reads
LIBS="-lssl -lcrypto -lcurl $LIBS"
solved the problem for me.

Is there a way PHP can determine if libcurl has SSL support and add in those two libs if required?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-09 02:18 UTC] venaas@php.net
We have the same problem when linking with other
libraries with SSL. One way to get around it is
to add the configure argument --with-openssl.
 [2001-03-10 19:55 UTC] sniper@php.net
Yes, only way to address this is to use --with-openssl
in configure line. I changed the configure a bit to
exit with error text if --with-openssl is not and 
curl needs it. The check isn't bullet proof but should work
in most cases.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 06:01:30 2024 UTC