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: Re: Nmap 4.60 Compilation Errors with Visual Studios 2008

Re: Nmap 4.60 Compilation Errors with Visual Studios 2008

From: majek04 <majek04+nmap-dev_at_gmail.com>
Date: Wed, 9 Apr 2008 02:40:20 +0200

On Wed, Apr 2, 2008 at 2:22 PM, Kevin T. Johnston <kjohnston_at_syrres.com> wrote:
> Thanks, fixed some now get over 100 other errors. I'll keep working on it.
>
> See attached.

I finally succeeded to compile nmap on VS2008.

nmap - 0 error(s), 3 warning(s)
========== Build: 7 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

The solution is not finished, it's possible that it beaks compilation on VS2005.

I just removed all includes of ws2tcpip.h, and all defines
of snprintf and vsnprintf.

There is still a need of including ws2tcpip.h but without the
declarations of inet_ntop and pton.
This hackish code does it:

#undef NTDDI_VERSION
#define NTDDI_VERSION (NTDDI_LONGHORN-1)
#include <ws2tcpip.h> /* IPv6 stuff */
#undef NTDDI_VERSION

Anyone has better idea?

The patch is here:
http://ai.pjwstk.edu.pl/~majek/private/nmap/nmap-vs2008-2.diff

patched code is also in svn:
svn://svn.insecure.org/nmap-exp/majek04/nmap-7011-vs2008

I'll be working on final solution.

Cheers!
 Marek Majkowski

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
Received on Apr 08 2008

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