Nmap Development mailing list archives
Re: Ncat on MinGW - report
From: Gisle Vanem <gvanem () broadpark no>
Date: Sun, 11 Aug 2013 16:16:53 +0200
"Jacek Wielemborek" <wielemborekj1 () gmail com> wrote:
It turns out that Nbase compiles fine without this include, so I just commented it out. Then, there will be a bunch of this kind of errors: nbase_winconfig.h:177:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int64_t'
Well, simple. nbase/nbase_winconfig.h should have something like: #ifndef __MINGW32__ .. typedef signed __int64 int64_t; I reported this almost 3 years ago: http://seclists.org/nmap-dev/2010/q4/707 In your diff: +//typedef unsigned __int8 uint8_t; +//typedef unsigned __int16 uint16_t; +//typedef unsigned __int32 uint32_t; +//typedef unsigned __int64 uint64_t; Doesn't this break other Win32 comilers? Like MSVC.
+#include "winsock2.h"
Better make that '#include <winsock2.h>'.
ncat_ssl.c:139:29: fatal error: openssl/applink.c: No such file or directory #include <openssl/applink.c> ^
An old story.
/usr/lib64/gcc/i686-w64-mingw32/4.8.1/../../../../i686-w64-mingw32/bin/ld:
Did you make sure '-D_WIN32_WINNT=0x0501' or above?
Looks like we need some more libs! The ones we're lacking are: -lwsock32 -lgdi32 -lws2_32. Now, the final problem:
'-lws2_32' should be enough. What symbols do you need from '-lgdi32'? --gv _______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Ncat on MinGW - report Jacek Wielemborek (Aug 11)
- Re: Ncat on MinGW - report Gisle Vanem (Aug 11)
- Re: Ncat on MinGW - report Jacek Wielemborek (Aug 11)
- Re: Ncat on MinGW - report Gisle Vanem (Aug 11)