Nmap Development mailing list archives

Re: SunOS 5.8 and nmap > 3.00 doesn't compile (including 3.15beta1)


From: <nickbsd () yahoo com>
Date: Thu, 20 Feb 2003 12:49:56 -0800 (PST)


That worked perfectly... thanks for the input!
Nick
 Tom Duffy <tduffy () sun com> wrote:On Wed, 2003-02-19 at 17:25, nickbsd () yahoo com wrote:
Since 3.00stable, none of the releases have compiled on my system. 
Does anyone know why this may be?

On my S8 & S9, box compiling nmap 3.15BETA1, I get a different error if
I use make (/usr/ccs/bin/make) -- using gmake, I can compile fine.

$ uname -a
SunOS sr1-usun-01 5.8 Generic_108528-16 sun4u sparc SUNW,Sun-Fire

$ uname -a
SunOS sr2-usun-01 5.9 Generic sun4u sparc SUNW,Sun-Blade-1000

$ make

Compiling libnbase
rm -f libnbase.a
ar cr libnbase.a inet_aton.o snprintf.o getopt.o getopt1.o nbase_str.o nbase_misc.o
ranlib libnbase.a
CC -c main.cc
"nmap.h", line 65: Error: Could not open include file .
"/usr/include/netinet/ip.h", line 61: Error: The type "in_addr" is incomplete.
"/usr/include/netinet/ip.h", line 61: Error: The type "in_addr" is incomplete.
"/usr/include/netinet/ip.h", line 132: Error: The type "in_addr" is incomplete.
"/usr/include/netinet/ip_icmp.h", line 63: Error: The type "in_addr" is incomplete.
"/usr/include/net/if.h", line 225: Error: The type "sockaddr" is incomplete.
"/usr/include/net/if.h", line 227: Error: The type "sockaddr" is incomplete.
"/usr/include/net/if.h", line 228: Error: The type "sockaddr" is incomplete.
"/usr/include/net/if.h", line 260: Error: The type "sockaddr_storage" is incomplete.
"/usr/include/net/if.h", line 329: Error: The type "sockaddr_storage" is incomplete.
"/usr/include/net/if.h", line 330: Error: The type "sockaddr_storage" is incomplete.
"/usr/include/net/if.h", line 331: Error: The type "sockaddr_storage" is incomplete.
"/usr/include/net/if.h", line 332: Error: The type "sockaddr_storage" is incomplete.
"/usr/include/net/if.h", line 333: Error: The type "sockaddr_storage" is incomplete.
"/usr/include/net/if.h", line 372: Error: The type "sockaddr_storage" is incomplete.
"/usr/include/net/if.h", line 382: Error: The type "sockaddr_storage" is incomplete.
"/usr/include/net/if.h", line 383: Error: The type "sockaddr_storage" is incomplete.
"/usr/include/net/if.h", line 402: Error: The type "sockaddr" is incomplete.
"/usr/include/net/if.h", line 403: Error: The type "sockaddr" is incomplete.
"/usr/include/net/if.h", line 405: Error: The type "sockaddr" is incomplete.
"/usr/include/net/if.h", line 473: Error: Type name expected instead of "sa_family_t".
"/usr/include/net/if.h", line 473: Error: No storage class or type for this declaration.
"/usr/include/net/if.h", line 473: Error: "," expected instead of "lifn_family".
"/usr/include/net/if.h", line 474: Error: Use ";" to terminate declarations.
"/usr/include/net/if.h", line 486: Error: Type name expected instead of "sa_family_t".
Compilation aborted, too many messages.
*** Error code 1
make: Fatal error: Command failed for target `main.o'

$ gmake

Compiling libnbase
rm -f libnbase.a
ar cr libnbase.a inet_aton.o snprintf.o getopt.o getopt1.o nbase_str.o nbase_misc.o
ranlib libnbase.a
gmake[1]: Leaving directory `/home/tduffy/src/nmap-3.15BETA1/nbase'
g++ -g -Wall -g -O2 -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\"3.15BETA1\" 
-DNMAP_NAME=\"nmap\" -DNMAP_URL=\"www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"sparc-sun-solaris2.10\" 
-DNMAPDATADIR=\"/usr/local/share/nmap\" -Ilibpcap-possiblymodified -c -o main.o main.cc
In file included from nmap.h:141,
from main.cc:48:
/usr/include/netdb.h:412: warning: `MAXHOSTNAMELEN' redefined
nbase/nbase.h:108: warning: this is the location of the previous definition
g++ -g -Wall -g -O2 -Ilibpcap-possiblymodified -Inbase -DHAVE_CONFIG_H -DNMAP_VERSION=\"3.15BETA1\" 
-DNMAP_NAME=\"nmap\" -DNMAP_URL=\"www.insecure.org/nmap/\" -DNMAP_PLATFORM=\"sparc-sun-solaris2.10\" 
-DNMAPDATADIR=\"/usr/local/share/nmap\" -Ilibpcap-possiblymodified -c -o nmap.o nmap.cc

...

and it completes the build fine...

-tduffy

-- 
YOO-ESS-AYE! YOO-ESS-AYE!



---------------------------------
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more

Current thread: