Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554116 - media-video/mkvtoolnix-8.1.0 - list_utils.cpp:(...): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& boost::operator<< <char, std::char_traits<char>, int>(std::basic_ostream<char, std::char_traits<char> >&, boost::optional...
Summary: media-video/mkvtoolnix-8.1.0 - list_utils.cpp:(...): undefined reference to `...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 554160 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-07-07 05:00 UTC by tman
Modified: 2024-11-04 16:03 UTC (History)
6 users (show)

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


Attachments
build.log (build.log,437.48 KB, text/plain)
2015-07-07 05:01 UTC, tman
Details
test-unit-boost-1.56.0-fix.patch (test-unit-boost-1.56.0-fix.patch,313 bytes, patch)
2015-07-08 04:56 UTC, PhobosK
Details | Diff
mkvtoolnix-8.2.0-fix-curl-support.patch (mkvtoolnix-8.2.0-fix-curl-support.patch,447 bytes, patch)
2015-07-19 14:31 UTC, PhobosK
Details | Diff
mkvtoolnix-8.2.0-r1.ebuild.diff (mkvtoolnix-8.2.0-r1.ebuild.diff,1.53 KB, patch)
2015-07-19 14:33 UTC, PhobosK
Details | Diff
mkvtoolnix-8.1.0-test-unit-boost-1.56.0-fix.patch (mkvtoolnix-8.1.0-test-unit-boost-1.56.0-fix.patch,313 bytes, patch)
2015-07-19 14:45 UTC, PhobosK
Details | Diff
mkvtoolnix-8.1.0-r1.ebuild.diff (mkvtoolnix-8.1.0-r1.ebuild.diff,731 bytes, patch)
2015-07-19 14:46 UTC, PhobosK
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tman 2015-07-07 05:00:57 UTC
msgfmt -c -o po/de.mo po/de.po
/bin/grep -v 'name="ID"' doc/guide/en/mkvmerge-gui.hhc > doc/guide/en/mkvmerge-gui.hhk
x86_64-pc-linux-gnu-ar rcu tests/unit/libmtxunittest.a tests/unit/init.o tests/unit/util.o
x86_64-pc-linux-gnu-ranlib tests/unit/libmtxunittest.a
x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -L/usr/lib64 -Llib/avilib-0.6.10 -Llib/librmff -Lsrc/common -o tests/unit/common/common tests/unit/common/common.o tests/unit/common/basic_timecode_c.o tests/unit/common/ebml_chapters_converter.o tests/unit/common/strings_formatting.o tests/unit/common/construct_equality.o tests/unit/common/bit_cursor.o tests/unit/common/ebml_tags_converter.o tests/unit/common/mm_io.o tests/unit/common/fourcc.o tests/unit/common/endian.o tests/unit/common/option_with_source.o tests/unit/common/codec.o tests/unit/common/checksums.o tests/unit/common/ebml_segmentinfo_converter.o tests/unit/common/math.o tests/unit/common/list_utils.o -Ltests/unit -lmtxunittest -lmtxcommon -lmagic -lz -lmatroska -lebml -lz -lpugixml -lboost_regex-mt -lboost_filesystem-mt -lboost_system-mt -lgtest -lpthread
tests/unit/common/list_utils.o: In function `std::string testing::PrintToString<boost::optional<int> >(boost::optional<int> const&)':
list_utils.cpp:(.text._ZN7testing13PrintToStringIN5boost8optionalIiEEEESsRKT_[_ZN7testing13PrintToStringIN5boost8optionalIiEEEESsRKT_]+0x1f3): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& boost::operator<< <char, std::char_traits<char>, int>(std::basic_ostream<char, std::char_traits<char> >&, boost::optional<int> const&)'
tests/unit/common/list_utils.o: In function `std::string testing::PrintToString<boost::optional<void*> >(boost::optional<void*> const&)':
list_utils.cpp:(.text._ZN7testing13PrintToStringIN5boost8optionalIPvEEEESsRKT_[_ZN7testing13PrintToStringIN5boost8optionalIPvEEEESsRKT_]+0x1f3): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& boost::operator<< <char, std::char_traits<char>, void*>(std::basic_ostream<char, std::char_traits<char> >&, boost::optional<void*> const&)'
collect2: error: ld returned 1 exit status
 * ERROR: media-video/mkvtoolnix-8.1.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:


Reproducible: Always




Portage 2.2.20 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.3, glibc-2.20-r2, 4.1.1-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.1.1-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.2
KiB Mem:    24625932 total,  21392480 free
KiB Swap:   25461756 total,  25461756 free
Timestamp of repository gentoo: Tue, 07 Jul 2015 04:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.2) 2.25
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.2.3::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /mnt/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

lokal
    location: /mnt/portage/local/local-overlay
    masters: gentoo
    priority: 0

bitcoin
    location: /mnt/portage/local/layman/bitcoin
    sync-uri: https://gitlab.com/bitcoin/gentoo.git
    masters: gentoo
    priority: 50

brother-overlay
    location: /mnt/portage/local/layman/brother-overlay
    masters: gentoo
    priority: 50

bumblebee
    location: /mnt/portage/local/layman/bumblebee
    masters: gentoo
    priority: 50

dotnet
    location: /mnt/portage/local/layman/dotnet
    masters: gentoo
    priority: 50

dr
    location: /mnt/portage/local/layman/dr
    masters: gentoo
    priority: 50

media-overlay
    location: /mnt/portage/local/layman/media-overlay
    masters: gentoo
    priority: 50

steam-overlay
    location: /mnt/portage/local/layman/steam-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/mnt/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/mnt/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress
Comment 1 tman 2015-07-07 05:01:57 UTC
Created attachment 406288 [details]
build.log
Comment 2 PhobosK 2015-07-08 04:56:45 UTC
Created attachment 406338 [details, diff]
test-unit-boost-1.56.0-fix.patch

This bug was fixed upstream with the commit https://github.com/mbunkus/mkvtoolnix/commit/01438d7ae4f7535a1f4518a25941cd51c914807d

I've applied the patch (the one I upload now) and it fixes the problem with compilation with =dev-libs/boost-1.56.0-r1 ... The app works OK 

I do not have the time to test with the stable boost version (=dev-libs/boost-1.55.0-r2), but I suppose it works with it too... 

Thanks
Comment 3 Account removed 2015-07-08 14:49:34 UTC
the patch works fine for me. thank you!
Comment 4 Jason Zaman gentoo-dev 2015-07-12 12:53:52 UTC
*** Bug 554160 has been marked as a duplicate of this bug. ***
Comment 5 Pacho Ramos gentoo-dev 2015-07-19 10:20:31 UTC
+*mkvtoolnix-8.2.0 (19 Jul 2015)
+
+  19 Jul 2015; Pacho Ramos <pacho@gentoo.org> +mkvtoolnix-8.2.0.ebuild:
+  Version bump
+
Comment 6 PhobosK 2015-07-19 14:30:22 UTC
(In reply to Pacho Ramos from comment #5)
> +*mkvtoolnix-8.2.0 (19 Jul 2015)
> +
> +  19 Jul 2015; Pacho Ramos <pacho@gentoo.org> +mkvtoolnix-8.2.0.ebuild:
> +  Version bump
> +

Resolution: --- → FIXED
Status: UNCONFIRMED → RESOLVED


@Pacho Ramos,
1. This is not a resolution for =media-video/mkvtoolnix-8.1.0 because it is still in the tree with unfixed compilation bug....
2. The bump of =media-video/mkvtoolnix-8.2.0 has a bug when compiled without curl support (see upstream issue report: https://github.com/mbunkus/mkvtoolnix/issues/1359 )... I.e. even with this version bump mkvtoolnix cannot be emerged because of an error:

src/mkvtoolnix-gui/main_window/main_window.cpp: In member function ‘virtual void mtx::gui::MainWindow::setupMenu()’:
src/mkvtoolnix-gui/main_window/main_window.cpp:121:7: error: ‘class mtx::gui::Ui::MainWindow’ has no member named ‘actionGUICheckForUpdates’
   ui->actionGUICheckForUpdates->setVisible(false);

+ see Gentoo bug #555340


So here is my solution:
1. I'm uploading the needed curl fix patch
2. I'm uploading a proposed ebuild for =media-video/mkvtoolnix-8.2.0-r1 that introduces the curl USE flag

All is tested to work with or without curl USE flag, and works OK

What remains is to fix the =media-video/mkvtoolnix-8.1.0 with my previously proposed patch + update both ebuilds in portage tree

Thanks
Comment 7 PhobosK 2015-07-19 14:31:22 UTC
Created attachment 407138 [details, diff]
mkvtoolnix-8.2.0-fix-curl-support.patch

This is the needed upstream patch for a broken compilation when configuration option "--without-curl" is used (as it is in =media-video/mkvtoolnix-8.2.0).

See upstream bug: https://github.com/mbunkus/mkvtoolnix/issues/1359
and the proposed upstream solution patch: https://github.com/mbunkus/mkvtoolnix/commit/5c56d6544ffc212ca39ac59f4ed98b4f04761de8
Comment 8 PhobosK 2015-07-19 14:33:53 UTC
Created attachment 407140 [details, diff]
mkvtoolnix-8.2.0-r1.ebuild.diff

The proposed =mkvtoolnix-8.2.0-r1.ebuild diff file that introduces the curl USE flag and the curl compilation fix as done by upstream (see https://github.com/mbunkus/mkvtoolnix/issues/1359 )
Comment 9 PhobosK 2015-07-19 14:45:00 UTC
Created attachment 407144 [details, diff]
mkvtoolnix-8.1.0-test-unit-boost-1.56.0-fix.patch

This is the patch for the original bug report for =media-video/mkvtoolnix-8.1.0 that fixes the compilation.

The patch is from upstream commit https://github.com/mbunkus/mkvtoolnix/commit/01438d7ae4f7535a1f4518a25941cd51c914807d

I've tested the patch and it fixes the problem with compilation with =dev-libs/boost-1.56.0-r1 ... The app works OK 

I'm uploading a proposed =media-video/mkvtoolnix-8.1.0-r1 diff ebuild that will really fix the original bug here...
Comment 10 PhobosK 2015-07-19 14:46:05 UTC
Created attachment 407146 [details, diff]
mkvtoolnix-8.1.0-r1.ebuild.diff

I'm uploading a proposed =media-video/mkvtoolnix-8.1.0-r1 diff ebuild that will really fix the original bug here using the patch mkvtoolnix-8.1.0-test-unit-boost-1.56.0-fix.patch
Comment 11 Ben de Groot (RETIRED) gentoo-dev 2015-07-20 05:26:34 UTC
(In reply to PhobosK from comment #10)
> Created attachment 407146 [details, diff] [details, diff]
> mkvtoolnix-8.1.0-r1.ebuild.diff
> 
> I'm uploading a proposed =media-video/mkvtoolnix-8.1.0-r1 diff ebuild that
> will really fix the original bug here using the patch
> mkvtoolnix-8.1.0-test-unit-boost-1.56.0-fix.patch

I'm not going to bother with 8.1.0. It is fixed in 8.2.0-r1. The older/broken ebuilds have now been removed.