Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: Nmap 4.60 Compilation Errors with Visual Studios 2008
From: majek04 <majek04+nmap-dev () gmail com>
Date: Wed, 9 Apr 2008 02:40:20 +0200

On Wed, Apr 2, 2008 at 2:22 PM, Kevin T. Johnston <kjohnston () 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


  By Date           By Thread  

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