cURL / Mailing Lists / curl-library / Single Mail

curl-library

Link problem: SunOS 5.10, libcurl 7.38.0, openssl 1.0.1i

From: Michael Mueller <abaci.mjm_at_gmail.com>
Date: Thu, 2 Oct 2014 14:28:54 -0400

Summary of problem : libcurl config.log shows openssl 1.0.1i is used;
binaries produced by make and make install are using much older
openssl libraries

any help appreciated...thanks...Mike

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

from libcurl config.log (desired rev of openssl used):

configure:21910: Added /home/xxx/openssl/i/lib to LD_LIBRARY_PATH
configure:21920: checking for OpenSSL headers version
configure:21947: gcc -E -isystem /home/xxx/openssl/i/include
-I/home/xxx/openssl/i/include -I/home/xxx/openssl/i/include/openssl
conftest.c
configure:21947: $? = 0
configure:22006: result: 1.0.1 - 0x1000109fL
configure:22015: checking for OpenSSL library version

final product of make and make install (using 10 year old openssl)

$ ../bin/curl --version
curl 7.38.0 (sparc-sun-solaris2.10) libcurl/7.38.0 OpenSSL/0.9.7d zlib/1.2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps
pop3 pop3s rtsp smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz

$ ldd ../bin/curl
        libcurl.so.4 => /home/xxx/curl/lib/libcurl.so.4
        libssl.so.0.9.7 => /usr/sfw/lib/libssl.so.0.9.7
        libcrypto.so.0.9.7 => /usr/sfw/lib/libcrypto.so.0.9.7

(why libssl.so.0.9.7 and not libssl.so ?)

supporting info:
================
1. LD_LIBRARY_PATH is set to desired openssl libraries:

$ echo $LD_LIBRARY_PATH
/home/xxx/openssl/i/lib

$ ls -l $LD_LIBRARY_PATH
total 10816
drwxr-xr-x 2 xxx yy-dev 1024 Oct 2 09:51 engines
-rw-r--r-- 1 xxx yy-dev 2799612 Oct 2 09:51 libcrypto.a
lrwxrwxrwx 1 xxx yy-dev 18 Oct 2 09:51 libcrypto.so ->
libcrypto.so.1.0.0
-r-xr-xr-x 1 xxx yy-dev 1850088 Oct 2 09:51 libcrypto.so.1.0.0
-rw-r--r-- 1 xxx yy-dev 500780 Oct 2 09:51 libssl.a
lrwxrwxrwx 1 xxx yy-dev 15 Oct 2 09:51 libssl.so -> libssl.so.1.0.0
-r-xr-xr-x 1 xxx yy-dev 384776 Oct 2 09:51 libssl.so.1.0.0
drwxr-xr-x 2 xxx yy-dev 96 Oct 1 09:13 pkgconfig

2. system info:

$ uname -a
SunOS samtcasu3f4 5.10 Generic_150400-14 sun4u sparc SUNW,Sun-Fire-V245

3. libcurl configure command line (fyi...pkgconfig method was even
less successful):

#!/bin/ksh

SSLBASE="$HOME/openssl/i"
SSL_INC_DIR="$SSLBASE/include"
SSL_LIB_DIR="$SSLBASE/lib"
MY_PKGCONFIG="$SSL_LIB_DIR/pkgconfig"

echo $SSL_INC_DIR $SSL_LIB_DIR $MY_PKGCONFIG
#exit
#LDFLAGS="-L$SSL_LIB_DIR -R$SSL_LIB_DIR" \

CPPFLAGS="-I$SSL_INC_DIR" \
LDFLAGS="-L$SSL_LIB_DIR" \
./configure \
--with-ssl=$SSLBASE \
--prefix=$HOME/curl
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-10-02