Nmap Development mailing list archives
Compiling Problems with 4.22SOC6
From: Vijay Sankar <vsankar () foretell ca>
Date: Sun, 30 Sep 2007 08:55:26 -0500
I am trying to compile nmap-4.22SOC6 on OpenBSD 4.1. gmake-3.80 and autoconf-2.59 were installed from OpenBSD packages. (4.20 compiled with one warning -- net/if.h: present but cannot be compiled, but it works) For the configure command, I used ./configure --includedir=/usr/include --with-openssl=/usr --with-libpcre=/usr/local --with-libdnet=/usr gmake gives me the following error: gmake[1]: Leaving directory `/home/vsankar/Downloads/nmap-svn/nmap/nselib' g++ -c -Iliblua -I/usr/include -I/usr/local/include -g -O2 -Wall -fno-strict-aliasing -I/usr/include -Ilibpcap -Inbase -Insock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\" -DNMAP_PLATFORM=\"i386-unknown-openbsd4.1\" -DNMAPDATADIR=\"/usr/local/share/nmap\" main.cc -o main.o g++ -c -Iliblua -I/usr/include -I/usr/local/include -g -O2 -Wall -fno-strict-aliasing -I/usr/include -Ilibpcap -Inbase -Insock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\" -DNMAP_PLATFORM=\"i386-unknown-openbsd4.1\" -DNMAPDATADIR=\"/usr/local/share/nmap\" nmap.cc -o nmap.o g++ -c -Iliblua -I/usr/include -I/usr/local/include -g -O2 -Wall -fno-strict-aliasing -I/usr/include -Ilibpcap -Inbase -Insock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\" -DNMAP_PLATFORM=\"i386-unknown-openbsd4.1\" -DNMAPDATADIR=\"/usr/local/share/nmap\" targets.cc -o targets.o g++ -c -Iliblua -I/usr/include -I/usr/local/include -g -O2 -Wall -fno-strict-aliasing -I/usr/include -Ilibpcap -Inbase -Insock/include -DHAVE_CONFIG_H -DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://insecure.org\" -DNMAP_PLATFORM=\"i386-unknown-openbsd4.1\" -DNMAPDATADIR=\"/usr/local/share/nmap\" tcpip.cc -o tcpip.o In file included from portreasons.h:108, from tcpip.cc:105: /usr/include/netinet/in.h:136: error: 'in_addr_t' is used as a type, but is not defined as a type. /usr/include/netinet/in.h:213: error: 'u_int8_t' is used as a type, but is not defined as a type. /usr/include/netinet/in.h:214: error: 'sa_family_t' is used as a type, but is not defined as a type. /usr/include/netinet/in.h:215: error: 'in_port_t' is used as a type, but is not defined as a type. /usr/include/netinet/in.h:217: error: syntax error before `[' token /usr/include/netinet/in.h:230: error: syntax error before `[' token In file included from /usr/include/netinet/in.h:554, from portreasons.h:108, from tcpip.cc:105: /usr/include/netinet6/in6.h:118: error: syntax error before `[' token /usr/include/netinet6/in6.h:119: error: syntax error before `[' token /usr/include/netinet6/in6.h:120: error: syntax error before `[' token /usr/include/netinet6/in6.h:140: error: 'u_int8_t' is used as a type, but is not defined as a type. /usr/include/netinet6/in6.h:141: error: 'sa_family_t' is used as a type, but is not defined as a type. /usr/include/netinet6/in6.h:142: error: 'in_port_t' is used as a type, but is not defined as a type. /usr/include/netinet6/in6.h:143: error: 'u_int32_t' is used as a type, but is not defined as a type. /usr/include/netinet6/in6.h:145: error: 'u_int32_t' is used as a type, but is not defined as a type. /usr/include/netinet6/in6.h:514: error: 'u_int32_t' is used as a type, but is not defined as a type. /usr/include/netinet6/in6.h:735: error: syntax error before `;' token /usr/include/netinet6/in6.h:739: error: syntax error before `*' token /usr/include/netinet6/in6.h:741: error: syntax error before `*' token /usr/include/netinet6/in6.h:742: error: syntax error before `*' token /usr/include/netinet6/in6.h:743: error: syntax error before `*' token /usr/include/netinet6/in6.h:745: error: syntax error before `(' token /usr/include/netinet6/in6.h:757: error: type specifier omitted for parameter ` socklen_t' /usr/include/netinet6/in6.h:758: error: type specifier omitted for parameter ` socklen_t' /usr/include/netinet6/in6.h:758: error: type specifier omitted for parameter ` u_int8_t' /usr/include/netinet6/in6.h:759: error: type specifier omitted for parameter ` socklen_t' /usr/include/netinet6/in6.h:759: error: type specifier omitted for parameter ` u_int8_t' /usr/include/netinet6/in6.h:760: error: type specifier omitted for parameter ` socklen_t' /usr/include/netinet6/in6.h:761: error: type specifier omitted for parameter ` socklen_t' /usr/include/netinet6/in6.h:763: error: type specifier omitted for parameter ` socklen_t' /usr/include/netinet6/in6.h:763: error: syntax error before `*' token /usr/include/netinet6/in6.h:765: error: type specifier omitted for parameter ` socklen_t' /usr/include/netinet6/in6.h:765: error: type specifier omitted for parameter ` u_int8_t' /usr/include/netinet6/in6.h:766: error: syntax error before `*' token /usr/include/netinet6/in6.h:767: error: type specifier omitted for parameter ` socklen_t' /usr/include/netinet6/in6.h:769: error: syntax error before `(' token /usr/include/netinet6/in6.h:770: error: type specifier omitted for parameter ` socklen_t' In file included from portreasons.h:108, from tcpip.cc:105: /usr/include/netinet/in.h:561: error: syntax error before string constant /usr/include/netinet/in.h:565: error: syntax error before `}' token In file included from portreasons.h:108, from tcpip.cc:105: /usr/include/netinet/in.h:557:1: unterminated #ifndef /usr/include/netinet/in.h:40:1: unterminated #ifndef In file included from tcpip.cc:105: portreasons.h:105:1: unterminated #else portreasons.h:102:1: unterminated #ifndef gmake: *** [tcpip.o] Error 1 Probably I am doing something totally wrong -- please let me know how to compile nmap properly on OpenBSD. Thanks very much, Vijay -- Vijay Sankar ForeTell Technologies Limited 59 Flamingo Avenue, Winnipeg, MB Canada R3J 0X6 Phone: +1 204 885 9535, E-Mail: vsankar () foretell ca _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Compiling Problems with 4.22SOC6 Vijay Sankar (Sep 30)