Hi,


I have build libssh2 on a SUN platform (uname -a gives "SunOS sun10i
5.10 Generic_118855-33 i86pc i386 i86pc"), using openssl for the
cryptographic operations. The following are the steps I have performed
to do a build:



1) Build openssl. The openssl config and make produces the libcrypto.so
and libssl.so libraries



2) Build libssh2:

a) Run configure CC=/usr/local/bin/gcc --disable-rpath CFLAGS="-m64"
LDFLAGS="-L/work/openssl-0.9.8e" LIBS="-lcrypto". Note, the only library
that I have specified through the LIBS flag is libcrypto.so

b) make



Once libssh2 is build, I ran ldd on libssh2.so to list the dependent
libraries:



LD_LIBRARY_PATH=/work/openssl-0.9.8e   ldd src/.libs/libssh2.so

        libssl.so.0.9.8 =>       /work/openssl-0.9.8e/libssl.so.0.9.8

        libcrypto.so.0.9.8 =>    /work/openssl-0.9.8e/libcrypto.so.0.9.8

        libdl.so.1 =>    /lib/64/libdl.so.1

        libz.so.1 =>     /usr/lib/64/libz.so.1

        libnsl.so.1 =>   /lib/64/libnsl.so.1

        libsocket.so.1 =>        /lib/64/libsocket.so.1

        libc.so.1 =>     /lib/64/libc.so.1

        libgcc_s.so.1 =>         /usr/sfw/lib/libgcc_s.so.1

        libmp.so.2 =>    /lib/64/libmp.so.2

        libmd5.so.1 =>   /lib/64/libmd5.so.1

        libscf.so.1 =>   /lib/64/libscf.so.1

        libdoor.so.1 =>  /lib/64/libdoor.so.1

        libuutil.so.1 =>         /lib/64/libuutil.so.1

        libm.so.2 =>     /lib/64/libm.so.2



The question is why libssh2.so is dependent on libssl.so of the openssl
library? Is there any configuration option for libssh2 that will make
libssh2 not dependent on libssl.so?



On other platforms (linux, hp and windows), libssh2 was not dependent on
libssl. Any help is appreciated.



Thank you

_____________________________________________________________________________

ATTENTION:

The information contained in this message (including any files transmitted 
with this message) may contain proprietary, trade secret or other 
confidential and/or legally privileged information. Any pricing 
information contained in this message or in any files transmitted with 
this message is always confidential and cannot be shared with any third 
parties without prior written approval from Syncsort. This message is 
intended to be read only by the individual or entity to whom it is 
addressed or by their designee. If the reader of this message is not the 
intended recipient, you are on notice that any use, disclosure, copying or 
distribution of this message, in any form, is strictly prohibited. If you 
have received this message in error, please immediately notify the sender 
and/or Syncsort and destroy all copies of this message in your possession, 
custody or control.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
libssh2-devel mailing list
libssh2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel

Reply via email to