Wireshark-dev: [Wireshark-dev] gcrypt error on windows XP

From: "Yan, Patrick (NSN - CN/Beijing)" <patrick.yan@xxxxxxx>
Date: Tue, 5 May 2009 13:35:55 +0800
Title: Making error on windows XP
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