Subject: Explicit zlib path not used by configure for building tests

Explicit zlib path not used by configure for building tests

From: Lyndon Hill <emptystate_at_yahoo.co.uk>
Date: Sun, 10 Nov 2013 22:25:42 +0000 (GMT)

Hi,

I am cross compiling libssh2 for use on Zaurus using the ARM Quantumstep toolchain.

First I built zlib for ARM then I configure libssh2:

./configure --host arm-quantumstep-linux-gnu --with-libz-prefix=/Users/username/Zaurus/BuildSystem --with-libssl-prefix=/Users/username/Zaurus/openssl-1.0.1e

In my BuildSystem dir you can find subdirectories for include and lib containing zlib headers and libz.so.

However make fails when building the tests:

Making all in tests
/bin/sh ../libtool --tag=CC   --mode=link arm-quantumstep-linux-gnu-gcc  -g -O2   -o ssh2 ssh2.o ../src/libssh2.la -ldl
libtool: link: arm-quantumstep-linux-gnu-gcc -g -O2 -o .libs/ssh2 ssh2.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)
../src/.libs/libssh2.so: undefined reference to `deflate'
../src/.libs/libssh2.so: undefined reference to `inflate'
../src/.libs/libssh2.so: undefined reference to `inflateInit_'
../src/.libs/libssh2.so: undefined reference to `deflateInit_'
../src/.libs/libssh2.so: undefined reference to `inflateEnd'
../src/.libs/libssh2.so: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
make[1]: *** [ssh2] Error 1
make: *** [all-recursive] Error 1

Thanks

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2013-11-10