Lowpower opened a new issue #1372:
URL: https://github.com/apache/incubator-brpc/issues/1372


   **Describe the bug (描述bug)**
   [ 95%] Linking CXX executable ../output/bin/protoc-gen-mcpack
   CMakeFiles/protoc-gen-mcpack.dir/mcpack2pb/generator.cpp.o: In function 
`google::protobuf::internal::StringTypeTraits::Get(int, 
google::protobuf::internal::ExtensionSet const&, std::string const&)':
   /usr/local/include/google/protobuf/extension_set.h:1077: undefined reference 
to `google::protobuf::internal::ExtensionSet::GetString(int, std::string 
const&) const'
   CMakeFiles/protoc-gen-mcpack.dir/mcpack2pb/generator.cpp.o: In function 
`google::protobuf::io::Printer::PrintInternal(std::map<std::string, 
std::string, std::less<std::string>, std::allocator<std::pair<std::string 
const, std::string> > >*, char const*)':
   /usr/local/include/google/protobuf/io/printer.h:304: undefined reference to 
`google::protobuf::io::Printer::Print(std::map<std::string, std::string, 
std::less<std::string>, std::allocator<std::pair<std::string const, 
std::string> > > const&, char const*)'
   /usr/local/include/google/protobuf/io/printer.h:304: undefined reference to 
`google::protobuf::io::Printer::Print(std::map<std::string, std::string, 
std::less<std::string>, std::allocator<std::pair<std::string const, 
std::string> > > const&, char const*)'
   /usr/local/include/google/protobuf/io/printer.h:304: undefined reference to 
`google::protobuf::io::Printer::Print(std::map<std::string, std::string, 
std::less<std::string>, std::allocator<std::pair<std::string const, 
std::string> > > const&, char const*)'
   /usr/local/include/google/protobuf/io/printer.h:304: undefined reference to 
`google::protobuf::io::Printer::Print(std::map<std::string, std::string, 
std::less<std::string>, std::allocator<std::pair<std::string const, 
std::string> > > const&, char const*)'
   /usr/local/include/google/protobuf/io/printer.h:304: undefined reference to 
`google::protobuf::io::Printer::Print(std::map<std::string, std::string, 
std::less<std::string>, std::allocator<std::pair<std::string const, 
std::string> > > const&, char const*)'
   
CMakeFiles/protoc-gen-mcpack.dir/mcpack2pb/generator.cpp.o:/usr/local/include/google/protobuf/io/printer.h:304:
 more undefined references to 
`google::protobuf::io::Printer::Print(std::map<std::string, std::string, 
std::less<std::string>, std::allocator<std::pair<std::string const, 
std::string> > > const&, char const*)' follow
   
CMakeFiles/protoc-gen-mcpack.dir/mcpack2pb/generator.cpp.o:(.data.rel.ro._ZTVN9mcpack2pb16McpackToProtobufE[_ZTVN9mcpack2pb16McpackToProtobufE]+0x28):
 undefined reference to 
`google::protobuf::compiler::CodeGenerator::GenerateAll(std::vector<google::protobuf::FileDescriptor
 const*, std::allocator<google::protobuf::FileDescriptor const*> > const&, 
std::string const&, google::protobuf::compiler::GeneratorContext*, 
std::string*) const'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::Descriptor::DebugString() const'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::internal::ArenaStringPtr::Set(google::protobuf::internal::ArenaStringPtr::EmptyDefault,
 std::string const&, google::protobuf::Arena*)'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::Message::GetTypeName() const'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::internal::InlineGreedyStringParser(std::string*, char 
const*, google::protobuf::internal::ParseContext*)'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::io::EpsCopyOutputStream::WriteStringMaybeAliasedOutline(unsigned
 int, std::string const&, unsigned char*)'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::EnumDescriptor::FindValueByName(std::string const&) const'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::ServiceDescriptor::FindMethodByName(std::string const&) 
const'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::internal::ArenaStringPtr::Set(google::protobuf::internal::ArenaStringPtr::EmptyDefault,
 std::string&&, google::protobuf::Arena*)'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::MessageLite::SerializeToString(std::string*) const'
   ../output/lib/libbrpc.so: undefined reference to 
`leveldb::DB::Open(leveldb::Options const&, std::string const&, leveldb::DB**)'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::SetLogHandler(void (*)(google::protobuf::LogLevel, char 
const*, int, std::string const&))'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::Reflection::GetRepeatedStringReference(google::protobuf::Message
 const&, google::protobuf::FieldDescriptor const*, int, std::string*) const'
   ../output/lib/libbrpc.so: undefined reference to 
`google::SetCommandLineOption(char const*, char const*)'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::Message::ShortDebugString() const'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::MessageLite::ParseFromString(std::string const&)'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::Reflection::GetString(google::protobuf::Message const&, 
google::protobuf::FieldDescriptor const*) const'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::Reflection::SetString(google::protobuf::Message*, 
google::protobuf::FieldDescriptor const*, std::string) const'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::Reflection::GetStringReference(google::protobuf::Message 
const&, google::protobuf::FieldDescriptor const*, std::string*) const'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::internal::ArenaStringPtr::Mutable(google::protobuf::internal::ArenaStringPtr::EmptyDefault,
 google::protobuf::Arena*)'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::ServiceDescriptor::DebugString() const'
   ../output/lib/libbrpc.so: undefined reference to 
`google::GetCommandLineOption(char const*, std::string*)'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::Reflection::AddString(google::protobuf::Message*, 
google::protobuf::FieldDescriptor const*, std::string) const'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::internal::fixed_address_empty_string'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::Descriptor::FindFieldByName(std::string const&) const'
   ../output/lib/libbrpc.so: undefined reference to 
`leveldb::Status::ToString() const'
   ../output/lib/libbrpc.so: undefined reference to 
`google::RegisterFlagValidator(std::string const*, bool (*)(char const*, 
std::string const&))'
   ../output/lib/libbrpc.so: undefined reference to 
`google::FlagRegisterer::FlagRegisterer<std::string>(char const*, char const*, 
char const*, std::string*, std::string*)'
   ../output/lib/libbrpc.so: undefined reference to 
`google::protobuf::Message::InitializationErrorString() const'
   
   **To Reproduce (复现方法)**
   
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS:centos7
   Compiler:gcc10.1
   brpc:
   protobuf:3.15.7
   
   **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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to