There is some link error (see below). It seems to be related to unit tests only, so I'm not even sure why this is built. Varying USE_LANGUAGES += c++XY didn't help. ===> build-message [snappy-1.1.8] ===> Building for snappy-1.1.8 Scanning dependencies of target snappy [ 12%] Building CXX object CMakeFiles/snappy.dir/snappy-c.cc.o [ 50%] Building CXX object CMakeFiles/snappy.dir/snappy.cc.o [ 50%] Building CXX object CMakeFiles/snappy.dir/snappy-sinksource.cc.o [ 50%] Building CXX object CMakeFiles/snappy.dir/snappy-stubs-internal.cc.o [ 62%] Linking CXX shared library libsnappy.so [ 62%] Built target snappy Scanning dependencies of target snappy_unittest [ 75%] Building CXX object CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o [ 87%] Building CXX object CMakeFiles/snappy_unittest.dir/snappy-test.cc.o [100%] Linking CXX executable snappy_unittest CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o: In function `snappy::Snappy_ZeroOffsetCopyValidation_Test::TestBody()': snappy_unittest.cc:(.text+0x2ad): undefined reference to `testing::internal::GetBoolAssertionFailureMessage[abi:cxx11](testing::AssertionResult const&, char const*, char const*, char const*)' CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o: In function `snappy::Snappy_ZeroOffsetCopy_Test::TestBody()': snappy_unittest.cc:(.text+0x40a): undefined reference to `testing::internal::GetBoolAssertionFailureMessage[abi:cxx11](testing::AssertionResult const&, char const*, char const*, char const*)' CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o: In function `snappy::Snappy_VerifyCharTable_Test::TestBody()': snappy_unittest.cc:(.text+0x89b5): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o: In function `snappy::Snappy_FindMatchLengthRandom_Test::TestBody()': snappy_unittest.cc:(.text+0x91c4): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' snappy_unittest.cc:(.text+0x94f0): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o: In function `testing::AssertionResult::AppendMessage(testing::Message const&)': snappy_unittest.cc:(.text._ZN7testing15AssertionResult13AppendMessageERKNS_7MessageE[_ZN7testing15AssertionResult13AppendMessageERKNS_7MessageE]+0x29): undefined reference to `testing::Message::GetString[abi:cxx11]() const' CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o: In function `testing::AssertionResult& testing::AssertionResult::operator<< <char const*>(char const* const&)': snappy_unittest.cc:(.text._ZN7testing15AssertionResultlsIPKcEERS0_RKT_[_ZN7testing15AssertionResultlsIPKcEERS0_RKT_]+0x66): undefined reference to `testing::Message::GetString[abi:cxx11]() const' CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o: In function `testing::AssertionResult testing::internal::CmpHelperEQ<int, int>(char const*, char const*, int const&, int const&)': snappy_unittest.cc:(.text._ZN7testing8internal11CmpHelperEQIiiEENS_15AssertionResultEPKcS4_RKT_RKT0_[_ZN7testing8internal11CmpHelperEQIiiEENS_15AssertionResultEPKcS4_RKT_RKT0_]+0x58): undefined reference to `testing::internal::EqFailure(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o: In function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > testing::PrintToString<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': snappy_unittest.cc:(.text._ZN7testing13PrintToStringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES6_RKT_[_ZN7testing13PrintToStringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEES6_RKT_]+0x1cb): undefined reference to `testing::internal::PrintStringTo(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::ostream*)' collect2: error: ld returned 1 exit status --- snappy_unittest --- *** [snappy_unittest] Error code 1 make[2]: stopped in /pkg_comp/obj/pkgsrc/devel/snappy/default/snappy-1.1.8 1 error -Olaf. -- Olaf 'Rhialto' Seibert -- rhialto at falu dot nl ___ Anyone who is capable of getting themselves made President should on \X/ no account be allowed to do the job. --Douglas Adams, "THGTTG"
Attachment:
signature.asc
Description: PGP signature