You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Giovanni Gargani <gi...@hexkeep.com> on 2011/10/29 23:54:20 UTC

Re: AW: undefined references to VERSION_MASK and VERSION_1

In a pinch, I succeded in compiling just changing in:
/usr/include/thrift/protocol/TBinaryProtocol.h

  static const int32_t VERSION_MASK = 0xffff0000;
  static const int32_t VERSION_1 = 0x80010000;

to

  static const uint32_t VERSION_MASK = 0xffff0000;
  static const uint32_t VERSION_1 = 0x80010000;

Seeing this bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49896 as
pointed by Matthieu, i assumed the problem is related to an issue in int
overflowing management.
I have not tested it in a any extensive way, just compiled and ran my
code, but maybe it could be an useful clue