I'm compiling nmap 3.20 under Jaguar with the latest developer tools.First I have a problem with the ./configure script not finding cpp which was sorted by using
env CPP=/usr/bin/cpp ./configure
However now when I attempt to do a make I get the following error.I believe it doesn't like the MacosX libraries ? Am I correct ? Any suggestions ? Thanks in advance.
% make
Compiling libpcap
gcc -I. -O -DHAVE_CONFIG_H -c ./pcap-bpf.c
gcc -I. -O -DHAVE_CONFIG_H -c ./pcap.c
gcc -I. -O -DHAVE_CONFIG_H -c ./inet.c
gcc -I. -O -DHAVE_CONFIG_H -c ./gencode.c
gcc -I. -O -DHAVE_CONFIG_H -c ./optimize.c
gcc -I. -O -DHAVE_CONFIG_H -c ./nametoaddr.c
gcc -I. -O -DHAVE_CONFIG_H -c ./etherent.c
gcc -I. -O -DHAVE_CONFIG_H -c ./savefile.c
gcc -I. -O -DHAVE_CONFIG_H -c bpf_filter.c
gcc -I. -O -DHAVE_CONFIG_H -c ./bpf_image.c
gcc -I. -O -DHAVE_CONFIG_H -c ./bpf_dump.c
gcc -I. -O -DHAVE_CONFIG_H -c scanner.c
gcc -I. -O -DHAVE_CONFIG_H -Dyylval=pcap_lval -c grammar.c
y.tab.c:119: warning: redefinition of macro MASK
/usr/include/ppc/param.h:120: warning: this is the location of the previous definition
sed -e 's/.*/char pcap_version[] = "&";/' ./VERSION > version.c
gcc -I. -O -DHAVE_CONFIG_H -c version.c
ar rc libpcap.a pcap-bpf.o pcap.o inet.o gencode.o optimize.o nametoaddr.o etherent.o savefile.o bpf_filter.o bpf_image.o bpf_dump.o scanner.o grammar.o version.o
ranlib libpcap.a
Compiling libnbase
cd nbase; make
gcc -g -O2 -Wall -g -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1 -c -o snprintf.o snprintf.c
gcc -g -O2 -Wall -g -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1 -c -o getopt.o getopt.c
gcc -g -O2 -Wall -g -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1 -c -o getopt1.o getopt1.c
gcc -g -O2 -Wall -g -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1 -c -o nbase_str.o nbase_str.c
gcc -g -O2 -Wall -g -DHAVE_CONFIG_H -DNCRACK_VERSION=\"\" -DHAVE_CONFIG_H=1 -c -o nbase_misc.o nbase_misc.c
Compiling libnbase
rm -f libnbase.a
ar cr libnbase.a snprintf.o getopt.o getopt1.o nbase_str.o nbase_misc.o
ranlib libnbase.a
g++ -c -g -Wall -no-cpp-precomp -g -O2 -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\"3.20\" -DNMAP_NAME=\"nmap\" -DNMAP_URL=\"www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"powerpc-apple-darwin6.2\" -DNMAPDATADIR=\"/usr/local/share/nmap\" -Ilibpcap-possiblymodified main.cc -o main.o
In file included from output.h:67,
from nmap.h:369,
from main.cc:48:
tcpip.h:247: redefinition of `struct ip'
/usr/include/netinet/ip.h:71: previous definition of `struct ip'
tcpip.h:291: redefinition of `struct icmp_ra_addr'
/usr/include/netinet/ip_icmp.h:70: previous definition of `struct icmp_ra_addr'
tcpip.h:297: redefinition of `struct icmp'
/usr/include/netinet/ip_icmp.h:78: previous definition of `struct icmp'
make: *** [main.o] Error 1
%
