Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Nmap Development: Problem compiling nmap 3.81 for Solaris on Intel

Problem compiling nmap 3.81 for Solaris on Intel

From: Simon Burr <simes_at_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
well!

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


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev

Received on Apr 13 2005
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
edgeos