Subject: compiling problem when installing libssh2-1.2.6

compiling problem when installing libssh2-1.2.6

From: CHEN Xiaolei A <Xiaolei.a.Chen_at_alcatel-sbell.com.cn>
Date: Thu, 24 Jun 2010 14:59:58 +0800

Hi everybody,
 
    I got a "ld" problem when installing libssh2-1.2.6.

Backgroud:
    (1) system version: Solaris 10 3/05 s10_74L2a SPARC
    (2) "Make" I used: /usr/ccs/bin/make
    (3) "gcc" I used: /usr/sfw/bin/gcc
    (4) "ld" I used: /usr/ccs/bin/ld
    (5) openssl already installed: openssl-0.9.8o (libssl.a and libcrypt.a aready exist)
    (6) my configuration to make libssh2: ./configuration --prefix=SOME_WHERE --with-openssl --with-libssl-prefix=MY_OPENSSL_DIRECTORY
    
symptom:

 When compiling "src" directory of libssh2-1.2.6, some error occured as something below:

 libtool: link: gcc -shared -Wl,-z -Wl,text -Wl,-M -Wl,.libs/libssh2.so.1.0.1.exp -Wl,-h -Wl,libssh2.so.1 -o .libs/libssh2.so.1.0.1 .libs/channel.o .libs/comp.o .libs/crypt.o .libs/hostkey.o .libs/kex.o .libs/mac.o .libs/misc.o .libs/packet.o .libs/publickey.o .libs/scp.o .libs/session.o .libs/sftp.o .libs/userauth.o .libs/transport.o .libs/version.o .libs/knownhost.o .libs/agent.o .libs/openssl.o .libs/libgcrypt.o .libs/pem.o .libs/keepalive.o .libs/global.o -L/home/xiaolech/work/openssl/lib -lssl -lcrypto -lz -lnsl -lsocket -lc
Text relocation remains referenced
    against symbol offset in file
<unknown> 0x0 /home/xiaolech/work/openssl/lib/libcrypto.a(err_def.o)
<unknown> 0x4 /home/xiaolech/work/openssl/lib/libcrypto.a(err_def.o)
<unknown> 0x8 /home/xiaolech/work/openssl/lib/libcrypto.a(err_def.o)
<unknown> 0xc /home/xiaolech/work/openssl/lib/libcrypto.a(err_def.o)
<unknown> 0x10 /home/xiaolech/work/openssl/lib/libcrypto.a(err_def.o)
<unknown> 0x14 /home/xiaolech/work/openssl/lib/libcrypto.a(err_def.o)
<unknown> 0x18 /home/xiaolech/work/openssl/lib/libcrypto.a(err_def.o)
......

 Many error occured when linking libcrypt.a, how could I solve this problem? Thanks a lot.

Regards,
-----------------------------------------------------------------------
Chen Xiaolei(³ÂСÀÚ)
oambase-wtk Team
Telephone: +86 10 8477 7636
Mail: Xiaolei.a.Chen_at_alcatel-sbell.com.cn
-----------------------------------------------------------------------

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