Home page logo

nmap-dev logo Nmap Development mailing list archives

Problem compiling nmap 3.81 for Solaris on Intel
From: Simon Burr <simes () bpfh net>
Date: Wed, 13 Apr 2005 18:03:01 +0100

I've just encountered an annoying problem trying to compile nmap 3.81 for
Solaris on Intel - Solaris on IA32 defines the word PC as a value of 14 in
its header files. This causes a problem when trying to compile tcpip.cc as
it has the line:

  static PacketCounter PC;

Which gets converted to:

  static PacketCounter 14;

After the preprocessor pass and strangely enough this doesn't compile very

I've attached a simple patch which fixes this problem by renaming the PC
variable to PktCt instead. The patch was generated against the 3.81 release
of nmap.

    Simon the stressed        http://www.bpfh.net/           simes () bpfh net
                 Chocolate is *not* a substitute for sleep

Attachment: tcpip.cc-patch

Sent through the nmap-dev mailing list

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]