On Fri, Apr 29, 2011 at 04:33:47AM +0530, Sachin Garg wrote:
> I am trying to build libssh2 for use in iphone application, following the
> guidlines on this page:
[...]
> 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?
This looks like problem with libtool. Try running ./buildconf before doing the
configure (or at least "libtoolize --copy --automake --force") to use the
libtool available on the host system, which has probably been customized for
OS X and is at the very least a different version from what libssh has been
packaged with.
>>> Dan
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-04-29