Wireshark-dev: Re: [Wireshark-dev] Compilation error with Wireshark source code in Windows 7 +
From: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
Date: Wed, 6 Aug 2014 11:09:53 +0100
On 6 August 2014 08:10, <darkjames-ws@xxxxxxxxxxxx> wrote:
Hi,

On Tue, Aug 05, 2014 at 08:08:51PM +0530, Bharath Gandhi wrote:
> ws_mempbrk_sse42.c
> ws_mempbrk_sse42.c(50) : error C2061: syntax error : identifier
> '___m128i_shift_
> right'
> ws_mempbrk_sse42.c(50) : error C2059: syntax error : ';'
> ws_mempbrk_sse42.c(50) : error C3409: empty attribute block is not allowed
> ws_mempbrk_sse42.c(50) : error C2513: '/*global*/ ' : no variable declared
> befor
> e '='
> ws_mempbrk_sse42.c(59) : error C2065: '___m128i_shift_right' : undeclared
> identi
> fier
> NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio
> 10.0
> \VC\BIN\cl.EXE"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio
> 10.0
> \VC\BIN\nmake.exe"' : return code '0x2'
> Stop.
>
>
> Please help me to resolve this issue.

I'm just guessing but try to replace type of ___m128i_shift_right to gint8, like:

 49 static const gint8 ___m128i_shift_right[31] =

<stdint.h> is already included for windows, so it should not help, but please try it.


Unfortunately all the buildbots have been switched over to VS 2013 so there is no independent verification of VS2010 builds.  However, VS2010 was used on the buildbots when the change to add that code was merged so it did work at one time.

I've just cleaned my build and built with VS2010 Pro (off master) and it all built successfully, so it looks as though the issue is in your environment.

Is your source tree modified? If so please try to compile a plain unmodified version first.

--
Graham Bloice