Hi,
Looks like you haven’t
got your tool chain set up correctly. Are you using Cygwin grep?
Try nmake –f makefile.nmake
verify_tools
My output:
Checking for required
applications:
cl:
/cygdrive/c/Program/Microsoft Visual Studio/VC98/bin/cl
link:
/cygdrive/c/Program/Microsoft Visual Studio/VC98/bin/link
nmake:
/cygdrive/c/Program/Microsoft Visual Studio/VC98/bin/nmake
bash: /usr/bin/bash
bison: /usr/bin/bison
flex: /usr/bin/flex
env: /usr/bin/env
grep: /usr/bin/grep
/usr/bin/find: /usr/bin/find
perl: /usr/bin/perl
C:/python24/python.exe:
/cygdrive/c/python24/python.exe
sed: /usr/bin/sed
unzip: /usr/bin/unzip
wget: /usr/bin/wget
Regards
Anders
Från:
wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] För
Bob Pultorak
Skickat: den 4 mars 2008 20:15
Till: wireshark-dev@xxxxxxxxxxxxx
Ämne: [Wireshark-dev] Windows
build failing
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
No virus
found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.4/1310 - Release Date: 2008-03-04
08:35