Subject: A compiling error

A compiling error

From: CHEN Xiaolei A <Xiaolei.a.Chen_at_alcatel-sbell.com.cn>
Date: Tue, 5 May 2009 14:42:52 +0800

Hi everyone,

    Nice to meet you. I downloaded libssh2-1.1 source code, and plan to
install it on Sun solaris 10. but an error occurred when running
command "make", the description like below:

  (1) I installed OpenSSL under my home directory: $HOME/Open_SSL

  (2) made configuration like this: configure --prefix=$HOME/Lib_SSH
--with-libssl-prefix=$HOME/Open_SSL

  an error will occur when running make:

 gcc -shared -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/openssl.o -L/home/xiaolech/Open_SSL/lib -lssl -lcrypto -lz -lnsl
-lsocket -lc
unknown> 0x90
/home/xiaolech/Open_SSL/lib/libcrypto.a(x_name.o)
<unknown> 0xa0
/home/xiaolech/Open_SSL/lib/libcrypto.a(x_name.o)
<unknown> 0xa8
/home/xiaolech/Open_SSL/lib/libcrypto.a(x_name.o)
<unknown> 0xac
/home/xiaolech/Open_SSL/lib/libcrypto.a(x_name.o)
<unknown> 0xb4
/home/xiaolech/Open_SSL/lib/libcrypto.a(x_name.o)
<unknown> 0xb8
/home/xiaolech/Open_SSL/lib/libcrypto.a(x_name.o)
x509_name_ff 0xcc
/home/xiaolech/Open_SSL/lib/libcrypto.a(x_name.o)
<unknown> 0xd4
/home/xiaolech/Open_SSL/lib/libcrypto.a(x_name.o)
...
ld: fatal: relocations remain against allocatable but non-writable
sections

I tried the gcc command manually, if i delete "-lcrypto", then no
error. But I don't know how to resolve this issue using "configure"
command.

Could you help me? Thanks a lot!

Regards,

Atlantis

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com

_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-05-05