Nmap Development mailing list archives

Re: can not compile recent svn nmap on windows vc 2010


From: Henri Doreau <henri.doreau () gmail com>
Date: Sun, 12 May 2013 19:43:59 +0200

Hi Rob,

thanks for the report. My comments inline.

2013/5/12 Rob Nicholls <robert () robnicholls co uk>:
I've noticed a similar issue. If I try and compile the latest version from
SVN (r30884) I get:

1>------ Build started: Project: nsock, Configuration: Release Win32 ------
1>  proxy_http.c
1>src\proxy_http.c(213): error C2086: 'const proxy_spec ProxySpecHttp' :
redefinition
1>          src\proxy_http.c(71) : see declaration of 'ProxySpecHttp'
1>  proxy_socks4.c
1>src\proxy_socks4.c(243): error C2086: 'const proxy_spec ProxySpecSocks4' :
redefinition
1>          src\proxy_socks4.c(72) : see declaration of 'ProxySpecSocks4'
1>  Generating Code...
2>------ Build started: Project: nping, Configuration: Release Win32 ------
3>------ Build started: Project: ncat, Configuration: Release Win32 ------
4>------ Build started: Project: nmap, Configuration: Release Win32 ------
3>LINK : fatal error LNK1104: cannot open file 'nsock.lib'
2>LINK : fatal error LNK1104: cannot open file 'nsock.lib'
4>LINK : fatal error LNK1181: cannot open input file 'nsock.lib'
========== Build: 0 succeeded, 4 failed, 7 up-to-date, 0 skipped ==========

I tried making some quick and dirty changes locally to fix it, but I still
couldn't manage to get it to compile properly. If I revert nsock to r30735
everything then seems to compile okay.
I don't fully understand this error. What does the compiler complain
about? It doesn't seem to me that any structure is re-defined... How
did you fix it?

That compiled version also appears to run okay, albeit with lots of
SO_BROADCAST related errors with NSE:

NSOCK ERROR [96.3770s] nsock_make_socket(): Setting of SO_BROADCAST failed
(IOD #1): No error

But I think that's a separate issue to the proxy related issues.

Rob
I think so too. At least I've pushed a change (r30885) so that the
error codes are also properly reported on windows. Can you give it a
try? IIRC the failure of setsockopt(SO_BROADCAST) used to be ignored
but I don't know why, I should check and maybe re-add this behavior...

Regards

--
Henri
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: