[Winpcap-users] Compiling issues while building WinDump.exe
Gianluca Varenni
gianluca.varenni at cacetech.com
Wed Jun 14 14:58:04 GMT 2006
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
To: wincap
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20060614/659c0a0d/attachment.htm
More information about the Winpcap-users
mailing list