When merging mkvzoolnix, I get: x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -L/usr/lib64 -fstack-protector-strong -Llib/avilib-0.6.10 -Llib/librmff -Lsrc/common -o src/mkvmerge src/merge/mkvmerge.o -Lsrc/merge -lmtxmerge -Lsrc/input -lmtxinput -Lsrc/output -lmtxoutput -Lsrc/merge -lmtxmerge -lmtxcommon -lmagic -lz -lFLAC -logg -lm -lz -lpugixml -lboost_regex-mt -lboost_filesystem -lboost_system -lmatroska -lebml -lavi -lrmff -Lsrc/mpegparser -lmpegparser -lvorbis -logg src/common/libmtxcommon.a(ebml_chapters_converter.o): In function `mtx::xml::ebml_chapters_converter_c::fix_display(libmatroska::KaxChapterDisplay&) const': ebml_chapters_converter.cpp:(.text+0x2c05): undefined reference to `libebml::EbmlString::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&() const' ebml_chapters_converter.cpp:(.text+0x2dfb): undefined reference to `libebml::EbmlString::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&() const' collect2: error: ld returned 1 exit status Reproducible: Always Steps to Reproduce: 1. emerge =media-video/mkvtoolnix-23.0.0 2. 3. Expected Results: * (no error message) * * Call stack: * ebuild.sh, line 124: Called src_compile * environment, line 2606: Called die * The specific snippet of code: * rake V=1 -j$(makeopts_jobs) || die The ebuild is in my test overlay, but I get the exact same error with portage's ebuild. # emerge -pqv '=media-video/mkvtoolnix-23.0.0::gentoo' [ebuild U ] media-video/mkvtoolnix-23.0.0 [21.0.0-r1] USE="-debug -pch -qt5 -test"
Created attachment 544054 [details] build info
Created attachment 544056 [details] environment
Created attachment 544058 [details] build log
I got the same error, even trying to rebuild version 21.0.0-r1. The error went away after rebuilding dev-libs/libebml-1.3.5 with the same compiler version I was using for mkvtoolnix. I had switched from gcc-6 to gcc-7 in between and the symbol in the earlier version of /usr/lib64/libebml.so.4.0.0 had an extra std::__cxx11 qualifier somewhere.
*** This bug has been marked as a duplicate of bug 638244 ***