Nmap Development mailing list archives

problem when cross-compiling NMAP for arm-linux


From: Weitan Hsu <whsu () frccorp com>
Date: Thu, 06 Sep 2007 15:00:49 -0500

Hi,

I'm trying to port NMAP to arm-linux platform. The cross-compilation 
stopped when compiling the
libdnet library to be used by NMAP. The error message:

In file included from addr.c:26:
/usr/local/arm-linux/sys-include/net/raw.h:24: error: parse error before
"u32"
/usr/local/arm-linux/sys-include/net/raw.h:31: error: `MAX_INET_PROTOS'
undeclared here (not in a function)
/usr/local/arm-linux/sys-include/net/raw.h:33: error: parse error before
"raw_v4_lock"
make[2]: *** [addr.lo] Error 1

where addr.c is a source file of libdnet. I saw MAX_INET_PROTOS is
defined in /usr/local/arm-linux/sys-include/net/protocols.h, but for
some reason it still cannot be recognized. Anybody tried to port NMAP
before and encountered similar problem? Thank you very much,

Weitan


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: