PHP 4.0 Bug #9642: Failure at configure stage when linking with curl that has ssl support
| From: | paulm at opentec dot com dot au | Date: | Thu, 08 Mar 2001 23:40:52 +0000 |
| Subject: | PHP 4.0 Bug #9642: Failure at configure stage when linking with curl that has ssl support | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-48326@lists.php.net to get a copy of this message | ||
From: paulm@opentec.com.au
Operating system: Solaris
PHP version: 4.0.4pl1
PHP Bug Type: Compile Problem
Bug description: Failure at configure stage when linking with curl that has ssl support
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?
--
Edit Bug report at: http://bugs.php.net/?id=9642&edit=1