You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2020/07/13 09:17:54 UTC

[GitHub] [incubator-brpc] ruoshui1314 edited a comment on issue #1159: fail to build example `echo_c++` and report `Undefined symbols for architecture x86_64:`

ruoshui1314 edited a comment on issue #1159:
URL: https://github.com/apache/incubator-brpc/issues/1159#issuecomment-657433936


   update:
   It could be builded successfully when using master branch.
   The command is:
   `sh config_brpc.sh --headers="/xxx/local/include /usr/local/include" --libs="/xxx/local/lib /usr/local/lib /xxx/local/bin" --cc=clang --cxx=clang++
   `
   and building example is correct.
   
   
   but fail to build 0.9.7 brpc library.
   The detail errors :
   
   
   Linking protoc-gen-mcpack
   Undefined symbols for architecture x86_64:
     "fLI::FLAGS_v", referenced from:
         bthread::ContentionProfiler::flush_to_disk(bool) in libbrpc.a(mutex.o)
         bthread::TaskControl::worker_thread(void*) in libbrpc.a(task_control.o)
         bthread::TimerThread::run() in libbrpc.a(timer_thread.o)
     "google::LogMessage::stream()", referenced from:
         mcpack2pb::generate_serializing(google::protobuf::Descriptor const*, std::__1::set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, std::__1::set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&, google::protobuf::io::Printer&) in generator.o
         mcpack2pb::is_map_entry(google::protobuf::Descriptor const*) in generator.o
         bthread::ContentionProfiler::flush_to_disk(bool) in libbrpc.a(mutex.o)
         bthread::ContentionProfiler::init_if_needed() in libbrpc.a(mutex.o)
         butil::FlatMap<bthread::SampledContention*, bthread::SampledContention*, bthread::ContentionHash, bthread::ContentionEqual, false>::init(unsigned long, unsigned int) in libbrpc.a(mutex.o)
         bthread::ContentionProfilerStart(char const*) in libbrpc.a(mutex.o)
         bthread::ContentionProfilerStop() in libbrpc.a(mutex.o)
   


----------------------------------------------------------------
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:
users@infra.apache.org



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