<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>In order to compile windump, you need to have a directory
structure like this</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>|-windump <--windump sources</FONT></DIV>
<DIV><FONT size=2>|-winpcap <--Winpcap sources</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>In particular, the winpcap sources folder should be named
exactly "winpcap".</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>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
"</FONT><FONT size=3>struct 'in6_addr' undefined" and similar.</FONT></DIV>
<DIV><FONT size=2>More details on where to find the Platform SDK can be found in
section "compiling wpcap.dll" here</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2><A
href="http://www.winpcap.org/docs/docs40a1/html/group__compilation.html">http://www.winpcap.org/docs/docs40a1/html/group__compilation.html</A></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I think we should update the documentation on how to compile
windump sooner or later...</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Have a nice day</FONT></DIV>
<DIV><FONT size=2>GV</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=raghav_rkm@yahoo.com href="mailto:raghav_rkm@yahoo.com">Raghavendra
.K.M</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">wincap</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, June 13, 2006 7:55
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Winpcap-users] Compiling issues
while building WinDump.exe</DIV>
<DIV><FONT size=2></FONT><FONT size=2></FONT><FONT size=2></FONT><FONT
size=2></FONT><BR></DIV>
<DIV>Hi all,<BR> <BR>I installed WinCap and got my WinDump.exe
running.<BR> <BR>However I wanted to build WinDump.exe from source
.<BR> <BR>I extracted both WDumpSrc_3_9_3.zip and wpcapsrc_3_1.zip into
same folder..<BR> <BR>While building WinDump I run into lot of
errors.<BR> <BR>Few were about missing .h files which I had to point to
in Wpcap source .<BR> <BR>But others are related to lack of declaration
type.<BR> <BR>For instance <BR> <BR>ip6.h(88) : error C2079:
'ip6_src' uses undefined struct 'in6_addr' <BR>Running through entire source I
see 'in6_addr' defined in 'ip6_misc.h'<BR>but I dont find this file
included in ip6.h</DIV>
<DIV>Am I missing out on anything here..<BR> <BR>Cannot attach the build
log file since it is quite huge. Pasted snippets from the build log below
<BR> <BR>Can somebody please help,<BR>Appreciate you help on
this,<BR> <BR>thanks,<BR>Raghav</DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV>/==========================================/</DIV>
<DIV>Compiling...<BR>addrtoname.c<BR>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'<BR>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'<BR>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'<BR>c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\interface.h(113)
: error C2061: syntax error : identifier
'thiszone'<BR>c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\interface.h(113)
: error C2059: syntax error :
';'<BR>c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\netdissect.h(127)
: error C2061: syntax error : identifier
'int32_t'<BR>c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\netdissect.h(149)
: error C2059: syntax error :
'}'<BR>C:\QTV_Builds\WinDump\WinDumpNew\WDumpSrc_3_9_3\tcpdump-3.9.3\addrtoname.c(119)
: warning C4013: 'getnameinfo' undefined; assuming extern returning
int<BR>C:\QTV_Builds\WinDump\WinDumpNew\WDumpSrc_3_9_3\tcpdump-3.9.3\addrtoname.c(136)
: error C2079: 'addr' uses undefined struct
'in6_addr'<BR>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'<BR>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'<BR>C:\QTV_Builds\WinDump\WinDumpNew\WDumpSrc_3_9_3\tcpdump-3.9.3\addrtoname.c(274)
: error C2079: 'addr' uses undefined struct
'in6_addr'<BR>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<BR>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<BR>bpf_dump.c<BR>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'<BR>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'<BR>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'<BR>c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\interface.h(113)
: error C2061: syntax error : identifier
'thiszone'<BR>c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\interface.h(113)
: error C2059: syntax error :
';'<BR>c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\netdissect.h(127)
: error C2061: syntax error : identifier
'int32_t'<BR>c:\qtv_builds\windump\windumpnew\wdumpsrc_3_9_3\tcpdump-3.9.3\netdissect.h(149)
: error C2059: syntax error :
'}'<BR>cpack.c<BR>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'<BR>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'<BR>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'<BR>datalinks.c<BR>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'<BR>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'<BR>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'<BR>dlnames.c<BR>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'<BR>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'<BR>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'</DIV>
<DIV> </DIV>
<P>__________________________________________________<BR>Do You
Yahoo!?<BR>Tired of spam? Yahoo! Mail has the best spam protection around
<BR>http://mail.yahoo.com
<P>
<HR>
<P></P>_______________________________________________<BR>Winpcap-users
mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BLOCKQUOTE></BODY></HTML>