[Slackbuilds-users] Snappy not building

Willy Sudiarto Raharjo willysr at slackbuilds.org
Mon Apr 6 17:16:47 UTC 2020


>     This is for the latest version of snappy (1.1.8) for 14.2, as retrieved
> from the link in slackbuilds.org:
> 
> 
> [ 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
> `testing::internal::scoped_ptr<std::basic_stringstream<char,
> std::char_traits<char>, std::allocator<char> >
>> ::reset(std::basic_stringstream<char, std::char_traits<char>,
> std::allocator<char> >*) [clone .constprop.163]':
> snappy_unittest.cc:(.text+0x1d10): undefined reference to
> `testing::internal::IsTrue(bool)'
> CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o: In function
> `snappy::Snappy_ZeroOffsetCopy_Test::TestBody()':
> snappy_unittest.cc:(.text+0x3319): undefined reference to
> `testing::Message::Message()'
> 
> (scores of similar lines)
> 
> CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o:(.data.rel.ro._ZTVN6snappy33Snappy_FindMatchLengthRandom_TestE[_ZTVN6snappy33Snappy_FindMatchLengthRandom_TestE]+0x28):
> undefined reference to `testing::Test::TearDown()'
> CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o:(.data.rel.ro._ZTVN6snappy27Snappy_VerifyCharTable_TestE[_ZTVN6snappy27Snappy_VerifyCharTable_TestE]+0x20):
> undefined reference to `testing::Test::SetUp()'
> CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o:(.data.rel.ro._ZTVN6snappy27Snappy_VerifyCharTable_TestE[_ZTVN6snappy27Snappy_VerifyCharTable_TestE]+0x28):
> undefined reference to `testing::Test::TearDown()'
> collect2: error: ld returned 1 exit status
> CMakeFiles/snappy_unittest.dir/build.make:121: recipe for target
> 'snappy_unittest' failed
> make[2]: *** [snappy_unittest] Error 1
> CMakeFiles/Makefile2:104: recipe for target
> 'CMakeFiles/snappy_unittest.dir/all' failed
> make[1]: *** [CMakeFiles/snappy_unittest.dir/all] Error 2
> Makefile:138: recipe for target 'all' failed
> make: *** [all] Error 2

Did you have any package that relates to unit testing?
i tested this on clean VM and it built fine


-- 
Willy Sudiarto Raharjo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20200407/7ca87c09/attachment.asc>


More information about the SlackBuilds-users mailing list