Wireshark-dev: Re: [Wireshark-dev] gcrypt error on windows XP
From: "Yan, Patrick (NSN - CN/Beijing)" <patrick.yan@xxxxxxx>
Date: Mon, 11 May 2009 15:37:49 +0800
Title: Making error on windows XP
Hi,
Please use gnutls-2.6.6.exe package, do not use 2.6.3 or 2.7.3 version. Then nmake will be
fine, now new build wireshark can work.
Br-Patrick
From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of ext Anders Broman
Sent: Wednesday, May 06, 2009 7:42 PM
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] gcrypt error on windows XPHi,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.RegardsAnders
From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Yan, Patrick (NSN - CN/Beijing)
Sent: den 6 maj 2009 12:50
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] gcrypt error on windows XPHi,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.podAfter 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
From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of ext Yan, Patrick (NSN - CN/Beijing)
Sent: Tuesday, May 05, 2009 1:36 PM
To: Developer support list for Wireshark
Subject: [Wireshark-dev] gcrypt error on windows XPHi 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/wgetI 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.asnAfter 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 allOutput: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
- References:
- Re: [Wireshark-dev] gcrypt error on windows XP
- From: Anders Broman
- Re: [Wireshark-dev] gcrypt error on windows XP
- Prev by Date: Re: [Wireshark-dev] one possible way to speed up filtering
- Next by Date: Re: [Wireshark-dev] [Wireshark-commits] wireshark-win32-libs rev 233: /tags/2009-04-16/
- Previous by thread: Re: [Wireshark-dev] gcrypt error on windows XP
- Next by thread: [Wireshark-dev] How can I use the log file?
- Index(es):