apache / brpc

brpc is an Industrial-grade RPC framework using C++ Language, which is often used in high performance system such as Search, Storage, Machine learning, Advertisement, Recommendation etc. "brpc" means "better RPC".
https://brpc.apache.org
Apache License 2.0
16.51k stars 3.97k forks source link

GCC 63, PB 3.0.0, gflag 2.2.0编译出错 #687

Closed jiansongjay closed 1 year ago

jiansongjay commented 5 years ago

如题编译一直出错,附件是make的日志

/ home//homeapp//appworkspace//workspaceincubator/-incubatorbrpc-/brpcsrc//srcbvar/gflag.cpp:86: undefined reference togoogle/:bvar:/SetCommandLineOptiongflag.cpp[:abi86::cxx11 ]undefined( charreference constto ,` googlechar: :const)' SetCommandLineOption[abi:cxx11](char const, char const)' ../../output/lib/libbrpc.a(json_to_pb.cpp.o): In function json2pb::convert_enum_type(butil::rapidjson::GenericValue<butil::rapidjson::UTF8<char>, butil::rapidjson::MemoryPoolAllocator<butil::rapidjson::CrtAllocator> > const&, bool, google::protobuf::Message*, google::protobuf::FieldDescriptor const*, google::protobuf::Reflectioncollect2: error: ld returned 1 exit status const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)': /home/app/workspace/incubator-brpc/src/json2pb/json_to_pb.cpp:182: undefined reference togoogle::protobuf::EnumDescriptor::FindValueByName(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) const' /home/app/workspace/incubator-brpc/src/json2pb/json_to_pb.cpp:182: undefined reference to `google::protobuf::EnumDescriptor::FindValueByName(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) const' ../../output/lib/libbrpc.a(json_to_pb.cpp.o): In function json2pb::JsonMapToProtoMap(butil::rapidjson::GenericValue<butil::rapidjson::UTF8<char>, butil::rapidjson::MemoryPoolAllocator<butil::rapidjson::CrtAllocator> > const&, google::protobuf::FieldDescriptor const*, google::protobuf::Message*, json2pb::Json2PbOptions const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)': /home/app/workspace/incubator-brpc/src/json2pb/json_to_pb.cpp:383: undefined reference togoogle::protobuf::Descriptor::FindFieldByName(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) const' /home/app/workspace/incubator-brpc/src/json2pb/json_to_pb.cpp:385: undefined reference to `google::protobuf::Descriptor::FindFieldByName(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&) const' collect2: error: ld returned 1 exit status make[2]: [output/bin/parallel_http] Error 1 make[1]: [tools/parallel_http/CMakeFiles/parallel_http.dir/all] Error 2 make[2]: [output/bin/rpc_replay] Error 1 make[1]: [tools/rpc_replay/CMakeFiles/rpc_replay.dir/all] Error 2 make: *** [all] Error 2`

wwbmmm commented 1 year ago

We close this issue because it is irreproducible and inactive for a long time. If you can reproduce this issue with the latest version of bRPC, please reopen this issue and tell us how to reproduce.