Description of problem: Compiling a simple C++ file, linked with -lprotobuf fails, while doing the exact same thing works with g++. This used to work in previous versions (don’t know if this is caused by something in the f23 rebuild, or the 3.7 version). Version-Release number of selected component (if applicable): clang-3.7.0-1.fc23 protobuf-devel-2.6.1-2.fc23.x86_64 Steps to Reproduce: 1. echo "message Test{required bool val = 1;}" > test.proto 2. protoc test.proto --cpp_out=. 3. echo '#include "test.pb.h"\nint main(){ Test t; return t.ShortDebugString().size(); }' > main.cpp 4. clang++ main.cpp test.pb.cc -lprotobuf Actual results: main.cpp:(.text+0x28): undefined reference to `google::protobuf::Message::ShortDebugString() const' clang: error: linker command failed with exit code 1 (use -v to see invocation) Expected results: Should compile (just like using g++ does) without any error.
My guess is that Protobof inside the official Fedora packages have been compiled with g++, not with clang. Try to compile libprotof yourself with clang++ and see if it links.
*** This bug has been marked as a duplicate of bug 1282645 ***