Subject: RE: failure to statically link libssh2-1.2.5 to OpenSSL on RedHat

RE: failure to statically link libssh2-1.2.5 to OpenSSL on RedHat

From: Alona Rossen <arossen_at_opentext.com>
Date: Mon, 21 Jun 2010 16:49:16 -0400

Did you mean LIBS=-ldl ?

-----Original Message-----
From: libssh2-devel-bounces_at_cool.haxx.se
[mailto:libssh2-devel-bounces_at_cool.haxx.se] On Behalf Of Dan Fandrich
Sent: Monday, June 21, 2010 3:31 PM
To: libssh2-devel_at_cool.haxx.se
Subject: Re: failure to statically link libssh2-1.2.5 to OpenSSL on
RedHat

On Mon, Jun 21, 2010 at 01:41:40PM -0400, Alona Rossen wrote:
> Hello,
>
> I receive the following error message on RedHat ES 5.2:
>
> ../src/.libs/libssh2.so: undefined reference to `dlsym'
> ../src/.libs/libssh2.so: undefined reference to `dlerror'
> ../src/.libs/libssh2.so: undefined reference to `dlopen'
> ../src/.libs/libssh2.so: undefined reference to `dlclose'
>
> collect2: ld returned 1 exit status
>
>
> This is my ?configure? line:
>
> $ ./configure --with-openssl --with-libssl-prefix=/usr/local/ssl
CFLAGS=-m64
> LDFLAGS=-m64 --prefix=/home/sambuild/ssh2_64 --enable-static=no
>
>
> Is there anything missing?

Try adding a LIBS=-dl to the configure line.

>>> Dan
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-06-21