Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Win32: duplicate _FD_SET symbols?
From: " mixter () gmail com" <mixter () gmail com>
Date: Sat, 14 Jun 2008 22:49:38 +0200

Hi,

One more and I hope the last win32 question for now (with some luck).
So... I just got my (ncat) code back to the stage where all objs compile,
after some minor adaptions to the VC++2005 -> VC++2008 switch over.

I am again down to the error of duplicate symbols in various obj files,
essentially the file where I use FD macros clashes with nsock. This
situation is different than nmap, since nmap outsources all its select()
relevant stuff right into nsock. Which wouldn't be the right place for
mine, as it is application specific and used in multiple locations.

If anyone has stumbled over this kind of error, once more, I would greatly
appreciate any hint.

Thanks

1>Linking...
1>ncat_connect.obj : error LNK2005: "struct fdset_set * set" (?set@
@3PAUfdset_set@@A) already defined in ncat_broker.obj
1>ncat_core.obj : error LNK2005: "struct fdset_set * set" (?set@
@3PAUfdset_set@@A) already defined in ncat_broker.obj
1>ncat_hostmatch.obj : error LNK2005: "struct fdset_set * set" (?set@
@3PAUfdset_set@@A) already defined in ncat_broker.obj
1>ncat_listen.obj : error LNK2005: "struct fdset_set * set" (?set@
@3PAUfdset_set@@A) already defined in ncat_broker.obj
1>ncat_main.obj : error LNK2005: "struct fdset_set * set" (?set@
@3PAUfdset_set@@A) already defined in ncat_broker.obj
1>ncat_proxy.obj : error LNK2005: "struct fdset_set * set" (?set@
@3PAUfdset_set@@A) already defined in ncat_broker.obj
1>ncat_ssl.obj : error LNK2005: "struct fdset_set * set" (?set@
@3PAUfdset_set@@A) already defined in ncat_broker.obj
1>util.obj : error LNK2005: "struct fdset_set * set" (?set@@3PAUfdset_set@@A)
already defined in ncat_broker.obj
1>nsock.lib(nsock_read.obj) : error LNK2005: _FD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_read.obj) : error LNK2005: _PFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_read.obj) : error LNK2005: _LPFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_iod.obj) : error LNK2005: _FD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_iod.obj) : error LNK2005: _PFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_iod.obj) : error LNK2005: _LPFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_write.obj) : error LNK2005: _FD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_write.obj) : error LNK2005: _PFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_write.obj) : error LNK2005: _LPFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_connect.obj) : error LNK2005: _FD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_connect.obj) : error LNK2005: _PFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_connect.obj) : error LNK2005: _LPFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_pool.obj) : error LNK2005: _FD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_pool.obj) : error LNK2005: _PFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_pool.obj) : error LNK2005: _LPFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_core.obj) : error LNK2005: _FD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_core.obj) : error LNK2005: _PFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_core.obj) : error LNK2005: _LPFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(gh_list.obj) : error LNK2005: _FD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(gh_list.obj) : error LNK2005: _PFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(gh_list.obj) : error LNK2005: _LPFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(netutils.obj) : error LNK2005: _FD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(netutils.obj) : error LNK2005: _PFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(netutils.obj) : error LNK2005: _LPFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_ssl.obj) : error LNK2005: _FD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_ssl.obj) : error LNK2005: _PFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_ssl.obj) : error LNK2005: _LPFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_pcap.obj) : error LNK2005: _FD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_pcap.obj) : error LNK2005: _PFD_SET already defined in
nsock.lib(nsock_event.obj)
1>nsock.lib(nsock_pcap.obj) : error LNK2005: _LPFD_SET already defined in
nsock.lib(nsock_event.obj)
1>LINK : warning LNK4199: /DELAYLOAD:wpcap.dll ignored; no imports found
from wpcap.dll
1>LINK : warning LNK4199: /DELAYLOAD:iphlpapi.dll ignored; no imports found
from iphlpapi.dll
1>ncat_listen.obj : error LNK2019: unresolved external symbol _my_close
referenced in function "int __cdecl ncat_listen_tcp(void)"
(?ncat_listen_tcp@@YAHXZ)
1>sys_wrap.obj : error LNK2001: unresolved external symbol _my_close
1>nsock.lib(nsock_iod.obj) : error LNK2001: unresolved external symbol
_my_close
1>sys_wrap.obj : error LNK2019: unresolved external symbol "int __cdecl
fork(void)" (?fork@@YAHXZ) referenced in function "int __cdecl Fork(void)"
(?Fork@@YAHXZ)
1>sys_wrap.obj : error LNK2019: unresolved external symbol "int __cdecl
vsscanf(char const *,char const *,char *)" (?vsscanf@@YAHPBD0PAD () Z)
referenced in function "int __cdecl Sscanf(char const *,char const *,...)"
(?Sscanf@@YAHPBD0ZZ)
1>nsock.lib(nsock_iod.obj) : error LNK2019: unresolved external symbol
_pcap_close referenced in function _nsi_delete
1>nsock.lib(nsock_pcap.obj) : error LNK2019: unresolved external symbol
_pcap_setnonblock referenced in function _nsock_pcap_open
1>nsock.lib(nsock_pcap.obj) : error LNK2019: unresolved external symbol
_pcap_setmintocopy referenced in function _nsock_pcap_open
1>nsock.lib(nsock_pcap.obj) : error LNK2019: unresolved external symbol
_pcap_open_live referenced in function _nsock_pcap_open
1>nsock.lib(nsock_pcap.obj) : error LNK2019: unresolved external symbol
_pcap_freecode referenced in function "char * __cdecl
nsock_pcap_set_filter(struct pcap *,char const *,char const *)"
(?nsock_pcap_set_filter@@YAPADPAUpcap@@PBD1 () Z)
1>nsock.lib(nsock_pcap.obj) : error LNK2019: unresolved external symbol
_pcap_setfilter referenced in function "char * __cdecl
nsock_pcap_set_filter(struct pcap *,char const *,char const *)"
(?nsock_pcap_set_filter@@YAPADPAUpcap@@PBD1 () Z)
1>nsock.lib(nsock_pcap.obj) : error LNK2019: unresolved external symbol
_pcap_geterr referenced in function "char * __cdecl
nsock_pcap_set_filter(struct pcap *,char const *,char const *)"
(?nsock_pcap_set_filter@@YAPADPAUpcap@@PBD1 () Z)
1>nsock.lib(nsock_pcap.obj) : error LNK2019: unresolved external symbol
_pcap_compile referenced in function "char * __cdecl
nsock_pcap_set_filter(struct pcap *,char const *,char const *)"
(?nsock_pcap_set_filter@@YAPADPAUpcap@@PBD1 () Z)
1>nsock.lib(nsock_pcap.obj) : error LNK2019: unresolved external symbol
_pcap_lookupnet referenced in function "char * __cdecl
nsock_pcap_set_filter(struct pcap *,char const *,char const *)"
(?nsock_pcap_set_filter@@YAPADPAUpcap@@PBD1 () Z)
1>nsock.lib(nsock_pcap.obj) : error LNK2019: unresolved external symbol
_pcap_datalink referenced in function "int __cdecl
nsock_pcap_get_l3_offset(struct pcap *,int *)" (?nsock_pcap_get_l3_offset@
@YAHPAUpcap@@PAH () Z)
1>nsock.lib(nsock_pcap.obj) : error LNK2019: unresolved external symbol
_pcap_next_ex referenced in function "int __cdecl do_actual_pcap_read(struct
msevent *)" (?do_actual_pcap_read@@YAHPAUmsevent@@@Z)
1>.\Debug\ncat.exe : fatal error LNK1120: 14 unresolved externals

_______________________________________________
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 ]