kungf opened a new issue #1234: URL: https://github.com/apache/incubator-brpc/issues/1234
**Describe the bug (描述bug)** > criptor::message_type() const' src/mcpack2pb/generator.o: In function `mcpack2pb::McpackToProtobuf::Generate(google::protobuf::FileDescriptor const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::compiler::GeneratorContext*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const': /usr/local/include/google/protobuf/descriptor.h:2159: undefined reference to `google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)' /usr/local/include/google/protobuf/descriptor.h:2159: undefined reference to `google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)' /usr/local/include/google/protobuf/descriptor.h:2159: undefined reference to `google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)' /usr/local/include/google/protobuf/descriptor.h:2159: undefined reference to `google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*)' src/mcpack2pb/generator.o: In function `mcpack2pb::McpackToProtobuf::Generate(google::protobuf::FileDescriptor const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, google::protobuf::compiler::GeneratorContext*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) const': /home/wangyang5/github/incubator-brpc/src/mcpack2pb/generator.cpp:1174: undefined reference to `google::protobuf::FieldDescriptor::enum_type() const' **To Reproduce (复现方法)** **Expected behavior (期望行为)** **Versions (各种版本)** OS: Ubuntu 18.04.2 LTS Compiler: cmake version 3.18.2 gcc version 9.3.0 (Ubuntu 9.3.0-11ubuntu0~18.04.1) brpc: libprotoc 3.12.2 protobuf: libprotobuf-dev/bionic,now 3.0.0-9.1ubuntu1 amd64 [installed] libprotobuf-lite10/bionic,now 3.0.0-9.1ubuntu1 amd64 [installed,automatic] libprotobuf10/bionic,now 3.0.0-9.1ubuntu1 amd64 [installed,automatic] protobuf-compiler/bionic,now 3.0.0-9.1ubuntu1 amd64 [installed] **Additional context/screenshots (更多上下文/截图)** ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
