Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585090 - app-forensics/sleuthkit-4.1.3 with dev-util/cppunit-1.13.1: errors_test.cpp:(.text.startup+0x4f): undefined reference to `CppUnit::TestFactoryRegistry::getRegistry(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
Summary: app-forensics/sleuthkit-4.1.3 with dev-util/cppunit-1.13.1: errors_test.cpp:(...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Forensics Herd [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 585088
  Show dependency tree
 
Reported: 2016-06-05 10:33 UTC by Andrew Savchenko
Modified: 2016-06-06 13:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,196.08 KB, text/plain)
2016-06-05 10:33 UTC, Andrew Savchenko
Details
environment (environment,108.41 KB, text/plain)
2016-06-05 10:34 UTC, Andrew Savchenko
Details
emerge --info (emerge.info,11.18 KB, text/plain)
2016-06-05 10:34 UTC, Andrew Savchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2016-06-05 10:33:55 UTC
Created attachment 436526 [details]
build.log

Hi,

sleuthkit-4.1.3 fails to link with cppunit-1.13.1:

errors_test.o: In function `_GLOBAL__sub_I__ZN10ErrorsTest5setUpEv':
errors_test.cpp:(.text.startup+0x4f): undefined reference to `CppUnit::TestFactoryRegistry::getRegistry(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
errors_test.o:(.rodata._ZTVN7CppUnit10TestCallerI10ErrorsTestEE[_ZTVN7CppUnit10TestCallerI10ErrorsTestEE]+0x20): undefined reference to `CppUnit::TestCase::getName[abi:cxx11]() const'
errors_test.o:(.rodata._ZTVN7CppUnit10TestCallerI10ErrorsTestEE[_ZTVN7CppUnit10TestCallerI10ErrorsTestEE]+0x24): undefined reference to `CppUnit::Test::findTestPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, CppUnit::TestPath&) const'
errors_test.o:(.rodata._ZTVN7CppUnit10TestCallerI10ErrorsTestEE[_ZTVN7CppUnit10TestCallerI10ErrorsTestEE]+0x2c): undefined reference to `CppUnit::Test::findTest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
errors_test.o:(.rodata._ZTVN7CppUnit10TestCallerI10ErrorsTestEE[_ZTVN7CppUnit10TestCallerI10ErrorsTestEE]+0x30): undefined reference to `CppUnit::Test::resolveTestPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
collect2: error: ld returned 1 exit status
Comment 1 Andrew Savchenko gentoo-dev 2016-06-05 10:34:27 UTC
Created attachment 436528 [details]
environment
Comment 2 Andrew Savchenko gentoo-dev 2016-06-05 10:34:48 UTC
Created attachment 436530 [details]
emerge --info
Comment 3 Mike Gilbert gentoo-dev 2016-06-05 17:13:44 UTC
Did you recompile cppunit after upgrading to gcc5?
Comment 4 Andrew Savchenko gentoo-dev 2016-06-05 19:09:33 UTC
Apparently no, this system is in the process of @world update right now and emerge put sleuthkit before cppunit in the dep tree, since sleuthkit has no ebuild dependency on cppunit.

When @world update will be completed (or will fail again even with --keep-going, which is much more likely) I'll report back, though I give 99.99% that this problem comes from C++ abi mismatch. Looks like I read error message without enough care.
Comment 5 Andrew Savchenko gentoo-dev 2016-06-06 13:27:52 UTC
Mike, this indeed was C++11 abi mismatch, rebuild of cppunit helps. Bug 585088 should be fixed to reduce risks of such issue for other users.