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 2022/07/21 07:41:41 UTC

[GitHub] [incubator-brpc] helloqingbing opened a new issue, #1851: brpc 使用arena分配pb内存编译错误

helloqingbing opened a new issue, #1851:
URL: https://github.com/apache/incubator-brpc/issues/1851

   **Describe the bug (描述bug)**
   incubator-brpc-1.1.0.tar.gz / protobuf-3.19.2.tar.gz / thrift-0.16.0.tar.gz
   
   **To Reproduce (复现方法)**
   构建brpc
   /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../deps/incubator-brpc/lib/libbrpc.a(list_service.o): in function `google::protobuf::internal::GenericTypeHandler<google::protobuf::ServiceDescriptorProto>::New(google::protobuf::Arena*)':
   /usr/local/include/google/protobuf/repeated_ptr_field.h:413: undefined reference to `google::protobuf::ServiceDescriptorProto* google::protobuf::Arena::CreateMaybeMessage<google::protobuf::ServiceDescriptorProto>(google::protobuf::Arena*)'
   /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: ../deps/incubator-brpc/lib/libbrpc.a(builtin_service.pb.o): in function `google::protobuf::internal::GenericTypeHandler<google::protobuf::ServiceDescriptorProto>::New(google::protobuf::Arena*)':
   /usr/local/include/google/protobuf/repeated_ptr_field.h:413: undefined reference to `google::protobuf::ServiceDescriptorProto* google::protobuf::Arena::CreateMaybeMessage<google::protobuf::ServiceDescriptorProto>(google::protobuf::Arena*)'
   /opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: /usr/local/include/google/protobuf/repeated_ptr_field.h:413: undefined reference to `google::protobuf::ServiceDescriptorProto* google::protobuf::Arena::CreateMaybeMessage<google::protobuf::ServiceDescriptorProto>(google::protobuf::Arena*)'
   collect2: error: ld returned 1 exit status
   
   **Expected behavior (期望行为)**
   /usr/local/include/google/protobuf/arena.h 这个文件里面是有CreateMaybeMessage 的
   
   **Versions (各种版本)**
   OS: LInux  5.4.42-200.el7.x86_64
   Compiler: g++11
   brpc:
   protobuf:
   
   **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.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org.apache.org

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] wwbmmm commented on issue #1851: brpc 使用arena分配pb内存编译错误

Posted by GitBox <gi...@apache.org>.
wwbmmm commented on issue #1851:
URL: https://github.com/apache/incubator-brpc/issues/1851#issuecomment-1197623096

   可能是你机器上有多个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.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

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