In file included from /var/tmp/portage/media-libs/openimageio-1.6.13/work/openimageio-1.6.13/src/libOpenImageIO/imagebufalgo_opencv.cpp:45:0:
/var/tmp/portage/media-libs/openimageio-1.6.13/work/openimageio-1.6.13/src/include/OpenImageIO/imagebufalgo.h:51:8: error: using typedef-name ‘IplImage’ after ‘struct’
struct IplImage; // Forward declaration; used by Intel Image lib & OpenCV
In file included from /usr/include/opencv2/core/core_c.h:48:0,
/usr/include/opencv2/core/types_c.h:338:1: note: ‘IplImage’ has a previous declaration here
Downgrading to opencv-3.1.0-r7 fixes the issue.
Can confirm this bug and temporary fix as noted.
USE=-opencv also a viable workaround given how opencv-3.1.0-r7 no longer builds with vtk-7.1.0 (see https://bugs.gentoo.org/show_bug.cgi?id=607830)
Build failures occur with media-libs/openimageio-1.8.13 as well on my AMD Ryzen system. Removing the opencv USE flag resolves build failures; although, I'm not sure if the same problem is resolved or if it's yet another opencv-related issue within openimageio.
Created attachment 543642 [details]
*** This bug has been marked as a duplicate of bug 616086 ***