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 17:00:51 -0400

Unfortunately, it does not:

gcc -shared .libs/file.o .libs/timeval.o .libs/base64.o .libs/hostip.o
.libs/progress.o .libs/formdata.o .libs/cookie.o .libs/http.o
.libs/sendf.o .libs/ftp.o .libs/url.o .libs/dict.o .libs/if2ip.o
.libs/speedcheck.o .libs/ldap.o .libs/ssluse.o .libs/version.o
.libs/getenv.o .libs/escape.o .libs/mprintf.o .libs/telnet.o
.libs/netrc.o .libs/getinfo.o .libs/transfer.o .libs/strequal.o
.libs/easy.o .libs/security.o .libs/krb4.o .libs/memdebug.o
.libs/http_chunks.o .libs/strtok.o .libs/connect.o .libs/llist.o
.libs/hash.o .libs/multi.o .libs/content_encoding.o .libs/share.o
.libs/http_digest.o .libs/md5.o .libs/http_negotiate.o .libs/http_ntlm.o
.libs/inet_pton.o .libs/strtoofft.o .libs/strerror.o .libs/hostares.o
.libs/hostasyn.o .libs/hostip4.o .libs/hostip6.o .libs/hostsyn.o
.libs/hostthre.o .libs/inet_ntop.o .libs/parsedate.o .libs/select.o
.libs/gtls.o .libs/sslgen.o .libs/tftp.o .libs/splay.o .libs/strdup.o
.libs/socks.o .libs/ssh.o -L/home/sambuild/ssl/lib -lidn -lssl -lcrypto
-ldl -lz -m64 -m64 -Wl,-soname -Wl,libcurl.so.4 -o
.libs/libcurl.so.4.0.0
/usr/bin/ld: /home/sambuild/ssl/lib/libcrypto.a(x86_64cpuid.o):
relocation R_X86_64_PC32 against `OPENSSL_cpuid_setup' can not be used
when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libcurl.la] Error 1

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

Alona Rossen wrote:
> Did you mean LIBS=-ldl ?

Right. Does that work?

It would be helpful if you could post the complete output from your
build. If there are any bugs in libssh2 then we would like to fix
them of course, and the full output from configure and make would be
helpful.

//Peter
_______________________________________________
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