Wireshark-dev: Re: [Wireshark-dev] Build wireshark on windows fails, linux works
From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Thu, 25 Mar 2010 16:15:10 +0100
Hi,

If I'm correct these constructs are C99 only, which is not supported in
this compilation.

Thanks,
Jaap

On Thu, 25 Mar 2010 14:14:34 +0100, Marcel Sicking
<Marcel.Sicking@xxxxxxxxxxx> wrote:
> 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-libsgtk2includeglib-2.0
> /IC:wireshark-win32-libsgtk2libglib-2.0include
> /IC:wireshark-win32-libszlib123include
> /IC:wireshark-win32-libsgnutls-2.8.5-4.12-win32wsinclude /DNOCRYPT
> /DIMPORT_LIGNUTLSDLL
/IC:wireshark-win32-libskfw-3-2-2-i386-ws-vc6include
> /IC:wireshark-win32-libsGeoIP-1.4.6-win32wslibGeoIP
> /IC:wireshark-win32-libsWPdpackinclude -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:Python26python.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