It is a conflict with includes from glibc-2.1.95. The first I met after more than 600
Mandrake packages. Yeap this upgrade was really smooth :)
mv y.tab.h tokdefs.h
gcc -O2 -O2 -march=i686 -Wall -Ilibpcap-possiblymodified -I. -Ilinux-include
-DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -c
./scanner.c
gcc -O2 -O2 -march=i686 -Wall -Ilibpcap-possiblymodified -I. -Ilinux-include
-DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1
-Dyylval=pcap_lval -c grammar.c
/usr//lib/bison.simple: In function `pcap_parse':
/usr//lib/bison.simple:361: warning: implicit declaration of function `free'
sed -e 's/.*/char pcap_version[] = "&";/' ./VERSION > version.c
gcc -O2 -O2 -march=i686 -Wall -Ilibpcap-possiblymodified -I. -Ilinux-include
-DHAVE_MALLOC_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_NET_IF_ARP_H=1 -c
./version.c
ar rc libpcap.a pcap-linux.o pcap.o inet.o gencode.o optimize.o nametoaddr.o
etherent.o savefile.o bpf_filter.o bpf_image.o scanner.o grammar.o version.o
ranlib libpcap.a
make[1]: Leaving directory `/usr/src/RPM/BUILD/nmap-2.53/libpcap-possiblymodified'
gcc -O2 -march=i686 -Wall -Ilibpcap-possiblymodified -DHAVE_CONFIG_H
-DNMAP_VERSION=\"2.53\" -DNMAP_NAME=\"nmap\" -DNMAP_URL=\"www.insecure.org/nmap/\"
-DNMAPDATADIR=\"/usr/share/nmap\" -I. -Ilibpcap-possiblymodified -c -o nmap.o nmap.c
In file included from nmap.h:258,
from nmap.c:2:
tcpip.h:358: conflicting types for `inet_aton'
/usr/include/arpa/inet.h:69: previous declaration of `inet_aton'
make: *** [nmap.o] Error 1
Bad exit status from /var/tmp/rpm-tmp.23591 (%build)