media-libs/opencolorio-1.1.0-r1 compiles fine against dev-cpp/yaml-cpp-0.5.3-r1 but against dev-cpp/yaml-cpp-0.6.2, unmasked today, the following error results: CMakeFiles/OpenColorIO.dir/OCIOYaml.cpp.o: In function `YAML::InvalidNode::InvalidNode()': OCIOYaml.cpp:(.text._ZN4YAML11InvalidNodeC2Ev[_ZN4YAML11InvalidNodeC5Ev]+0x6f): undefined reference to `vtable for YAML::Exception' /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/OpenColorIO.dir/OCIOYaml.cpp.o: relocation R_X86_64_PC32 against undefined hidden symbol `_ZTVN4YAML9ExceptionE' can not be used when making a shared object /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status
I see the same failure. Upstream bug https://github.com/imageworks/OpenColorIO/issues/517 seem to be about this issue, including a suggested workaround, but nothing committed yet.
Created attachment 526152 [details, diff] opencolorio-yaml-cpp-0.6.patch This patch makes the linking succeed. Completely untested whether any functionality of the installed libraries was affected.
(In reply to Joakim Gebart Nohlgård from comment #2) > Created attachment 526152 [details, diff] [details, diff] > opencolorio-yaml-cpp-0.6.patch > > This patch makes the linking succeed. Completely untested whether any > functionality of the installed libraries was affected. Thanks! I can confirm that this works and at least /usr/bin/ociocheck --iconfig /usr/share/blender/2.79/datafiles/colormanagement/config.ocio works; blender, using opencolorio, works as well.
FYI I also had issues compiling opencolorio. I tried the patch attached to this bug report and note here that the package successfully compiled with the patch.
media-libs/opencolorio-1.1.0-r2 with the proposed patch is now available in my overlay: https://github.com/stefantalpalaru/gentoo-overlay
I have the same issue, it would be nice to get the patch into main.
(In reply to Peter Asplund from comment #6) > I have the same issue, it would be nice to get the patch into main. Just mask >=dev-cpp/yaml-cpp-0.6 for now? I don't immediately see anything actually needing that specific version in the tree.
*** Bug 653492 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8932d46026a180fc809252ae81cbbd4da70d7af9 commit 8932d46026a180fc809252ae81cbbd4da70d7af9 Author: Johannes Huber <johu@gentoo.org> AuthorDate: 2018-05-20 22:36:15 +0000 Commit: Johannes Huber <johu@gentoo.org> CommitDate: 2018-05-20 22:36:44 +0000 media-libs/opencolorio: Fix build w/ yaml-cpp-0.6 Closes: https://bugs.gentoo.org/651970 Reported-by: Bernd Feige <Bernd.Feige@gmx.net> Thanks-to: Joakim Gebart Nohlgård <joakim.nohlgard@eistec.se> Package-Manager: Portage-2.3.38, Repoman-2.3.9 .../files/opencolorio-1.1.0-yaml-cpp-0.6.patch | 54 ++++++++++++++++++++++ media-libs/opencolorio/opencolorio-1.1.0-r1.ebuild | 1 + 2 files changed, 55 insertions(+)