Nmap Development mailing list archives
Nmap 4.20 won't compile on Macos X 10.4.9 due to libpcap errors
From: James Kelly <macubergeek () comcast net>
Date: Thu, 5 Apr 2007 18:26:03 -0400
Macos 10.4.9 Developer tools v. xcode_2.4.1_8m1910_6936315.dmg configure kicks out this warning: configure: WARNING: net/if.h: present but cannot be compiled configure: WARNING: net/if.h: check for missing prerequisite headers? configure: WARNING: net/if.h: see the Autoconf documentation configure: WARNING: net/if.h: section "Present But Cannot Be Compiled" configure: WARNING: net/if.h: proceeding with the preprocessor's result configure: WARNING: net/if.h: in the future, the compiler will take precedence configure: WARNING: ## ------------------------------------------ ## configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ## configure: WARNING: ## ------------------------------------------ ## make kicks out this: @Xmac->make Compiling libpcap gcc -g -O2 -fno-common -I/sw/include -fno-strict-aliasing -I. - DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./pcap-bpf.c In file included from ./pcap-bpf.c:95: ./pcap-int.h:163: error: parse error before 'pcap_direction_t' ./pcap-int.h:163: warning: no semicolon at end of struct or union ./pcap-int.h:171: error: parse error before 'pcap_direction_t' ./pcap-int.h:188: error: parse error before '}' token ./pcap-bpf.c:108: error: parse error before 'pcap_direction_t' ./pcap-bpf.c: In function 'pcap_stats_bpf': ./pcap-bpf.c:129: error: dereferencing pointer to incomplete type ./pcap-bpf.c:130: error: dereferencing pointer to incomplete type ./pcap-bpf.c: In function 'pcap_read_bpf': ./pcap-bpf.c:152: error: dereferencing pointer to incomplete type ./pcap-bpf.c:152: error: dereferencing pointer to incomplete type ./pcap-bpf.c:157: error: dereferencing pointer to incomplete type ./pcap-bpf.c:163: error: dereferencing pointer to incomplete type ./pcap-bpf.c:166: error: dereferencing pointer to incomplete type ./pcap-bpf.c:167: error: dereferencing pointer to incomplete type ./pcap-bpf.c:168: error: dereferencing pointer to incomplete type ./pcap-bpf.c:168: error: dereferencing pointer to incomplete type ./pcap-bpf.c:168: error: dereferencing pointer to incomplete type ./pcap-bpf.c:219: error: dereferencing pointer to incomplete type ./pcap-bpf.c:223: error: dereferencing pointer to incomplete type ./pcap-bpf.c:225: error: dereferencing pointer to incomplete type ./pcap-bpf.c:247: error: dereferencing pointer to incomplete type ./pcap-bpf.c:249: error: dereferencing pointer to incomplete type ./pcap-bpf.c:252: error: dereferencing pointer to incomplete type ./pcap-bpf.c:253: error: dereferencing pointer to incomplete type ./pcap-bpf.c:304: error: dereferencing pointer to incomplete type ./pcap-bpf.c:305: error: dereferencing pointer to incomplete type ./pcap-bpf.c:316: error: dereferencing pointer to incomplete type ./pcap-bpf.c: In function 'pcap_inject_bpf': ./pcap-bpf.c:325: error: dereferencing pointer to incomplete type ./pcap-bpf.c:348: error: dereferencing pointer to incomplete type ./pcap-bpf.c:349: error: dereferencing pointer to incomplete type ./pcap-bpf.c:358: error: dereferencing pointer to incomplete type ./pcap-bpf.c:362: error: dereferencing pointer to incomplete type ./pcap-bpf.c: In function 'pcap_open_live': ./pcap-bpf.c:610: error: dereferencing pointer to incomplete type ./pcap-bpf.c:616: error: dereferencing pointer to incomplete type ./pcap-bpf.c:621: error: dereferencing pointer to incomplete type ./pcap-bpf.c:622: error: dereferencing pointer to incomplete type ./pcap-bpf.c:737: error: dereferencing pointer to incomplete type ./pcap-bpf.c:816: error: dereferencing pointer to incomplete type ./pcap-bpf.c:816: error: dereferencing pointer to incomplete type ./pcap-bpf.c:817: error: dereferencing pointer to incomplete type ./pcap-bpf.c:821: error: dereferencing pointer to incomplete type ./pcap-bpf.c:822: error: dereferencing pointer to incomplete type ./pcap-bpf.c:823: error: dereferencing pointer to incomplete type ./pcap-bpf.c:824: error: dereferencing pointer to incomplete type ./pcap-bpf.c:854: error: dereferencing pointer to incomplete type ./pcap-bpf.c:920: error: dereferencing pointer to incomplete type ./pcap-bpf.c:931: error: dereferencing pointer to incomplete type ./pcap-bpf.c:932: error: dereferencing pointer to incomplete type ./pcap-bpf.c:932: error: dereferencing pointer to incomplete type ./pcap-bpf.c:933: error: dereferencing pointer to incomplete type ./pcap-bpf.c:960: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1002: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1002: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1010: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1014: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1015: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1016: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1017: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1018: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1019: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1020: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1021: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1022: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1027: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1028: error: dereferencing pointer to incomplete type ./pcap-bpf.c: In function 'pcap_setfilter_bpf': ./pcap-bpf.c:1058: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1065: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1070: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1071: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1075: error: dereferencing pointer to incomplete type ./pcap-bpf.c:1083: error: dereferencing pointer to incomplete type ./pcap-bpf.c: At top level: ./pcap-bpf.c:1092: error: parse error before 'pcap_direction_t' ./pcap-bpf.c: In function 'pcap_setdirection_bpf': ./pcap-bpf.c:1101: error: 'd' undeclared (first use in this function) ./pcap-bpf.c:1101: error: (Each undeclared identifier is reported only once ./pcap-bpf.c:1101: error: for each function it appears in.) ./pcap-bpf.c:1101: error: 'PCAP_D_OUT' undeclared (first use in this function) ./pcap-bpf.c:1102: error: 'p' undeclared (first use in this function) ./pcap-bpf.c:1107: error: 'PCAP_D_INOUT' undeclared (first use in this function) make[1]: *** [pcap-bpf.o] Error 1 make: *** [libpcap/libpcap.a] Error 2 I tried using ./configure --with-libpcap=/usr/local/lib as well as ./configure --with-libpcap=/opt/local/lib (I have MacPorts installed) Neither works. Any suggestions would be appreciated. Jim _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Nmap 4.20 won't compile on Macos X 10.4.9 due to libpcap errors James Kelly (Apr 05)
- Re: Nmap 4.20 won't compile on Macos X 10.4.9 due to libpcap errors Hugo T R (Apr 06)
- Re: Nmap 4.20 won't compile on Macos X 10.4.9 due to libpcap errors James Kelly (Apr 06)
- Re: Nmap 4.20 won't compile on Macos X 10.4.9 due to libpcap errors Hugo T R (Apr 06)
- Re: Nmap 4.20 won't compile on Macos X 10.4.9 due to libpcap errors Peter O'Gorman (Apr 19)
- Re: Nmap 4.20 won't compile on Macos X 10.4.9 due to libpcap errors James Kelly (Apr 06)
- Re: Nmap 4.20 won't compile on Macos X 10.4.9 due to libpcap errors Hugo T R (Apr 06)