[Winpcap-users] Compiling issues while building WinDump.exe
Loris Degioanni
loris.degioanni at gmail.com
Wed Jun 14 15:46:50 GMT 2006
I've updated the page http://www.winpcap.org/windump/docs/compile.htm
with what you've just written. It's still not complete, but better than
before.
Loris
Gianluca Varenni wrote:
> In order to compile windump, you need to have a directory structure like
> this
>
> |-windump <--windump sources
> |-winpcap <--Winpcap sources
>
> In particular, the winpcap sources folder should be named exactly "winpcap".
>
> Moreover, the compilation requirements are the same as wpcap.dll, that
> is, you need to have the Microsoft Platform SDK installed and registered
> within Visual Studio 6. This is usually the cause of the errors like
> "struct 'in6_addr' undefined" and similar.
> More details on where to find the Platform SDK can be found in section
> "compiling wpcap.dll" here
>
> http://www.winpcap.org/docs/docs40a1/html/group__compilation.html
>
> I think we should update the documentation on how to compile windump
> sooner or later...
>
> Have a nice day
> GV
>
>
>
>
> ----- Original Message -----
> *From:* Raghavendra .K.M <mailto:raghav_rkm at yahoo.com>
> *To:* wincap <mailto:winpcap-users at winpcap.org>
> *Sent:* Tuesday, June 13, 2006 7:55 PM
> *Subject:* [Winpcap-users] Compiling issues while building WinDump.exe
>
> Hi all,
>
> I installed WinCap and got my WinDump.exe running.
>
> However I wanted to build WinDump.exe from source .
>
> I extracted both WDumpSrc_3_9_3.zip and wpcapsrc_3_1.zip into same
> folder..
>
> While building WinDump I run into lot of errors.
>
> Few were about missing .h files which I had to point to in Wpcap
> source .
>
> But others are related to lack of declaration type.
>
> For instance
>
> ip6.h(88) : error C2079: 'ip6_src' uses undefined struct 'in6_addr'
> Running through entire source I see 'in6_addr' defined in 'ip6_misc.h'
> but I dont find this file included in ip6.h
> Am I missing out on anything here..
>
> Cannot attach the build log file since it is quite huge. Pasted
> snippets from the build log below
>
> Can somebody please help,
> Appreciate you help on this,
>
> thanks,
> Raghav
>
> /==========================================/
> Compiling...
> addrtoname.c
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\ip6.h(87)
> : error C2079: 'ip6_src' uses undefined struct 'in6_addr'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\ip6.h(88)
> : error C2079: 'ip6_dst' uses undefined struct 'in6_addr'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\ip6.h(176)
> : error C2079: 'ip6r0_addr' uses undefined struct 'in6_addr'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\interface.h(113)
> : error C2061: syntax error : identifier 'thiszone'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\interface.h(113)
> : error C2059: syntax error : ';'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\netdissect.h(127)
> : error C2061: syntax error : identifier 'int32_t'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\netdissect.h(149)
> : error C2059: syntax error : '}'
> C:\QTV_Builds\WinDump\WinDumpNew\WDumpSrc_3_9_3\tcpdump-3.9.3\addrtoname.c(119)
> : warning C4013: 'getnameinfo' undefined; assuming extern returning int
> C:\QTV_Builds\WinDump\WinDumpNew\WDumpSrc_3_9_3\tcpdump-3.9.3\addrtoname.c(136)
> : error C2079: 'addr' uses undefined struct 'in6_addr'
> C:\QTV_Builds\WinDump\WinDumpNew\WDumpSrc_3_9_3\tcpdump-3.9.3\addrtoname.c(245)
> : error C2037: left of 'ndo_nflag' specifies undefined struct/union
> 'netdissect_options'
> C:\QTV_Builds\WinDump\WinDumpNew\WDumpSrc_3_9_3\tcpdump-3.9.3\addrtoname.c(252)
> : error C2037: left of 'ndo_Nflag' specifies undefined struct/union
> 'netdissect_options'
> C:\QTV_Builds\WinDump\WinDumpNew\WDumpSrc_3_9_3\tcpdump-3.9.3\addrtoname.c(274)
> : error C2079: 'addr' uses undefined struct 'in6_addr'
> C:\QTV_Builds\WinDump\WinDumpNew\WDumpSrc_3_9_3\tcpdump-3.9.3\addrtoname.c(280)
> : error C2224: left of '.s6_addr' must have struct/union type
> C:\QTV_Builds\WinDump\WinDumpNew\WDumpSrc_3_9_3\tcpdump-3.9.3\addrtoname.c(280)
> : fatal error C1903: unable to recover from previous error(s);
> stopping compilation
> bpf_dump.c
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\ip6.h(87)
> : error C2079: 'ip6_src' uses undefined struct 'in6_addr'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\ip6.h(88)
> : error C2079: 'ip6_dst' uses undefined struct 'in6_addr'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\ip6.h(176)
> : error C2079: 'ip6r0_addr' uses undefined struct 'in6_addr'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\interface.h(113)
> : error C2061: syntax error : identifier 'thiszone'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\interface.h(113)
> : error C2059: syntax error : ';'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\netdissect.h(127)
> : error C2061: syntax error : identifier 'int32_t'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\netdissect.h(149)
> : error C2059: syntax error : '}'
> cpack.c
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\ip6.h(87)
> : error C2079: 'ip6_src' uses undefined struct 'in6_addr'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\ip6.h(88)
> : error C2079: 'ip6_dst' uses undefined struct 'in6_addr'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\ip6.h(176)
> : error C2079: 'ip6r0_addr' uses undefined struct 'in6_addr'
> datalinks.c
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\ip6.h(87)
> : error C2079: 'ip6_src' uses undefined struct 'in6_addr'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\ip6.h(88)
> : error C2079: 'ip6_dst' uses undefined struct 'in6_addr'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\ip6.h(176)
> : error C2079: 'ip6r0_addr' uses undefined struct 'in6_addr'
> dlnames.c
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\ip6.h(87)
> : error C2079: 'ip6_src' uses undefined struct 'in6_addr'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\ip6.h(88)
> : error C2079: 'ip6_dst' uses undefined struct 'in6_addr'
> c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\ip6.h(176)
> : error C2079: 'ip6r0_addr' uses undefined struct 'in6_addr'
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
More information about the Winpcap-users
mailing list