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/09/09 03:06:04 UTC
[GitHub] [incubator-brpc] kungf opened a new issue #1234: undefined reference to `google::protobuf
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
[GitHub] [incubator-brpc] kungf closed issue #1234: undefined reference to `google::protobuf
Posted by GitBox <gi...@apache.org>.
kungf closed issue #1234:
URL: https://github.com/apache/incubator-brpc/issues/1234
----------------------------------------------------------------
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
[GitHub] [incubator-brpc] kungf commented on issue #1234: undefined reference to `google::protobuf
Posted by GitBox <gi...@apache.org>.
kungf commented on issue #1234:
URL: https://github.com/apache/incubator-brpc/issues/1234#issuecomment-689285417
fixed, two libprotobuf in my os, because local installed protobuf when use grpc in /usr/local/lib,
and another installed by
`sudo apt-get install -y git g++ make libssl-dev libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev`
delete one of them and fix it.
you can check with:
sudo find / -type f -name *protobuf.*
----------------------------------------------------------------
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