Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot link with libgrpc++_error_details #153

Open
antoninbas opened this issue May 23, 2017 · 0 comments
Open

cannot link with libgrpc++_error_details #153

antoninbas opened this issue May 23, 2017 · 0 comments

Comments

@antoninbas
Copy link
Member

antoninbas commented May 23, 2017

This grpc helper library was introduced with grpc++ version 1.3.0.
It includes generated protobuf code for google.rpc.Status. Unfortunately we also include this generated code in our library libpiproto (which includes all the generated protobuf code for p4runtime.proto, etc). The 2 seem to clash when we start any binary which was linked to both libraries:

[libprotobuf ERROR google/protobuf/descriptor_database.cc:109] Symbol name "google.rpc.Status" conflicts with the existing symbol "google.rpc.Status".
[libprotobuf FATAL google/protobuf/descriptor.cc:1164] CHECK failed: generated_database_->Add(encoded_file_descriptor, size): 
terminate called after throwing an instance of 'google::protobuf::FatalException'
  what():  CHECK failed: generated_database_->Add(encoded_file_descriptor, size): 
Aborted (core dumped)

We use this libgrpc++_error_details to have access to grpc::SetErrorDetails. As a temporary measure we have simply copied the code for this function to this repo, but it would be nice to have a more robust / permanent solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant