I am trying to build libssh2 for use in iphone application, following the guidlines on this page:
http://sites.google.com/site/olipion/cross-compilation/libssh2 Building for iPhone works for old version 1.1 (for which that page was written) but build fails on latest 1.2.8. Seems to be a problem with build scripts, not the code. Here is what I get on command line: *First, the configure command is (as in link above),* ./configure --host=arm-apple-darwin9 --prefix=/pathToInstall/built --with-libgcrypt-prefix=/pathToInstall/built *Output at end is (it says libgcrypt:no, which seems wrong as libgcrypt is at the path specified, built using instructions in link above):* version: - Host type: arm-apple-darwin9 Install prefix: /pathToInstall/built Compiler: gcc Compiler flags: -DLIBSSH2_DARWIN Library types: Shared=yes, Static=yes Crypto library: openssl: yes (AES-CTR: no) libgcrypt: no Debug build: no Path to sshd: /usr/sbin/sshd (only for self-tests) libz compression: yes *Then make stops with this error,* Making all in src make all-am /bin/sh ../libtool --tag=CC --mode=link gcc -DLIBSSH2_DARWIN -o libssh2.la -rpath /pathToInstall/built/lib -version-info 1:1:0 -no-undefined -export-symbols-regex '^libssh2_.*' -lssl -lcrypto -lz channel.lo comp.lo crypt.lo hostkey.lo kex.lo mac.lo misc.lo packet.lo publickey.lo scp.lo session.lo sftp.lo userauth.lo transport.lo version.lo knownhost.lo agent.lo openssl.lo libgcrypt.lo pem.lo keepalive.lo global.lo libtool: link: link -dump -symbols .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/knownhost.o .libs/agent.o .libs/openssl.o .libs/libgcrypt.o .libs/pem.o .libs/keepalive.o .libs/global.o | | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libssh2.exp ../libtool: eval: line 947: syntax error near unexpected token `|' ../libtool: eval: line 947: `link -dump -symbols .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/knownhost.o .libs/agent.o .libs/openssl.o .libs/libgcrypt.o .libs/pem.o .libs/keepalive.o .libs/global.o | | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libssh2.exp' make[2]: *** [libssh2.la] Error 1 make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1 How to fix this problem? SG
_______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel