Nmap Development mailing list archives
nmap fails to compile w/ gcc-3.x and glibc-2.3.2
From: xxd <xxd () sym zapto org>
Date: Mon, 10 Nov 2003 14:41:46 -1000
System info: linux-2.6.0-test9-mm2 gcc-3.3.1 glibc-2.3.2 Hello all, I am just about at my wits end here... While trying to compiling nmap-3.48, it craps out with libpcap-possiblymodified. (error included at end.) Searching on line, I have found that it might possibly be a problem between glibc and kernel headers??? http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11853 However, I doubt this as trying to copile the latest libpcap release (libpcap-0.7.2) libpcap itself craps out with the same error. But when I try to compile libpcap-current (the daily build from libpcap cvs repository). It compiles without a hitch. Therefore: I was wondering if this error has been fixed in nmap cvs? also, is there a publicly accesible cvs tree for nmap? On a side note: nbase libpcre nmapfe nsock all compile successfully from within their respective src dirs Any help at all would be greatly appreciated. Thanks, xxd error: Compiling libpcap make[1]: Entering directory `/home/lotek/nmap-3.48/libpcap-possiblymodified' gcc -I. -g -O2 -DHAVE_CONFIG_H -c ./pcap-snoop.c pcap-snoop.c: In function `pcap_read': pcap-snoop.c:87: error: dereferencing pointer to incomplete type pcap-snoop.c:89: error: invalid use of undefined type `struct snoopheader' pcap-snoop.c:95: error: dereferencing pointer to incomplete type pcap-snoop.c:96: error: dereferencing pointer to incomplete type pcap-snoop.c: In function `pcap_stats': pcap-snoop.c:109: error: storage size of `rawstats' isn't known pcap-snoop.c:112: error: dereferencing pointer to incomplete type pcap-snoop.c:112: error: dereferencing pointer to incomplete type pcap-snoop.c:112: error: dereferencing pointer to incomplete type pcap-snoop.c:112: error: dereferencing pointer to incomplete type pcap-snoop.c:112: error: dereferencing pointer to incomplete type pcap-snoop.c:112: error: dereferencing pointer to incomplete type pcap-snoop.c:113: error: `SIOCRAWSTATS' undeclared (first use in this function) pcap-snoop.c:113: error: (Each undeclared identifier is reported only once pcap-snoop.c:113: error: for each function it appears in.) pcap-snoop.c:133: error: dereferencing pointer to incomplete type pcap-snoop.c:133: error: dereferencing pointer to incomplete type pcap-snoop.c:134: error: dereferencing pointer to incomplete type pcap-snoop.c:134: error: dereferencing pointer to incomplete type pcap-snoop.c: In function `pcap_open_live': pcap-snoop.c:150: error: storage size of `sr' isn't known pcap-snoop.c:151: error: storage size of `sf' isn't known pcap-snoop.c:165: error: `PF_RAW' undeclared (first use in this function) pcap-snoop.c:165: error: `RAWPROTO_SNOOP' undeclared (first use in this function) pcap-snoop.c:173: error: `AF_RAW' undeclared (first use in this function) pcap-snoop.c:181: error: `SIOCADDSNOOP' undeclared (first use in this function) pcap-snoop.c:266: error: `SIOCSNOOPLEN' undeclared (first use in this function) pcap-snoop.c:273: error: `SIOCSNOOPING' undeclared (first use in this function) make[1]: *** [pcap-snoop.o] Error 1 make[1]: Leaving directory `/home/lotek/nmap-3.48/libpcap-possiblymodified' make: *** [libpcap-possiblymodified/libpcap.a] Error 2 -- ############################################################## # ________ ___ ________ # # # )_ ( '-,) ) _( # Email: xxd () sym zapto org # # )_ \_//_/ _( # # # )___ ___( # Lo Tek Sym Designs # # )) # # # (( # Scott Scheurman # # ``- # # ##############################################################
Attachment:
_bin
Description:
Current thread:
- nmap fails to compile w/ gcc-3.x and glibc-2.3.2 xxd (Nov 10)