cURL / Mailing Lists / curl-library / Single Mail


Re: Curl with OpenSSL

From: Dan Fandrich <>
Date: Sat, 31 May 2014 13:55:36 +0200

On Sat, May 31, 2014 at 01:31:55PM +0530, Rohit Goel wrote:
> I tried the suggested approach.
> It now links to the renamed SSL libraries as well as the default SSL libraries.

Is that a direct link or is it linked through another library, such as libssh2
or libldap?

> This is how I ran config
> env PKG_CONFIG_PATH=<myopenssl>/lib/pkgconfig configure CFLAGS="-m64 -fPIC"
> --with-ssl --enable-static=no

That ought to work.

> Result of ldd
>  <- default version of crypto
>  <- my version of crypto
>   <- default version of ssl
> <- my version of ssl  

ldd also shows transitive links. objdump -x | grep NEEDED
will show the direct links.

> When I see config.log, it has
> configure:24169: checking for CRYPTO_lock in -lcrypto
> configure:24196: gcc -o conftest -m64 -fPIC -O2 -Wno-system-headers  -I
> <myopenssl>/include    -L<myopenssl>/lib   conftest.c -lcrypto  -lcdsssl
> -lcdscrypto -ldl   -lldap -lz -lrt >&5  
> Please suggest how to fix.

Ahah, configure has hard-coded -lcrypto for this particular check. That should
really be rewritten to use 'pkg-config --libs libcrypto' instead.

>>> Dan
List admin:
Received on 2014-05-31