Comment #3 on issue 295 by gglent...@gmail.com: C++ Compilation of 2.4.1 fails GLIBCXX_3.4.11 Not found
http://code.google.com/p/protobuf/issues/detail?id=295

Hello,
I have exactly the same problem, trying to build protobuf-2.4.1 on SLES11 and gcc-4.3.2.

I just add flags at configure time to be sure to use gcc4, but in the end it always tries to link against gcc3 as you can see in the log

libtool: link: /opt/gcc-4.3.2-sles11/bin/g++ -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -pthread -o .libs/protoc main.o -L/opt/gcc-4.3.2-sles11/lib64 -lpthread ./.libs/libprotobuf.so ./.libs/libprotoc.so -lz -pthread oldpwd=`pwd` && ( cd . && $oldpwd/protoc -I. --cpp_out=$oldpwd google/protobuf/unittest.proto google/protobuf/unittest_empty.proto google/protobuf/unittest_import.proto google/protobuf/unittest_mset.proto google/protobuf/unittest_optimize_for.proto google/protobuf/unittest_embed_optimize_for.proto google/protobuf/unittest_custom_options.proto google/protobuf/unittest_lite.proto google/protobuf/unittest_import_lite.proto google/protobuf/unittest_lite_imports_nonlite.proto google/protobuf/unittest_no_generic_services.proto google/protobuf/compiler/cpp/cpp_test_bad_identifiers.proto ) ~/protobuf-2.4.1/src/.libs/protoc: /opt/gcc-3.4.2/lib64/libstdc++.so.6: version `GLIBCXX_3.4.10' not found (required by ~/protobuf-2.4.1/src/.libs/libprotobuf.so.7)

~/protobuf-2.4.1/src/.libs/protoc: /opt/gcc-3.4.2/lib64/libstdc++.so.6: version `GLIBCXX_3.4.10' not found (required by ~/protobuf-2.4.1/src/.libs/libprotoc.so.7)

~/protobuf-2.4.1/src/.libs/protoc: /opt/gcc-3.4.2/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ~/protobuf-2.4.1/src/.libs/libprotoc.so.7)

Of course it is right since lauching this command

strings /opt/gcc-3.4.2/lib64/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2

instead gcc4 has the required version

strings /opt/gcc-4.3.2/lib64/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_FORCE_NEW
GLIBCXX_DEBUG_MESSAGE_LENGTH

Why protobuf is still looking for gcc3 at the step of build process?

Thank you for any reply :)



--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to