I am trying to build protocol buffers on several platforms and I'm having a problem with building on AIX. I run configure with only the --prefix option, and have defined these variables: export CFLAGS="-maix64" export CPPFLAGS="-maix64" export LDFLAGS="-maix64" export OBJECT_MODE=64
Configure runs well, but make fails when linking. Here I have all but the last few lines: libtool: link: g++ -D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded- virtual -Wno-sign-compare -O2 -g -DNDEBUG -D_THREAD_SAFE -maix64 - o .libs/protoc main.o -L/home/pwall/pbe/third-party/src/protobuf/ protobuf-2.4.1/src/.libs -L./.libs -L/opt/freeware/src/packages/BUILD/ gcc-build/powerpc-ibm-aix5.3.0.0/ppc64/libstdc++-v3/src -L/opt/ freeware/src/packages/BUILD/gcc-build/powerpc-ibm-aix5.3.0.0/ppc64/ libstdc++-v3/src/.libs -L/opt/freeware/src/packages/BUILD/gcc-build/./ gcc/ppc64 -L/opt/freeware/src/packages/BUILD/gcc-build/./gcc -L/opt/ freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/../.. -lprotoc -lprotobuf - lpthreads -L/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/ppc64 - lstdc++ -Wl,-blibpath:/home/pwall/protobuf/aix/lib:/opt/freeware/lib/ gcc/powerpc-ibm-aix5.3.0.0/4.2.4/ppc64:/opt/freeware/lib/gcc/powerpc- ibm-aix5.3.0.0/4.2.4/ppc64:/opt/freeware/lib/gcc/powerpc-ibm- aix5.3.0.0/4.2.4:/opt/freeware/lib/gcc/powerpc-ibm- aix5.3.0.0/4.2.4/../../..:/usr/lib:/lib ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) ld: 0711-317 ERROR: Undefined symbol: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&) ld: 0711-317 ERROR: Undefined symbol: ._Unwind_Resume ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0 ld: 0711-317 ERROR: Undefined symbol: .__register_frame_info_table ld: 0711-317 ERROR: Undefined symbol: .__deregister_frame_info ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. Stop. Can anybody help here? Thanks, -Pete -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
