Wireshark-dev: [Wireshark-dev] Build wireshark on windows fails, linux works
From: Marcel Sicking <Marcel.Sicking@xxxxxxxxxxx>
Date: Thu, 25 Mar 2010 14:14:34 +0100

Dear all,

I have a problem building wireshark with windows after patching a dissector (packet-rsl.c).

On linux building works.

Here the printout of nmake:

 

    cl -DWIN32 -DNULL=0 -D_MT -D_DLL -WX -DHAVE_CONFIG_H /I. /I.. /I../.. /IC:\wireshark-win32-libs\gtk2\include\glib-2.0  /IC:\wireshark-win32-libs\gtk2\lib\glib-2.0\include  /IC:\wireshark-win32-libs\zlib123\include   /IC:\wireshark-win32-libs\gnutls-2.8.5-4.12-win32ws\include /DNOCRYPT /DIMPORT_LIGNUTLSDLL   /IC:\wireshark-win32-libs\kfw-3-2-2-i386-ws-vc6\include  /IC:\wireshark-win32-libs\GeoIP-1.4.6-win32ws\libGeoIP  /IC:\wireshark-win32-libs\WPdpack\include -D_U_="" /Zi /W3 /MD /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DWIN32_LEAN_AND_MEAN /DMSC_VER_REQUIRED=1500 /D_BIND_TO_CURRENT_CRT_VERSION=1 /MP -Fd.\ -c packet-rsl.c

packet-rsl.c

packet-rsl.c(650) : error C2059: Syntaxfehler: '.'

packet-rsl.c(718) : error C2059: Syntaxfehler: ','

 

Lines are:

 

static const struct tlv_definition rsl_att_tlvdef = {

    .def = {                                                                                        #650

        [RSL_IE_CH_NO]            = { TLV_TYPE_TV, 0 },

        [RSL_IE_LINK_ID]        = { TLV_TYPE_TV, 0 },

        [RSL_IE_ACT_TYPE]        = { TLV_TYPE_TV, 0 },

      

        [RSL_IE_IPAC_CONN_ID]        = { TLV_TYPE_FIXED, 2 },

        [RSL_IE_IPAC_RTP_PAYLOAD2]    = { TLV_TYPE_TV, 0 },

    },                                                                                                            #718

};

 

Verifying the tools seems ok:

 

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

    mt: /cygdrive/c/Program Files/Microsoft SDKs/Windows/v6.0A/bin/mt

    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: /cygdrive/c/strawberry/perl/bin/perl

    C:\Python26\python.exe: /cygdrive/c/Python26/python.exe

    sed: /usr/bin/sed

    unzip: /usr/bin/unzip

    wget: /usr/bin/wget

 

Before patching the file build was ok.

Can somebody help me?

Thanks a lot.

 

Regards,

Marcel Sicking

 

 

 




______________________________
Marcel Sicking - Core Network Engineer

Tel: +49 (211) 5423 5010
Mobil: +49 (1577) 540 5010
Fax: +49 (211) 5423 5099
E-Mail: Marcel.Sicking@xxxxxxxxxxx
Web: http://www.onephone.de

OnePhone Deutschland GmbH
Düsseldorfer Str.16
40699 Erkrath, Deutschland

Geschäftsführer: Marc Mauermann
Sitz der Gesellschaft: Erkrath, Düsseldorfer Str.16, D-40699 Erkrath
HRB 21674 Wuppertal

Think green! Please consider the environment before printing this email.