Bugs item #2027161, was opened at 2008-07-24 16:36
Message generated for change (Comment added) made by norsa
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2027161&group_id=976
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: compile or build problem
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Normand Savard (norsa)
Assigned to: Daniel Stenberg (bagder)
Summary: Cannot find openssl when specified --with-ssl
Initial Comment:
Curl 7.17 and 7.18 cannot find openssl if it installed under a user specified directory. I tested with Curl 7.18.2 and got the same issue.
This issue was found when building a fgs module (installer for linux). See http://bugzilla.maptools.org/show_bug.cgi?id=1863
I found a similar issue in the tracker and applied the suggested fix (2008-01-15 21:39 by dfandrich) but it didn't solve this issue:
http://sourceforge.net/tracker/index.php?func=detail&aid=1871649&group_id=976&atid=100976
----------------------------------------------------------------------
>Comment By: Normand Savard (norsa)
Date: 2008-07-28 10:53
Message:
Logged In: YES
user_id=2059797
Originator: YES
I confirm that when openssl is built as a shared module, Curl configure
script runs correctly
...
checking if argv can be written to... yes
checking if Kerberos4 support is requested... no
checking if SPNEGO support is requested... no
checking if GSSAPI support is requested... no
checking for gdi32... no
checking for CRYPTO_lock in -lcrypto... yes
checking for SSL_connect in -lssl... yes
checking openssl/x509.h usability... yes
checking openssl/x509.h presence... yes
checking for openssl/x509.h... yes
checking openssl/rsa.h usability... yes
...
configure: Configured to build curl/libcurl:
curl version: 7.18.2
Host setup: i686-pc-linux-gnu
Install prefix: /home/fgs/fgs-dev/built/curl
Compiler: gcc
SSL support: enabled (OpenSSL)
SSH support: no (--with-libssh2)
zlib support: enabled
krb4 support: no (--with-krb4*)
GSSAPI support: no (--with-gssapi)
SPNEGO support: no (--with-spnego)
c-ares support: no (--enable-ares)
ipv6 support: enabled
IDN support: no (--with-libidn)
Build libcurl: Shared=yes, Static=yes
Built-in manual: enabled
Verbose errors: enabled (--disable-verbose)
SSPI support: no (--enable-sspi)
ca cert bundle: no
ca cert path: no
LDAP support: no (--enable-ldap / --with-ldap-lib /
--with-lber-lib)
LDAPS support: no (--enable-ldaps)
----------------------------------------------------------------------
Comment By: Normand Savard (norsa)
Date: 2008-07-28 10:09
Message:
Logged In: YES
user_id=2059797
Originator: YES
I pasted here the output of the pkg-config command and the configure
script (part of):
fgs_at_debian:~/fgs-dev$ export
PKG_CONFIG_PATH=/home/fgs/fgs-dev/built/openssl/lib/pkgconfig/
fgs_at_debian:~/fgs-dev$ pkg-config --libs libssl
-L/home/fgs/fgs-dev/built/openssl/lib -lssl -lcrypto -ldl
fgs_at_debian:~/fgs-dev$
fgs_at_debian:~/fgs-dev/src/curl-7.18.2$ ./configure
--prefix=/home/fgs/fgs-dev/built/curl
--with-ssl=/home/fgs/fgs-dev/built/openssl --without-libidn
checking whether to enable maintainer-specific portions of Makefiles...
no
checking for sed... /bin/sed
checking for ar... ar
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
...
checking whether to use libgcc... no
checking for lber.h... no
checking for ldap.h... no
checking for ldapssl.h... no
checking for ldap_ssl.h... no
checking for LDAP libraries... cannot find LDAP libraries
configure: WARNING: Cannot find libraries for LDAP support: LDAP disabled
checking whether to enable ipv6... yes
checking non-blocking sockets style... O_NONBLOCK
checking if argv can be written to... yes
checking if Kerberos4 support is requested... no
checking if SPNEGO support is requested... no
checking if GSSAPI support is requested... no
checking for gdi32... no
checking for CRYPTO_lock in -lcrypto... yes
checking for SSL_connect in -lssl... no
checking for ssl with RSAglue/rsaref libs in use... checking for
SSL_connect in -lssl... (cached) no
no
configure: error: OpenSSL libs and/or directories were not found where
specified!
----------------------------------------------------------------------
Comment By: Dan Fandrich (dfandrich)
Date: 2008-07-24 16:50
Message:
Logged In: YES
user_id=236775
Originator: NO
It looks like only static OpenSSL libraries are available, which I don't
think curl supports (at least when configuring this way). Try configuring
again while setting PKG_CONFIG_PATH appropriately (probably
PKG_CONFIG_PATH=/home/fgs/fgs-dev/built/openssl/lib/pkgconfig). The output
of the command:
env PKG_CONFIG_PATH=/home/fgs/fgs-dev/built/openssl/lib/pkgconfig
pkg-config --libs libssl
should provide all the libraries needed to link with OpenSSL. If not, then
it's an OpenSSL bug.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2027161&group_id=976
Received on 2008-07-28