Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 686920

Summary: media-libs/openimageio-1.7.17 fails to build with media-video/ffmpeg-4.1.3
Product: Gentoo Linux Reporter: Israel G. Lugo <israel.lugo>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Israel G. Lugo 2019-05-28 20:26:58 UTC
Created attachment 577958 [details]
build.log

I get "error: ‘CODEC_CAP_DELAY’ was not declared in this scope" when rebuilding openimageio-1.7.17.

This seems to be caused by the API change, i.e. it's a resurfacing of bug 654160.

Error output:

/usr/bin/x86_64-pc-linux-gnu-g++ -DEMBED_PLUGINS=1 -DOpenImageIO_EXPORTS -DUSE_BOOST_ASIO=1 -DUSE_EXTERNAL_PUGIXML=1 -DUSE_FFMPEG -DUSE_FREETYPE -DUSE_GIF -DUSE_JPEG_TURBO=1 -DUSE_LIBRAW=1 -DUSE_OPENEXR_VERSION2=1 -DUSE_OPENJPEG -DUSE_OPENSSL=1 -DUSE_WEBP=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -Iinclude/OpenImageIO -I/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/include -I/usr/include/OpenEXR -Isrc/libOpenImageIO -I/usr/include/openjpeg-1.5 -I/usr/include/freetype2 -I/usr/include/freetype2/freetype2 -I/usr/include/freetype2/freetype2/freetype  -DNDEBUG -O2 -march=native -mmmx -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -mssse3 -mavx -maes -mfpmath=sse -pipe -fno-stack-protector -fPIC   -Wall -fno-math-errno -Wno-error=unused-local-typedefs -Wno-unused-local-typedefs -Wno-unused-result -Wno-error=misleading-indentation -std=c++14 -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -UUSE_FIELD3D -Wno-deprecated-declarations -MD -MT src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/ffmpeg.imageio/ffmpeginput.cpp.o -MF src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/ffmpeg.imageio/ffmpeginput.cpp.o.d -o src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/ffmpeg.imageio/ffmpeginput.cpp.o -c /var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/ffmpeg.imageio/ffmpeginput.cpp
/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/ffmpeg.imageio/ffmpeginput.cpp: In member function ‘virtual bool OpenImageIO::v1_7::FFmpegInput::open(const string&, OpenImageIO::v1_7::ImageSpec&)’:
/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/ffmpeg.imageio/ffmpeginput.cpp:333:72: error: ‘CODEC_CAP_DELAY’ was not declared in this scope
     m_codec_cap_delay = (bool) (m_codec_context->codec->capabilities & CODEC_CAP_DELAY);
                                                                        ^~~~~~~~~~~~~~~
/var/tmp/portage/media-libs/openimageio-1.7.17/work/openimageio-1.7.17/src/ffmpeg.imageio/ffmpeginput.cpp:333:72: note: suggested alternative: ‘AV_CODEC_CAP_DELAY’
     m_codec_cap_delay = (bool) (m_codec_context->codec->capabilities & CODEC_CAP_DELAY);
                                                                        ^~~~~~~~~~~~~~~
                                                                        AV_CODEC_CAP_DELAY
Comment 1 Andreas Sturmlechner gentoo-dev 2019-05-28 23:55:31 UTC

*** This bug has been marked as a duplicate of bug 686456 ***