Nmap Development mailing list archives

Ncat Compilation Broken on Windows


From: Rob Nicholls <robert () robnicholls co uk>
Date: Mon, 03 Aug 2009 21:05:18 +0100

I spotted this Ncat error when trying to compile Nmap a few minutes ago (using Visual Studio 2008 RTM Express Edition):

7>ncat_broker.obj : error LNK2005: "struct timeval start_time" (?start_time@@3Utimeval@@A) already defined in http.obj 7>ncat_connect.obj : error LNK2005: "struct timeval start_time" (?start_time@@3Utimeval@@A) already defined in http.obj 7>ncat_core.obj : error LNK2005: "struct timeval start_time" (?start_time@@3Utimeval@@A) already defined in http.obj 7>ncat_exec_win.obj : error LNK2005: "struct timeval start_time" (?start_time@@3Utimeval@@A) already defined in http.obj 7>ncat_hostmatch.obj : error LNK2005: "struct timeval start_time" (?start_time@@3Utimeval@@A) already defined in http.obj 7>ncat_listen.obj : error LNK2005: "struct timeval start_time" (?start_time@@3Utimeval@@A) already defined in http.obj 7>ncat_main.obj : error LNK2005: "struct timeval start_time" (?start_time@@3Utimeval@@A) already defined in http.obj 7>ncat_proxy.obj : error LNK2005: "struct timeval start_time" (?start_time@@3Utimeval@@A) already defined in http.obj 7>ncat_ssl.obj : error LNK2005: "struct timeval start_time" (?start_time@@3Utimeval@@A) already defined in http.obj 7>ncat_win.obj : error LNK2005: "struct timeval start_time" (?start_time@@3Utimeval@@A) already defined in http.obj 7>util.obj : error LNK2005: "struct timeval start_time" (?start_time@@3Utimeval@@A) already defined in http.obj 7>.\Release/ncat.exe : fatal error LNK1169: one or more multiply defined symbols found

I don't really know Ncat's code well enough to make suggestions at this point, but I'm hoping it'll be a fairly simple fix (especially as I've really grown to love Ncat).

Rob



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


Current thread: