Wireshark-dev: [Wireshark-dev] Compilation error in ws_mempbrk_sse42.c
Date Prev · Date Next · Thread Prev · Thread Next
From: Stephen Fisher <stephenfisher@xxxxxxxxxxxxxxx>
Date: Mon, 3 Nov 2014 16:14:15 -0700
I haven't done Wireshark development in a while, so I'm not familiar 
with some of the new code, such as wsutil/ws_mempbrk_sse42.c.  On 
FreeBSD 10.0-RELEASE on amd64 (with clang as the new default compiler), 
I'm getting this error on my initial build:

Making all in wsutil
gmake[2]: Entering directory '/usr/local/src/wireshark/wsutil'
  CC       libwsutil_sse42_la-ws_mempbrk_sse42.lo
ws_mempbrk_sse42.c:49:14: error: unknown type name 'int8_t'; did you mean
      '__int8_t'?
static const int8_t ___m128i_shift_right[31] =
             ^~~~~~
             __int8_t
/usr/include/x86/_types.h:51:22: note: '__int8_t' declared here
typedef signed char             __int8_t;
                                ^

Is this code meant only for Windows?  Its using a (presumably still 
non-standard in Wireshark) int8_t as a type.