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: Peter Stuge <peter_at_stuge.se>
Date: Tue, 22 Jun 2010 00:12:17 +0200

Alona Rossen wrote:
> gcc -shared .libs/file.o .libs/timeval.o .libs/base64.o .libs/hostip.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

So you're building libcurl using OpenSSL and posting questions on
the libssh2 mailing list?

That's not a good way to get help.

Please make sure to look for the proper contact next time. I hope
that you'll reach a solution through the OpenSSL bug.

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-06-22