Subject: Re: Compile Problem

Re: Compile Problem

From: Daniel Stenberg <>
Date: Sat, 17 Apr 2010 23:37:28 +0200 (CEST)

On Sat, 17 Apr 2010, Lyndon Hill wrote:

> I can build libssh

Let me just emphasize that this library is in fact named libssh2, as there is
a completely separate library and project named 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/ -ldl libtool: link:
> arm-quantumstep-linux-gnu-gcc -g -O2 -o .libs/direct_tcpip direct_tcpip.o
> ../src/.libs/ -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:, needed by ../src/.libs/, 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.

So configure found libz but when it links it no longer finds it? Can you show
us your configure command line?

BTW, since you're cross-compiling you won't be able to run the tests anyway
since they assume that you can run them on the machine you build on.

Received on 2010-04-17