Wireshark-dev: Re: [Wireshark-dev] gcrypt error on windows XP
From: "Anders Broman" <
anders.broman@xxxxxxxxxxxx>
Date: Wed, 6 May 2009 13:42:22 +0200
Title: Making error on windows XP
Hi,
I would try to build Wireshark without any custom stuff first. If that works you'd know that a failure is due to your changes.
Regards
Anders
Hi,
The problem is resolved but I'm not sure it's right or
not. The problem is caused by Windows doesn't have ssize_t. Add
#define
ssize_t long and #define pid_t long in gcrypt.h can stop this nmake
error.
I
continue make, the new problem happened.
0 File(s) copied
xcopy ".\plugins\wimax\wimax.dll"
wireshark-gtk2\plugins\1.0.7CLI /d
0 File(s) copied
xcopy
".\plugins\wimaxasncp\wimaxasncp.dll" wireshark-gtk2\plugins\1.0.7CLI /d
0
File(s) copied
if exist custom-install.bat custom-install
wireshark-gtk2 1.0.7CLI
copy wireshark-gtk2.exe
wireshark-gtk2\wireshark.exe
1
file(s) copied.
if exist wireshark-gtk2.pdb copy wireshark-gtk2.pdb
wireshark-gtk2\wireshark.pdb
1
file(s) copied.
if exist ".\docbook\user-guide.chm" xcopy
".\docbook\user-guide.chm" wireshark-gtk2 /d
wireshark-gtk2\tshark.exe
-G | perl doc\dfilter2pod.pl doc\wireshark-filter.pod.template >
doc\wireshark-filter.pod
After
this, windows jump out an "tshark.exe-Application Error" dialogue window, report
some memory error. Please check the attached screen output.
No matter I choice "OK" or "Cancel", the nmake will continue.
After that, no error anymore. When I run wireshark.exe in wireshark-gtk2
directory. Another "wireshark.exe-Application Error" dialogue windows coming
out.
Do you
know how to resolve this one problem. Thanks.
Br-Patrick
Hi again,
OS is windows XP, wireshark source
code is last version of wireshark-1.0.7.
Checking for required
applications:
cl:
/cygdrive/c/Program Files/Microsoft Visual Studio
9.0/VC/BIN/cl
link:
/cygdrive/c/Program Files/Microsoft Visual Studio
9.0/VC/BIN/link
nmake:
/cygdrive/c/Program Files/Microsoft Visual Studio
9.0/VC/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:\Python26\python.exe:
/cygdrive/c/Python26/python.exe
sed: /usr/bin/sed
unzip:
/usr/bin/unzip
wget:
/usr/bin/wget
I want to added 3 new dissectors,
coding is finished. I used python 2.6 to create c file, python
../../tools/asn2wrs.py -b -e -L -p chlipx1 -c chlipx1.cnf -s
packet-chlipx1-template chlipx1.asn
After that, I copy packet-chlipx1.c
packet-chlipx1.h to /epan/dissectors
During make, some problem met. Anyone
can help to resolve this problem. Thanks.
nmake -f Makefile.nmake all
Output:
packet-chlipx1.c
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(206)
: error C2061: syntax error : identifier
'ssize_t'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(207) :
error C2143: syntax error : missing ')' before
'*'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(207) : error
C2143: syntax error : missing '{' before
'*'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(207) : error
C2059: syntax error :
')'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(209) : error
C2143: syntax error : missing ')' before
'*'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(209) : error
C2143: syntax error : missing '{' before
'*'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(209) : error
C2059: syntax error :
')'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(210) : error
C2373: 'select' : redefinition; different type
modifiers
C:\Program
Files\Microsoft SDKs\Windows\v6.0A\include\winsock2.h(1863) : see declaration
of 'select'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(211) :
error C2143: syntax error : missing ')' before
'*'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(211) : error
C2143: syntax error : missing '{' before
'*'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(211) : error
C2059: syntax error :
')'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(211) : error
C2146: syntax error : missing ')' before identifier
'pid'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(211) : error
C2061: syntax error : identifier
'pid'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(211) : error
C2059: syntax error :
';'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(211) : error
C2059: syntax error :
','
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(211) : error
C2059: syntax error :
')'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(212) : error
C2365: 'accept' : redefinition; previous definition was
'function'
C:\Program
Files\Microsoft SDKs\Windows\v6.0A\include\winsock2.h(1523) : see declaration
of 'accept'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(213) :
error C2365: 'connect' : redefinition; previous definition was
'function'
C:\Program
Files\Microsoft SDKs\Windows\v6.0A\include\winsock2.h(1582) : see declaration
of 'connect'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(225) :
error C2059: syntax error :
'}'
packet-chlipx2.c
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(206)
: error C2061: syntax error : identifier
'ssize_t'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(207) :
error C2143: syntax error : missing ')' before
'*'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(207) : error
C2143: syntax error : missing '{' before
'*'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(207) : error
C2059: syntax error :
')'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(209) : error
C2143: syntax error : missing ')' before
'*'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(209) : error
C2143: syntax error : missing '{' before
'*'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(209) : error
C2059: syntax error :
')'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(210) : error
C2373: 'select' : redefinition; different type
modifiers
C:\Program
Files\Microsoft SDKs\Windows\v6.0A\include\winsock2.h(1863) : see declaration
of 'select'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(211) :
error C2143: syntax error : missing ')' before
'*'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(211) : error
C2143: syntax error : missing '{' before
'*'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(211) : error
C2059: syntax error :
')'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(211) : error
C2146: syntax error : missing ')' before identifier
'pid'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(211) : error
C2061: syntax error : identifier
'pid'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(211) : error
C2059: syntax error :
';'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(211) : error
C2059: syntax error :
','
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(211) : error
C2059: syntax error :
')'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(212) : error
C2365: 'accept' : redefinition; previous definition was
'function'
C:\Program
Files\Microsoft SDKs\Windows\v6.0A\include\winsock2.h(1523) : see declaration
of 'accept'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(213) :
error C2365: 'connect' : redefinition; previous definition was
'function'
C:\Program
Files\Microsoft SDKs\Windows\v6.0A\include\winsock2.h(1582) : see declaration
of 'connect'
C:\wireshark-libs-1.0\gnutls-2.6.3-1\include\gcrypt.h(225) :
error C2059: syntax error : '}'
packet-chlipx3.c
Generating
Code...
Best Regards
Patrick