build issue for C++: libprotobuf.so.11 may conflict with lipprotobuf.so.8

2,076 views
Skip to first unread message

gyz...@google.com

unread,
Nov 28, 2016, 6:12:28 PM11/28/16
to grpc.io
I follow the instruction
 $ git clone -b $(curl -L http://grpc.io/release) https://github.com/grpc/grpc
 $ cd grpc
 $ git submodule update --init
 $ make
During the make, I got following error

[HOSTLD]  Linking ***/grpc/bins/opt/grpc_cpp_plugin
/usr/bin/ld: warning: libprotobuf.so.11, needed by //usr/local/lib/libprotoc.so, may conflict with libprotobuf.so.8
/usr/bin/ld: ***/grpc/objs/opt/src/compiler/cpp_plugin.o: undefined reference to symbol '_ZN6google8protobuf19FileDescriptorProto18kSyntaxFieldNumberE'
//usr/local/lib/libprotobuf.so.11: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [***/grpc/bins/opt/grpc_cpp_plugin] Error 1


I appreciate all the help.

gyz...@google.com

unread,
Nov 28, 2016, 6:15:14 PM11/28/16
to grpc.io, gyz...@google.com
One more information: I cannot find lipprotobug.so.8 in my system.

fen...@google.com

unread,
Jan 17, 2017, 6:22:59 PM1/17/17
to grpc.io, gyz...@google.com
sudo apt-get remove libprotobuf8
It fixes it on my machine.
Reply all
Reply to author
Forward
0 new messages