cURL / Mailing Lists / curl-library / Single Mail

curl-library

[ curl-Patches-1081707 ] configure problem for --with-ssl

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 08 Dec 2004 15:08:49 -0800

Patches item #1081707, was opened at 2004-12-08 23:08
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=300976&aid=1081707&group_id=976

Category: misc
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ton Voon (tonvoon)
Assigned to: Daniel Stenberg (bagder)
Summary: configure problem for --with-ssl

Initial Comment:
On SF's Solaris 9 server in the compile farm, ssl is installed in /
usr/local/ssl.

For curl 7.12.2, ./configure does not find the ssl libraries, as
expected:

[snipped]
checking OpenSSL options with pkg-config... no
checking for CRYPTO_lock in -lcrypto... no
checking for CRYPTO_add_lock in -lcrypto... no
[snipped]
  SSL support: no (--with-ssl)

Running ./configure --with-ssl=/usr/local (an incorrect path) does
not find it either, as expected:

[snipped]
checking for CRYPTO_lock in -lcrypto... no
checking for CRYPTO_add_lock in -lcrypto... no
configure: error: OpenSSL libs and/or directories were not found
where specified!

However, running with ./configure --with-ssl=/usr/local/ssl finds
the libraries, but fails with a later compile problem:

[snipped]
checking for CRYPTO_lock in -lcrypto... yes
checking for gdi32... no
checking for CRYPTO_add_lock in -lcrypto... yes
checking for SSL_connect in -lssl... yes
[snipped]
checking size of curl_off_t... configure: error: cannot compute
sizeof (curl_off_t), 77
See `config.log' for more details.

config.log shows:

configure:28758: checking size of curl_off_t
configure:29101: gcc -o conftest -g -O2 -I/usr/local/ssl/include/
openssl -I/usr
/local/ssl/include -L/usr/local/ssl/lib conftest.c -lssl -lcrypto -ldl
-lsocket
  -lnsl -lz >&5
configure:29104: $? = 0
configure:29106: ./conftest
ld.so.1: ./conftest: fatal: libssl.so.0.9.7: open failed: No such file
or direct
ory
./configure: line 1: 16570 Killed ./conftest$ac_exeext
configure:29109: $? = 137
configure: program exited with status 137

I think the patch is:

$ diff -u configure.ac.original configure.ac--- configure.ac.original
Wed Dec 8 15:01:03 2004
+++ configure.ac Wed Dec 8 15:04:43 2004
@@ -859,6 +859,9 @@
   if test X"$OPT_SSL" != Xoff &&
      test "$OPENSSL_ENABLED" != "1"; then
     AC_MSG_ERROR([OpenSSL libs and/or directories were not
found where specified!])
+ elif test "$OPENSSL_ENABLED" = "1"; then
+ LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$EXTRA_SSL"
+ export LD_LIBRARY_PATH
   fi
 
 fi

But I am not sure if this is the best way of fixing (does autoconf
handle LD_LIBRARY_PATH and LD_RUN_PATH variables?).

Ton

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=300976&aid=1081707&group_id=976
Received on 2004-12-09