Subject: Re: Compile Problem

Re: Compile Problem

From: Lyndon Hill <emptystate_at_yahoo.co.uk>
Date: Sat, 17 Apr 2010 18:36:37 +0000 (GMT)

--- On Fri, 16/4/10, Daniel Stenberg <daniel_at_haxx.se> wrote:
> But if you still want Peter's patch, it is in trac for
> issue #170:
> http://libssh2.stuge.se/attachment/ticket/170/0001-_libssh2_wait_socket-select-on-separate-fd_sets-for-.patch

Thanks, I wanted to use as-close-to 1.2.5 as possible. This patched version now compiles.

I should have noted that my cross compiler is gcc version 2.95.3 20010315 (release).

I can build libssh but the build halts on making the examples because it cannot link to libz: for some reason configure does not pass through the library search paths for the linker:

/bin/sh ../libtool --tag=CC --mode=link arm-quantumstep-linux-gnu-gcc -g -O2 -o direct_tcpip direct_tcpip.o ../src/libssh2.la -ldl
libtool: link: arm-quantumstep-linux-gnu-gcc -g -O2 -o .libs/direct_tcpip direct_tcpip.o ../src/.libs/libssh2.so -ldl -Wl,-rpath -Wl,/usr/local/lib
/Developer/Xtoolchain/i386-apple-darwin/gcc-2.95.3-glibc-2.2.2/arm-quantumstep-linux-gnu/arm-quantumstep-linux-gnu/bin/ld: warning: libz.so.1, needed by ../src/.libs/libssh2.so, not found (try using -rpath or -rpath-link)

I'm sorry but I don't know anything about configure scripts or debugging these kind of automatically generated makefiles. It would be nice to be able to run the tests.

      

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