curl-library
[RESOLVED]Re: Link problem: SunOS 5.10, libcurl 7.38.0, openssl 1.0.1i
Date: Thu, 2 Oct 2014 15:49:06 -0400
On Thu, Oct 2, 2014 at 2:28 PM, Michael Mueller <abaci.mjm_at_gmail.com> wrote:
> 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
>
ok...found a useful configure diff between Linux and SunOS/Solaris:
Linux:
--------
/#!/bin/sh
SSLBASE="$HOME/wrk/openssl_build/i"
SSL_INC_DIR="$SSLBASE/include"
SSL_LIB_DIR="$SSLBASE/lib"
echo $SSL_INC_DIR $SSL_LIB_DIR
#exit
PKG_CONFIG_PATH=/home/amqadmin/wrk/openssl_build/i/lib/pkgconfig \
./configure \
--with-ssl \
--prefix=$HOME/curl2
SunOS:
----------
This change is needed: http://curl.haxx.se/mail/lib-2014-09/0064.html
#!/bin/ksh
SSLBASE="$HOME/openssl/i"
SSL_INC_DIR="$SSLBASE/include"
SSL_LIB_DIR="$SSLBASE/lib"
echo $SSL_INC_DIR $SSL_LIB_DIR
#exit
CPPFLAGS="-I$SSL_INC_DIR" \
LDFLAGS="-L$SSL_LIB_DIR -rpath$SSL_LIB_DIR" \
./configure \
--with-ssl=$SSLBASE \
--prefix=$HOME/curl
Tested for portability on Linux and SunOS. Results from SunOS shown below:
1. Copied 1.0.1i openssl build dir to another location.
2. Set LD_LIBRARY_PATH to the new location of openssl libs:
$ echo $LD_LIBRARY_PATH
/home/yh2jd0/test/i/lib
3.Used ldd to verify openssl and curl bins were using the libs
specified by LD_LIBRARY_PATH:
$ ldd $HOME/openssl/i/bin/openssl
libssl.so.1.0.0 => /home/yh2jd0/test/i/lib/libssl.so.1.0.0
libcrypto.so.1.0.0 => /home/yh2jd0/test/i/lib/libcrypto.so.1.0.0
$ ldd $HOME/curl/bin/curl
libcurl.so.4 => /home/yh2jd0/curl/lib/libcurl.so.4
libssl.so.1.0.0 => /home/yh2jd0/test/i/lib/libssl.so.1.0.0
libcrypto.so.1.0.0 => /home/yh2jd0/test/i/lib/libcrypto.so.1.0.0
$ $HOME/curl/bin/curl --version
curl 7.38.0 (sparc-sun-solaris2.10) libcurl/7.38.0 OpenSSL/1.0.1i 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 TLS-SRP
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-10-02