Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 581622 - media-libs/libcaca-0.99_beta19: .data.rel.ro._ZTVN7CppUnit10TestCallerI10ExportTestEE[_ZTVN7CppUnit10TestCallerI10ExportTestEE]+0x30): undefined reference to `CppUnit::Test::resolveTestPath(std::__cxx11::basic_string<char, std::char_traits<char>, std::all
Summary: media-libs/libcaca-0.99_beta19: .data.rel.ro._ZTVN7CppUnit10TestCallerI10Expo...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-30 07:02 UTC by Anton Kochkov
Modified: 2016-04-30 15:05 UTC (History)
0 users

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


Attachments
emerge --info output (emerge_info3.log,17.00 KB, text/plain)
2016-04-30 07:02 UTC, Anton Kochkov
Details
full build log (libcaca-build.log,269.70 KB, text/plain)
2016-04-30 07:03 UTC, Anton Kochkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kochkov 2016-04-30 07:02:33 UTC
Created attachment 432636 [details]
emerge --info output

libtool: link: i686-pc-linux-gnu-g++ -O2 -march=core2 -mfpmath=sse -mmmx -msse -msse2 -mssse3 -pipe -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Wsign-compare -Wl,-O1 -o .libs/caca-test caca_test-caca-test.o caca_test-canvas.o caca_test-dirty.o caca_test-driver.o caca_test-export.o  -Wl,--as-needed ../caca/.libs/libcaca.so -L/usr/lib -lncursesw -lX11 -lGL -lGLU -lglut -lftgl -lz -lcppunit
caca_test-caca-test.o: In function `main':
caca-test.cpp:(.text.startup+0x69): undefined reference to `CppUnit::TestFactoryRegistry::getRegistry(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
caca-test.cpp:(.text.startup+0xbc): undefined reference to `CppUnit::TextTestRunner::run(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, bool, bool)'
caca_test-canvas.o: In function `
....
caca_test-export.o:(.data.rel.ro._ZTVN7CppUnit10TestCallerI10ExportTestEE[_ZTVN7CppUnit10TestCallerI10ExportTestEE]+0x2c): undefined reference to `CppUnit::Test::findTest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
caca_test-export.o:(.data.rel.ro._ZTVN7CppUnit10TestCallerI10ExportTestEE[_ZTVN7CppUnit10TestCallerI10ExportTestEE]+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
Makefile:656: recipe for target 'caca-test' failed
make[2]: *** [caca-test] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19-abi_x86_32.x86/test'
Makefile:541: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19-abi_x86_32.x86'
Makefile:436: recipe for target 'all' failed
make: *** [all] Error 2
Comment 1 Anton Kochkov 2016-04-30 07:03:02 UTC
Created attachment 432638 [details]
full build log
Comment 2 Alex Xu (Hello71) 2016-04-30 15:04:30 UTC
read news items
Comment 3 Alex Xu (Hello71) 2016-04-30 15:05:33 UTC
Title: GCC 5 Defaults to the New C++11 ABI
Author: Mike Frysinger <vapier@gentoo.org>
Content-Type: text/plain
Posted: 2015-10-22
Revision: 2
News-Item-Format: 1.0
Display-If-Installed: >=sys-devel/gcc-5

GCC 5 uses the new C++ ABI by default.  When building new code, you might run
into link time errors that include lines similar to:
...: undefined reference to '_ZNSt6chrono12steady_clock3nowEv@GLIBCXX_3.4.17'

Or you might see linkage failures with "std::__cxx11::string" in the output.

These are signs that you need to rebuild packages using the new C++ ABI.
You can quickly do so by using revdep-rebuild (from gentoolkit).

For gentoolkit-0.3.1 or higher:
# revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc

For previous versions of gentoolkit:
# revdep-rebuild --library 'libstdc\+\+\.so\.6' -- --exclude gcc

For more details, feel free to peruse:
https://developerblog.redhat.com/2015/02/05/gcc5-and-the-c11-abi/
https://blogs.gentoo.org/blueness/2015/03/10/the-c11-abi-incompatibility-problem-in-gentoo/