Wireshark-dev: [Wireshark-dev] Windows build failing
From: "Bob Pultorak" <pultorak@xxxxxxxxx>
Date: Tue, 4 Mar 2008 14:15:27 -0500
I'm trying to build Wireshark for the first time and am running into the following error:


        cl -DWIN32 -DNULL=0 -D_MT -D_DLL -WX -DHAVE_CONFIG_H /I.. /I../wiretap /
IC:\wireshark-win32-libs\glib\include\glib-2.0  /IC:\wireshark-win32-libs\glib\l
ib\glib-2.0\include /IC:\wireshark-win32-libs\gtk+\include /IC:\wireshark-win32-
libs\gtk+\include\gdk  /IC:\wireshark-win32-libs\gtk+\lib\gtk+\include /IC:\wire
shark-win32-libs\gnutls-1.6.1-1\include /DNOCRYPT  /IC:\wireshark-win32-libs\WPd
pack\WPCAP\LIBPCAP /IC:\wireshark-win32-libs\WPdpack\WPCAP\LIBPCAP\bpf  /IC:\wir
eshark-win32-libs\WPdpack\WPCAP\LIBPCAP\lbl  /IC:\wireshark-win32-libs\WPdpack\i
nclude   /Zm800 -D_U_="" -D_NEED_VAR_IMPORT_ /Zi /W3 /MD /D_CRT_SECURE_NO_DEPREC
ATE /D_CRT_NONSTDC_NO_DEPRECATE /DMSC_VER_REQUIRED=1400  /IC:\wireshark-win32-li
bs\portaudio_v19\include /IC:\wireshark-win32-libs\portaudio_v19\src\common  -DH
HC_DIR  -Fd.\ -c wireshark-tap-register.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

wireshark-tap-register.c
wireshark-tap-register.c(5) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(5) : error C2143: syntax error : missing ';' before ':'

wireshark-tap-register.c(6) : error C2065: 'unknown' : undeclared identifier
wireshark-tap-register.c(6) : error C2146: syntax error : missing ';' before ide
ntifier 'option'
wireshark-tap-register.c(6) : error C2065: 'option' : undeclared identifier
wireshark-tap-register.c(6) : error C2143: syntax error : missing ';' before 'co
nstant'
wireshark-tap-register.c(6) : error C2146: syntax error : missing ';' before ide
ntifier 'ignored'
wireshark-tap-register.c(6) : warning C4013: 'ignored' undefined; assuming exter
n returning int
wireshark-tap-register.c(7) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(7) : error C2143: syntax error : missing ';' before ':'

wireshark-tap-register.c(8) : error C2045: 'Grep' : label redefined
wireshark-tap-register.c(8) : error C2146: syntax error : missing ';' before ide
ntifier 'option'
wireshark-tap-register.c(8) : error C2143: syntax error : missing ';' before 'co
nstant'
wireshark-tap-register.c(8) : error C2146: syntax error : missing ';' before ide
ntifier 'ignored'
wireshark-tap-register.c(9) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(9) : error C2143: syntax error : missing ';' before ':'

wireshark-tap-register.c(10) : error C2045: 'Grep' : label redefined
wireshark-tap-register.c(10) : error C2146: syntax error : missing ';' before id
entifier 'option'
wireshark-tap-register.c(10) : error C2143: syntax error : missing ';' before 'c
onstant'
wireshark-tap-register.c(10) : error C2146: syntax error : missing ';' before id
entifier 'ignored'
wireshark-tap-register.c(11) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(11) : error C2143: syntax error : missing ';' before ':
'
wireshark-tap-register.c(12) : error C2045: 'Grep' : label redefined
wireshark-tap-register.c(12) : error C2146: syntax error : missing ';' before id
entifier 'option'
wireshark-tap-register.c(12) : error C2143: syntax error : missing ';' before 'c
onstant'
wireshark-tap-register.c(12) : error C2146: syntax error : missing ';' before id
entifier 'ignored'
wireshark-tap-register.c(13) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(13) : error C2143: syntax error : missing ';' before ':
'
wireshark-tap-register.c(14) : error C2045: 'Grep' : label redefined
wireshark-tap-register.c(14) : error C2146: syntax error : missing ';' before id
entifier 'option'
wireshark-tap-register.c(14) : error C2143: syntax error : missing ';' before 'c
onstant'
wireshark-tap-register.c(14) : error C2146: syntax error : missing ';' before id
entifier 'ignored'
wireshark-tap-register.c(15) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(15) : error C2143: syntax error : missing ';' before ':
'
wireshark-tap-register.c(16) : error C2045: 'Grep' : label redefined
wireshark-tap-register.c(16) : error C2146: syntax error : missing ';' before id
entifier 'option'
wireshark-tap-register.c(16) : error C2143: syntax error : missing ';' before 'c
onstant'
wireshark-tap-register.c(16) : error C2146: syntax error : missing ';' before id
entifier 'ignored'
wireshark-tap-register.c(17) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(17) : error C2143: syntax error : missing ';' before ':
'
wireshark-tap-register.c(18) : error C2045: 'Grep' : label redefined
wireshark-tap-register.c(18) : error C2146: syntax error : missing ';' before id
entifier 'option'
wireshark-tap-register.c(18) : error C2143: syntax error : missing ';' before 'c
onstant'
wireshark-tap-register.c(18) : error C2146: syntax error : missing ';' before id
entifier 'ignored'
wireshark-tap-register.c(19) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(19) : error C2143: syntax error : missing ';' before ':
'
wireshark-tap-register.c(20) : error C2045: 'Grep' : label redefined
wireshark-tap-register.c(20) : error C2146: syntax error : missing ';' before id
entifier 'option'
wireshark-tap-register.c(20) : error C2143: syntax error : missing ';' before 'c
onstant'
wireshark-tap-register.c(20) : error C2146: syntax error : missing ';' before id
entifier 'ignored'
wireshark-tap-register.c(21) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(21) : error C2143: syntax error : missing ';' before ':
'
wireshark-tap-register.c(22) : error C2045: 'Grep' : label redefined
wireshark-tap-register.c(22) : error C2146: syntax error : missing ';' before id
entifier 'option'
wireshark-tap-register.c(22) : error C2143: syntax error : missing ';' before 'c
onstant'
wireshark-tap-register.c(22) : error C2146: syntax error : missing ';' before id
entifier 'ignored'
wireshark-tap-register.c(23) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(23) : error C2143: syntax error : missing ';' before ':
'
wireshark-tap-register.c(24) : error C2045: 'Grep' : label redefined
wireshark-tap-register.c(24) : error C2146: syntax error : missing ';' before id
entifier 'option'
wireshark-tap-register.c(24) : error C2143: syntax error : missing ';' before 'c
onstant'
wireshark-tap-register.c(24) : error C2146: syntax error : missing ';' before id
entifier 'ignored'
wireshark-tap-register.c(25) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(25) : error C2143: syntax error : missing ';' before ':
'
wireshark-tap-register.c(26) : error C2045: 'Grep' : label redefined
wireshark-tap-register.c(26) : error C2146: syntax error : missing ';' before id
entifier 'option'
wireshark-tap-register.c(26) : error C2143: syntax error : missing ';' before 'c
onstant'
wireshark-tap-register.c(26) : error C2146: syntax error : missing ';' before id
entifier 'ignored'
wireshark-tap-register.c(27) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(27) : error C2143: syntax error : missing ';' before ':
'
wireshark-tap-register.c(28) : error C2045: 'Grep' : label redefined
wireshark-tap-register.c(28) : error C2146: syntax error : missing ';' before id
entifier 'option'
wireshark-tap-register.c(28) : error C2143: syntax error : missing ';' before 'c
onstant'
wireshark-tap-register.c(28) : error C2146: syntax error : missing ';' before id
entifier 'ignored'
wireshark-tap-register.c(29) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(29) : error C2143: syntax error : missing ';' before ':
'
wireshark-tap-register.c(30) : error C2045: 'Grep' : label redefined
wireshark-tap-register.c(30) : error C2146: syntax error : missing ';' before id
entifier 'option'
wireshark-tap-register.c(30) : error C2143: syntax error : missing ';' before 'c
onstant'
wireshark-tap-register.c(30) : error C2146: syntax error : missing ';' before id
entifier 'ignored'
wireshark-tap-register.c(31) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(31) : error C2143: syntax error : missing ';' before ':
'
wireshark-tap-register.c(32) : error C2045: 'Grep' : label redefined
wireshark-tap-register.c(32) : error C2146: syntax error : missing ';' before id
entifier 'option'
wireshark-tap-register.c(32) : error C2143: syntax error : missing ';' before 'c
onstant'
wireshark-tap-register.c(32) : error C2146: syntax error : missing ';' before id
entifier 'ignored'
wireshark-tap-register.c(33) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(33) : error C2143: syntax error : missing ';' before ':
'
wireshark-tap-register.c(34) : error C2045: 'Grep' : label redefined
wireshark-tap-register.c(34) : error C2146: syntax error : missing ';' before id
entifier 'option'
wireshark-tap-register.c(34) : error C2143: syntax error : missing ';' before 'c
onstant'
wireshark-tap-register.c(34) : error C2146: syntax error : missing ';' before id
entifier 'ignored'
wireshark-tap-register.c(35) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(35) : error C2143: syntax error : missing ';' before ':
'
wireshark-tap-register.c(36) : error C2045: 'Grep' : label redefined
wireshark-tap-register.c(36) : error C2146: syntax error : missing ';' before id
entifier 'option'
wireshark-tap-register.c(36) : error C2143: syntax error : missing ';' before 'c
onstant'
wireshark-tap-register.c(36) : error C2146: syntax error : missing ';' before id
entifier 'ignored'
wireshark-tap-register.c(37) : error C2182: 'Grep' : illegal use of type 'void'
wireshark-tap-register.c(37) : error C2143: syntax error : missing ';' before ':
'
wireshark-tap-register.c(38) : error C2045: 'Grep' : label redefined
wireshark-tap-register.c(38) : error C2146: syntax error : missing ';' before id
entifier 'option'
wireshark-tap-register.c(38) : fatal error C1003: error count exceeds 100; stopp
ing compilation
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
l.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
make.exe"' : return code '0x2'
Stop.

My wireshark-tap-register.c looks like this:

/* Do not modify this file.  */
/* It is created automatically by the Makefile.  */
#include "register.h"
void register_all_tap_listeners(void) {
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
  { extern void Grep: unknown option '-v' ignored (void);
    Grep: unknown option '-v' ignored ();}
}


I have compiled ethereal/wireshark in Linux without a problem, all I'm trying to do is compile my custom disector in windows.....

Thanks for your input.

Bob