www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: Cross-compiling

Re: Cross-compiling

From: Simon Josefsson <simon_at_josefsson.org>
Date: Mon, 01 Feb 2010 14:49:26 +0100

Daniel Stenberg <daniel_at_haxx.se> writes:

> On Mon, 1 Feb 2010, Simon Josefsson wrote:
>> There are some build problems right now though, try 'make distcheck'.
> Really? It just worked fine when I tried it here. What goes wrong in your end?

Interesting. It fail since the example/libssh2_config.h stuff was
added. Problem appears to be a srcdir!=objdir issue. From a clean git

make distcheck
make[3]: Entering directory `/home/jas/src/libssh2/libssh2-1.2.2_DEV/_build/example'
gcc -DHAVE_CONFIG_H -I../../include -g -O2 -MT direct_tcpip.o -MD -MP -MF .deps/direct_tcpip.Tpo -c -o direct_tcpip.o ../../example/direct_tcpip.c
mv -f .deps/direct_tcpip.Tpo .deps/direct_tcpip.Po
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o direct_tcpip direct_tcpip.o ../src/libssh2.la
libtool: link: gcc -g -O2 -o .libs/direct_tcpip direct_tcpip.o ../src/.libs/libssh2.so -Wl,-rpath -Wl,/home/jas/src/libssh2/libssh2-1.2.2_DEV/_inst/lib
gcc -DHAVE_CONFIG_H -I../../include -g -O2 -MT ssh2.o -MD -MP -MF .deps/ssh2.Tpo -c -o ssh2.o ../../example/ssh2.c
../../example/ssh2.c:12:28: error: libssh2_config.h: No such file or directory
../../example/ssh2.c: In function ‘main’:
../../example/ssh2.c:72: error: storage size of ‘sin’ isn’t known
../../example/ssh2.c:99: error: ‘AF_INET’ undeclared (first use in this function)
../../example/ssh2.c:99: error: (Each undeclared identifier is reported only once
../../example/ssh2.c:99: error: for each function it appears in.)
../../example/ssh2.c:99: error: ‘SOCK_STREAM’ undeclared (first use in this function)
../../example/ssh2.c:105: error: invalid application of ‘sizeof’ to incomplete type ‘struct sockaddr_in’
make[3]: *** [ssh2.o] Error 1
make[3]: Leaving directory `/home/jas/src/libssh2/libssh2-1.2.2_DEV/_build/example'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jas/src/libssh2/libssh2-1.2.2_DEV/_build/example'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jas/src/libssh2/libssh2-1.2.2_DEV/_build'
make: *** [distcheck] Error 1
jas_at_mocca:~/src/libssh2 master$

libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-02-01

the libssh2 team