cURL / Mailing Lists / curl-users / Single Mail


Re: Trouble finding SSL_connect

From: Daniel Stenberg <>
Date: Mon, 23 Feb 2009 22:33:05 +0100 (CET)

On Mon, 23 Feb 2009, Charlie Sharpsteen wrote:

> checking for SSL_connect in -lssl... no
> At which point the configure script bails. config.log shows that the command
> that was run was:
> configure:23723: checking for SSL_connect in -lssl
> 2085 configure:23755: gcc -o conftest -isystem /home/cls59/include -g0 -O2
> -Wno-system-headers -isystem /home/cls59/include -L/home/cls59/lib
> conftest.c -lssl -lcrypto -lrt >&5
> cls59/lib contains libssl.a - everything should be good.
> However, confdefs.h has the function defined as character:
> char SSL_connect ();
> While cls59/include/openssl/ssl.h has it defined as integer:
> int SSL_connect(SSL *ssl);
> Could this be the problem? Any help on how to resolve this would be greatly
> appreaciated!

No, that's just how configure creates a prototype for the function. It should
still manage to link properly, which is what it does when it tries to figure
out if it can use the lib in the directory you've specified.

If I remember correctly, the static libssl lib might require other libs on the
command line that you need to provide (-ldl seems to pop up in my head but I'm
not sure). If you try to link the same program configure tries with the same
options, I'm sure ld will tell you why it fails and then you can rectify the

List admin:
Received on 2009-02-23