cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-2027161 ] Cannot find openssl when specified --with-ssl

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 13 Aug 2008 02:20:27 GMT

Bugs item #2027161, was opened at 2008-07-24 20:36
Message generated for change (Comment added) made by sf-robot
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: documentation
Group: wrong behaviour
>Status: Closed
Resolution: Fixed
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: SourceForge Robot (sf-robot)
Date: 2008-08-13 02:20

Message:
Logged In: YES
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

----------------------------------------------------------------------

Comment By: Dan Fandrich (dfandrich)
Date: 2008-07-29 21:02

Message:
Logged In: YES
user_id=236775
Originator: NO

I've now documented the PKG_CONFIG_PATH approach to configuring OpenSSL in
the INSTALL file.

----------------------------------------------------------------------

Comment By: Normand Savard (norsa)
Date: 2008-07-29 19:55

Message:
Logged In: YES
user_id=2059797
Originator: YES

Based on the last comment I removed the path linked with "--with-ssl" and
the configure script executed to the end. Thanks.

----------------------------------------------------------------------

Comment By: Dan Fandrich (dfandrich)
Date: 2008-07-28 20:24

Message:
Logged In: YES
user_id=236775
Originator: NO

Try setting PKG_CONFIG_PATH correctly but configuring with "--with-ssl"
(without giving a path). The configure script ignores pkg-config if given a
path to an OpenSSL directory.

----------------------------------------------------------------------

Comment By: Normand Savard (norsa)
Date: 2008-07-28 14: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 14: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 20: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-08-13

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET