While I installing fbthrift of fbcunn, I've got the following error.
===================
In file included from gen-cpp2/Sasl_types.tcc:13:0,
from gen-cpp2/Sasl_types.cpp:9:
../../../thrift/lib/cpp2/protocol/BinaryProtocol.h:26:14: error: expected constructor, destructor, or type conversion before ‘(’ token
DECLARE_int32(thrift_cpp2_protocol_reader_string_limit);
^
../../../thrift/lib/cpp2/protocol/BinaryProtocol.h:27:14: error: expected constructor, destructor, or type conversion before ‘(’ token
DECLARE_int32(thrift_cpp2_protocol_reader_container_limit);
^
../../../thrift/lib/cpp2/protocol/BinaryProtocol.h: In constructor ‘apache::thrift::BinaryProtocolReader::BinaryProtocolReader()’:
../../../thrift/lib/cpp2/protocol/BinaryProtocol.h:169:21: error: ‘FLAGS_thrift_cpp2_protocol_reader_string_limit’ was not declared in this scope
: string_limit_(FLAGS_thrift_cpp2_protocol_reader_string_limit)
^
../../../thrift/lib/cpp2/protocol/BinaryProtocol.h:170:24: error: ‘FLAGS_thrift_cpp2_protocol_reader_container_limit’ was not declared in this scope
, container_limit_(FLAGS_thrift_cpp2_protocol_reader_container_limit)
^
In file included from gen-cpp2/Sasl_types.tcc:14:0,
from gen-cpp2/Sasl_types.cpp:9:
../../../thrift/lib/cpp2/protocol/CompactProtocol.h: At global scope:
../../../thrift/lib/cpp2/protocol/CompactProtocol.h:28:14: error: expected constructor, destructor, or type conversion before ‘(’ token
DECLARE_int32(thrift_cpp2_protocol_reader_string_limit);
^
../../../thrift/lib/cpp2/protocol/CompactProtocol.h:29:14: error: expected constructor, destructor, or type conversion before ‘(’ token
DECLARE_int32(thrift_cpp2_protocol_reader_container_limit);
^
../../../thrift/lib/cpp2/protocol/CompactProtocol.h: In constructor ‘apache::thrift::CompactProtocolReader::CompactProtocolReader()’:
../../../thrift/lib/cpp2/protocol/CompactProtocol.h:237:21: error: ‘FLAGS_thrift_cpp2_protocol_reader_string_limit’ was not declared in this scope
: string_limit_(FLAGS_thrift_cpp2_protocol_reader_string_limit)
^
../../../thrift/lib/cpp2/protocol/CompactProtocol.h:238:24: error: ‘FLAGS_thrift_cpp2_protocol_reader_container_limit’ was not declared in this scope
, container_limit_(FLAGS_thrift_cpp2_protocol_reader_container_limit)
^
make[5]: *** [gen-cpp2/libsaslstubs_a-Sasl_types.o] Error 1
make[5]: Leaving directory `/tmp/fblualib-build.B07p3w/fbthrift/thrift/lib/cpp2'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/tmp/fblualib-build.B07p3w/fbthrift/thrift/lib/cpp2'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/fblualib-build.B07p3w/fbthrift/thrift/lib/cpp2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/fblualib-build.B07p3w/fbthrift/thrift/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/fblualib-build.B07p3w/fbthrift/thrift'
make: *** [all] Error 2
=================================
Anyone can help for me?
Thanks.