curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: cURL build with different OpenSSL

From: Tony Aiuto <tony.aiuto_at_gmail.com>
Date: Tue, 3 Jan 2017 10:59:33 -0500

If you

On Tue, Jan 3, 2017 at 8:13 AM, Hiran CHAUDHURI <hiran.chaudhuri_at_amadeus.com
> wrote:

> Hello Dennis,
>
> unfortunately the CONFIDENTIALITY NOTICE is out of my control.
>
> The configure options I used are:
> ./configure --prefix=${OUTDIR}/ curl --with-zlib=${OUTDIR}/
> zlib-$ZLIB_VERSION/ --with-ssl=${OUTDIR}/ openssl-$SSL_VERSION
>
> After make, make install I get this executable:
> /ama/.../curl/bin/curl
>
> $ ldd /ama/.../curl/bin/curl
> ...
> libssl.so.6 => /lib64/libssl.so.6 (0x00000031c7600000)
> libcrypto.so.6 => /lib64/libcrypto.so.6 (0x00000031c5200000)
> ...
>
> The OpenSSL I want to bind to is in
> /ama/.../openssl/lib/libcrypto.a
> /ama/.../openssl/lib/libssl.a
>
> I just realize I only have ".a" and no ".so" files in that location

That is at least part of your problem. For dynamic link, you need the .so
files. If you want to link against a specific version of SSL, you probably
want static linking, so that you will not have to install the ssl library
on the target machines. Try adding --enable-static --disable-shared to
the configure invocation.

>
>

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ: https://curl.haxx.se/docs/faq.html
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-01-03