Ethereal-dev: Re: [Ethereal-dev] Error Compiling 10.12 for Win32

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Wed, 03 Aug 2005 23:47:23 +0200
Ross Carlson wrote:

Encountered the following error when compiling 0.10.12 on Win32 today:

capture-wpcap.c

capture-wpcap.c(81) : warning C4030: first formal parameter list longer than the second list
capture-wpcap.c(81) : warning C4028: formal parameter 2 different from 
declaration
capture-wpcap.c(81) : warning C4028: formal parameter 3 different from 
declaration
capture-wpcap.c(428) : error C2084: function 'int __cdecl 
pcap_dispatch(struct pcap *,int ,void (__cdecl *)(unsigned char 
*,const struct pcap_pkthdr *,const uns
igned char *),unsigned char *)' already has a body

capture-wpcap.c(428) : warning C4028: formal parameter 2 different from declaration
capture-wpcap.c(428) : warning C4028: formal parameter 3 different 
from declaration
capture-wpcap.c(428) : warning C4029: declared formal parameter list 
different from definition
capture-wpcap.c(430) : warning C4047: 'function' : 'int ' differs in 
levels of indirection from 'struct pcap_pkthdr ** '
capture-wpcap.c(430) : warning C4024: 'p_pcap_dispatch' : different 
types for formal and actual parameter 2
capture-wpcap.c(430) : warning C4047: 'function' : 'void (__cdecl 
*)(unsigned char *,const struct pcap_pkthdr *,const unsigned char *)' 
differs in levels of indirection from 'const unsigned char ** '
capture-wpcap.c(430) : warning C4024: 'p_pcap_dispatch' : different 
types for formal and actual parameter 3
capture-wpcap.c(430) : error C2198: 'p_pcap_dispatch' : too few actual 
parameters
NMAKE : fatal error U1077: 'cl' : return code '0x2'

Which WinPcap *developer package* are you using? Current (and recommended) is version 3.1 beta 4.
Regards, ULFL