在 ubuntu 上编译 scribe 服务器时出现以下错误。
In file included from store.cpp:27:
scribe_server.h:45: error: conflicting return type specified for ‘virtual scribe::thrift::ResultCode scribeHandler::Log(const std::vector<scribe::thrift::LogEntry, std::allocator<scribe::thrift::LogEntry> >&)’
../src/gen-cpp/scribe.h:18: error: overriding ‘virtual scribe::thrift::ResultCode::type scribe::thrift::scribeIf::Log(const std::vector<scribe::thrift::LogEntry, std::allocator<scribe::thrift::LogEntry> >&)’
store.cpp: In member function ‘virtual bool ThriftFileStore::openInternal(bool, tm*)’
我正在使用带有 thrift 0.7.0 的 scribe 2.2 安装 thrift 时没有错误。
此外,我在一篇文章中读到,在使用旧版本的 thrift 时会遇到此错误。但我正在使用最新版本的节俭。