Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651970 - media-libs/opencolorio-1.1.0-r1 fails to compile against new yaml-cpp-0.6.2 (undefined reference to `vtable for YAML::Exception')
Summary: media-libs/opencolorio-1.1.0-r1 fails to compile against new yaml-cpp-0.6.2 (...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords: PATCH
: 653492 (view as bug list)
Depends on:
Blocks: CVE-2017-5950
  Show dependency tree
 
Reported: 2018-03-30 10:07 UTC by Bernd Feige
Modified: 2018-05-20 22:36 UTC (History)
10 users (show)

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


Attachments
opencolorio-yaml-cpp-0.6.patch (yaml-cpp-0.6.patch,2.26 KB, patch)
2018-03-30 11:50 UTC, Joakim Gebart Nohlgård
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Feige 2018-03-30 10:07:57 UTC
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
Comment 1 Joakim Gebart Nohlgård 2018-03-30 11:39:53 UTC
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.
Comment 2 Joakim Gebart Nohlgård 2018-03-30 11:50:23 UTC
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.
Comment 3 Bernd Feige 2018-03-30 12:06:09 UTC
(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.
Comment 4 Paul Preney 2018-04-07 13:02:33 UTC
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.
Comment 5 Ștefan Talpalaru 2018-04-08 23:39:30 UTC
media-libs/opencolorio-1.1.0-r2 with the proposed patch is now available in my overlay: https://github.com/stefantalpalaru/gentoo-overlay
Comment 6 Peter Asplund 2018-04-28 20:11:57 UTC
I have the same issue, it would be nice to get the patch into main.
Comment 7 Kobboi 2018-04-28 20:21:03 UTC
(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.
Comment 8 Toralf Förster gentoo-dev 2018-04-29 11:38:04 UTC
*** Bug 653492 has been marked as a duplicate of this bug. ***
Comment 9 Larry the Git Cow gentoo-dev 2018-05-20 22:36:50 UTC
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(+)