Nmap Development mailing list archives
Cross compiling for arm?
From: Ron Jobmann <ronjobmann () yahoo com>
Date: Mon, 1 Mar 2010 16:20:31 -0800 (PST)
Has anyone been successful at this? I'm able to get a ways into the compilation before encountering the following: make[2]: Entering directory `/home/dev1/nmap-5.00/libdnet-stripped/src'/bin/sh ../libtool --mode=compile arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -Wall -c -o addr.lo `test -f 'addr.c' || echo './'`addr.c arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -O2 -Wall -c addr.c -fPIC -DPIC -o .libs/addr.oIn file included from /usr/local/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/sys-include/net/raw.h:21, from addr.c:26:/usr/local/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/sys-include/net/protocol.h:38: error: expected declaration specifiers or '...' before 'u32'/usr/local/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/sys-include/net/protocol.h:70: error: field 'list' has incomplete typeIn file included from addr.c:26:/usr/local/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/sys-include/net/raw.h:25: error: expected declaration specifiers or '...' before 'u32'/usr/local/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/sys-include/net/raw.h:32: error: array type has incomplete element type/usr/local/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/sys-include/net/raw.h:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'raw_v4_lock'In file included from ../include/dnet/os.h:32, from ../include/dnet.h:12, from addr.c:35:/usr/local/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/include/netinet/in.h:35: error: expected identifier before numeric constant/usr/local/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/include/netinet/in.h:194: error: redefinition of 'struct in6_addr'/usr/local/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/include/netinet/in.h:234: error: redefinition of 'struct sockaddr_in6'/usr/local/lib/gcc/arm-linux/4.2.1/../../../../arm-linux/include/netinet/in.h:267: error: redefinition of 'struct ipv6_mreq'make[2]: *** [addr.lo] Error 1make[2]: Leaving directory `/home/dev1/nmap-5.00/libdnet-stripped/src'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/dev1/nmap-5.00/libdnet-stripped'make: *** [dnet_build] Error 2 I have two different versions of toolchains to use and they both break down here. (the other version uses gcc v3.4.4) My configure looks like:ac_cv_linux_vers=2.6.18 ./configure --host=arm-linux --with-openssl=/opt/omnitimetest/lib/libssl --with-libpcap=included --without-zenmap --without-ndiff --with-liblua=included --with-pcap=linux --disable-ipv6 Any hints or clues on how to proceed?? ThanksRon _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Cross compiling for arm? Ron Jobmann (Mar 01)