tcpdump mailing list archives

Re: pcap 3.0.4 not working


From: "Loris Degioanni" <loris () netgroup-serv polito it>
Date: Tue, 8 Apr 2003 10:11:58 +0200

You need a more recent SDK. Download it from
www.microsoft.com/msdownload/platformsdk/sdkupdate/.

loris


The VC++ error messages that I'm getting are:



--------------------Configuration: libpcap - Win32
Debug--------------------
Compiling...
bpf_dump.c
bpf_filter.c
c:\echogent\winpcap304\winpcap\wpcap\libpcap\bpf\net\bpf_filter.c(272) :
warning C4018: '>=' : signed/unsigned mismatch
c:\echogent\winpcap304\winpcap\wpcap\libpcap\bpf\net\bpf_filter.c(331) :
warning C4018: '>=' : signed/unsigned mismatch
c:\echogent\winpcap304\winpcap\wpcap\libpcap\bpf\net\bpf_filter.c(348) :
warning C4018: '>=' : signed/unsigned mismatch
c:\echogent\winpcap304\winpcap\wpcap\libpcap\bpf\net\bpf_filter.c(392) :
warning C4018: '>' : signed/unsigned mismatch
c:\echogent\winpcap304\winpcap\wpcap\libpcap\bpf\net\bpf_filter.c(396) :
warning C4018: '>=' : signed/unsigned mismatch
c:\echogent\winpcap304\winpcap\wpcap\libpcap\bpf\net\bpf_filter.c(400) :
warning C4018: '==' : signed/unsigned mismatch
c:\echogent\winpcap304\winpcap\wpcap\libpcap\bpf\net\bpf_filter.c(490) :
warning C4146: unary minus operator applied to unsigned type, result still
unsigned
c:\echogent\winpcap304\winpcap\wpcap\libpcap\bpf\net\bpf_filter.c(533) :
warning C4018: '>=' : signed/unsigned mismatch
bpf_image.c
etherent.c
fad-win32.c
C:\Echogent\Winpcap304\winpcap\wpcap\libpcap\fad-win32.c(67) : warning
C4013: 'dup_sockaddr' undefined; assuming extern returning int
C:\Echogent\Winpcap304\winpcap\wpcap\libpcap\fad-win32.c(155) : warning
C4013: 'add_or_find_if' undefined; assuming extern returning int
C:\Echogent\Winpcap304\winpcap\wpcap\libpcap\fad-win32.c(148) : warning
C4101: 'netmask' : unreferenced local variable
C:\Echogent\Winpcap304\winpcap\wpcap\libpcap\fad-win32.c(148) : warning
C4101: 'addr' : unreferenced local variable
C:\Echogent\Winpcap304\winpcap\wpcap\libpcap\fad-win32.c(239) : warning
C4013: 'pcap_win32strerror' undefined; assuming extern returning int
ffs.c
gencode.c
c:\echogent\winpcap304\winpcap\wpcap\libpcap\gencode.c(230) : warning
C4018:
'>' : signed/unsigned mismatch
c:\echogent\winpcap304\winpcap\wpcap\libpcap\gencode.c(3580) : error
C2079:
'mask128' uses undefined struct 'in6_addr'
c:\echogent\winpcap304\winpcap\wpcap\libpcap\gencode.c(3707) : error
C2037:
left of 'ai_next' specifies undefined struct/union 'addrinfo'
c:\echogent\winpcap304\winpcap\wpcap\libpcap\gencode.c(3708) : error
C2037:
left of 'ai_family' specifies undefined struct/union 'addrinfo'
c:\echogent\winpcap304\winpcap\wpcap\libpcap\gencode.c(3714) : error
C2037:
left of 'ai_addr' specifies undefined struct/union 'addrinfo'
c:\echogent\winpcap304\winpcap\wpcap\libpcap\gencode.c(3723) : error
C2037:
left of 'ai_addr' specifies undefined struct/union 'addrinfo'
c:\echogent\winpcap304\winpcap\wpcap\libpcap\gencode.c(3724) : warning
C4133: 'function' : incompatible types - from 'struct in_addr6 *' to
'struct
in6_addr *'
c:\echogent\winpcap304\winpcap\wpcap\libpcap\gencode.c(3725) : warning
C4133: 'function' : incompatible types - from 'int *' to 'struct in6_addr
*'
c:\echogent\winpcap304\winpcap\wpcap\libpcap\gencode.c(3734) : warning
C4013: 'freeaddrinfo' undefined; assuming extern returning int
c:\echogent\winpcap304\winpcap\wpcap\libpcap\gencode.c(3967) : error
C2079:
'mask' uses undefined struct 'in6_addr'
c:\echogent\winpcap304\winpcap\wpcap\libpcap\gencode.c(3977) : error
C2037:
left of 'ai_next' specifies undefined struct/union 'addrinfo'
c:\echogent\winpcap304\winpcap\wpcap\libpcap\gencode.c(3979) : error
C2037:
left of 'ai_addr' specifies undefined struct/union 'addrinfo'
c:\echogent\winpcap304\winpcap\wpcap\libpcap\gencode.c(3986) : error
C2224:
left of '.s6_addr' must have struct/union type
c:\echogent\winpcap304\winpcap\wpcap\libpcap\gencode.c(4006) : warning
C4133: 'function' : incompatible types - from 'int *' to 'struct in6_addr
*'
getnetbynm.c
getnetent.c
getservent.c
grammar.c
inet.c
inet_aton.c
inet_net.c
inet_pton.c
c:\echogent\winpcap304\winpcap\wpcap\libpcap\win32\src\inet_pton.c(68) :
warning C4013: 'inet_aton' undefined; assuming extern returning int
nametoaddr.c
C:\Echogent\Winpcap304\winpcap\wpcap\libpcap\nametoaddr.c(121) : error
C2079: 'hints' uses undefined struct 'addrinfo'
C:\Echogent\Winpcap304\winpcap\wpcap\libpcap\nametoaddr.c(125) : error
C2224: left of '.ai_family' must have struct/union type
C:\Echogent\Winpcap304\winpcap\wpcap\libpcap\nametoaddr.c(126) : error
C2224: left of '.ai_socktype' must have struct/union type
C:\Echogent\Winpcap304\winpcap\wpcap\libpcap\nametoaddr.c(127) : warning
C4013: 'getaddrinfo' undefined; assuming extern returning int
optimize.c
C:\Echogent\Winpcap304\winpcap\wpcap\libpcap\optimize.c(832) : warning
C4018: '>' : signed/unsigned mismatch
C:\Echogent\Winpcap304\winpcap\wpcap\libpcap\optimize.c(836) : warning
C4018: '>=' : signed/unsigned mismatch
C:\Echogent\Winpcap304\winpcap\wpcap\libpcap\optimize.c(1264) : warning
C4013: 'ffs' undefined; assuming extern returning int
C:\Echogent\Winpcap304\winpcap\wpcap\libpcap\optimize.c(1955) : warning
C4018: '<' : signed/unsigned mismatch
C:\Echogent\Winpcap304\winpcap\wpcap\libpcap\optimize.c(1980) : warning
C4018: '==' : signed/unsigned mismatch
Pcap-win32.c
pcap.c
savefile.c
C:\Echogent\Winpcap304\winpcap\wpcap\libpcap\savefile.c(542) : warning
C4018: '>' : signed/unsigned mismatch
C:\Echogent\Winpcap304\winpcap\wpcap\libpcap\savefile.c(558) : warning
C4018: '<' : signed/unsigned mismatch
scanner.c
../libpcap/scanner.l(288) : error C2079: 'hints' uses undefined struct
'addrinfo'
../libpcap/scanner.l(290) : error C2224: left of '.ai_family' must have
struct/union type
../libpcap/scanner.l(291) : error C2224: left of '.ai_flags' must have
struct/union type
../libpcap/scanner.l(292) : warning C4013: 'getaddrinfo' undefined;
assuming
extern returning int
Error executing cl.exe.















From: hfsui <hfsui () sina com>
To: tcpdump-workers () tcpdump org
Subject: RE: [tcpdump-workers] pcap 3.0.4 not working Date: Sun, 06 Apr
2003 09:00:29 +0800

Can you present the error in more detail?


----- Original Message -----
From:"Terry Bogard" <terrybogard4 () hotmail com>
To:tcpdump-workers () tcpdump org
Subject:[tcpdump-workers] pcap 3.0.4 not working
Date:Sun, 6 Apr 2003 01:42:46 +0800
 >Hi all,
 >      I am trying to use Winpcap 3.0.4 with Windows.  I get errors
while
 >compiling it.  I've tried it on a Windows 98 machine and a Win 2000
machine.
 >  I get 15 errors & 7 warnings when I build the libpcap project.
Does
 >anyone know why this is happening.  i'm assuming that the winpcap
release is
 >free of compile/build bugs and that it is something else.  What could
it
be?
 >  I have the DDK, the SDK and Visual C++.  THat's what I'm compiling
them
 >with.  Can anyone help me figure this out.
 >
 >
 >Thanks.
 >
 >_________________________________________________________________
 >MSN 8 with e-mail virus protection service: 2 months FREE*
 >http://join.msn.com/?page=features/virus
 >
 >-
 >This is the TCPDUMP workers list. It is archived at
 >http://www.tcpdump.org/lists/workers/index.html
 >To unsubscribe use
mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe
 >
 >

______________________________________

===================================================================
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use
mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use
mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe

-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe


Current thread: