Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834425 - dev-games/openscenegraph-openmw-3.6_p20211017-r1 with ffmpeg-5.0: src/osgPlugins/ffmpeg/FFmpegPacket.hpp:45:17: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’?
Summary: dev-games/openscenegraph-openmw-3.6_p20211017-r1 with ffmpeg-5.0: src/osgPlug...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Alexey
URL: https://github.com/openscenegraph/Ope...
Whiteboard: Workaround dep applied; could disable...
Keywords: PullRequest
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 22:21 UTC by Kobboi
Modified: 2023-02-16 10:01 UTC (History)
3 users (show)

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


Attachments
build.log.gz (build.log.gz,64.66 KB, application/gzip)
2022-02-28 22:21 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 22:22 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-02-28 22:21:33 UTC
[1341/1598] /usr/bin/x86_64-pc-linux-gnu-g++ -DUSE_SWRESAMPLE -DUSE_SWSCALE -D__STDC_CONSTANT_MACROS -Dosgdb_ffmpeg_EXPORTS -I/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6_build/include -I/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/include -I/usr/include/libswscale -I/usr/include/libswresample  -D__STDC_CONSTANT_MACROS -O2 -march=znver3 -pipe -g -ggdb3 -Wall -Wparentheses -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -Wmaybe-uninitialized -Wextra -Wshadow -Wno-misleading-indentation -Wno-deprecated-declarations -fPIC -MD -MT src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/ReaderWriterFFmpeg.cpp.o -MF src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/ReaderWriterFFmpeg.cpp.o.d -o src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/ReaderWriterFFmpeg.cpp.o -c /var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp
FAILED: src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/ReaderWriterFFmpeg.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DUSE_SWRESAMPLE -DUSE_SWSCALE -D__STDC_CONSTANT_MACROS -Dosgdb_ffmpeg_EXPORTS -I/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6_build/include -I/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/include -I/usr/include/libswscale -I/usr/include/libswresample  -D__STDC_CONSTANT_MACROS -O2 -march=znver3 -pipe -g -ggdb3 -Wall -Wparentheses -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused -Wmaybe-uninitialized -Wextra -Wshadow -Wno-misleading-indentation -Wno-deprecated-declarations -fPIC -MD -MT src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/ReaderWriterFFmpeg.cpp.o -MF src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/ReaderWriterFFmpeg.cpp.o.d -o src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/ReaderWriterFFmpeg.cpp.o -c /var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp
In file included from /var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.hpp:10,
                 from /var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/FFmpegDecoder.hpp:5,
                 from /var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/FFmpegImageStream.hpp:5,
                 from /var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp:15:
/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/FFmpegPacket.hpp: In member function ‘void osgFFmpeg::FFmpegPacket::clear()’:
/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/FFmpegPacket.hpp:45:17: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’?
   45 |                 av_free_packet(&packet);
      |                 ^~~~~~~~~~~~~~
      |                 av_new_packet
In file included from /var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/FFmpegDecoder.hpp:6,
                 from /var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/FFmpegImageStream.hpp:5,
                 from /var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp:15:
/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.hpp: At global scope:
/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.hpp:91:25: error: ‘AVPicture’ has not been declared
   91 |     void yuva420pToRgba(AVPicture *dst, AVPicture *src, int width, int height);
      |                         ^~~~~~~~~
/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.hpp:91:41: error: ‘AVPicture’ has not been declared
   91 |     void yuva420pToRgba(AVPicture *dst, AVPicture *src, int width, int height);
      |                                         ^~~~~~~~~
/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.hpp:93:17: error: ‘AVPicture’ has not been declared
   93 |     int convert(AVPicture *dst, int dst_pix_fmt, AVPicture *src,
      |                 ^~~~~~~~~
/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.hpp:93:50: error: ‘AVPicture’ has not been declared
   93 |     int convert(AVPicture *dst, int dst_pix_fmt, AVPicture *src,
      |                                                  ^~~~~~~~~
/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp:223:43: error: use of enum ‘AVLockOp’ without previous declaration
  223 |     static int lockMgr(void **mutex, enum AVLockOp op)
      |                                           ^~~~~~~~
/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp: In constructor ‘ReaderWriterFFmpeg::ReaderWriterFFmpeg()’:
/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp:118:9: error: ‘av_lockmgr_register’ was not declared in this scope
  118 |         av_lockmgr_register(&lockMgr);
      |         ^~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp:121:9: error: ‘av_register_all’ was not declared in this scope
  121 |         av_register_all();
      |         ^~~~~~~~~~~~~~~
/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp: In static member function ‘static int ReaderWriterFFmpeg::lockMgr(void**, int)’:
/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp:227:17: error: ‘AV_LOCK_CREATE’ was not declared in this scope; did you mean ‘AV_LOG_TRACE’?
  227 |         if (op==AV_LOCK_CREATE)
      |                 ^~~~~~~~~~~~~~
      |                 AV_LOG_TRACE
/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp:232:22: error: ‘AV_LOCK_DESTROY’ was not declared in this scope
  232 |         else if (op==AV_LOCK_DESTROY)
      |                      ^~~~~~~~~~~~~~~
/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp:237:22: error: ‘AV_LOCK_OBTAIN’ was not declared in this scope
  237 |         else if (op==AV_LOCK_OBTAIN)
      |                      ^~~~~~~~~~~~~~
/var/tmp/portage/dev-games/openscenegraph-openmw-3.6_p20211017-r1/work/osg-bbe61c3bc510a4f5bb4aea21cce506519c2d24e6/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp:242:22: error: ‘AV_LOCK_RELEASE’ was not declared in this scope
  242 |         else if (op==AV_LOCK_RELEASE)
      |                      ^~~~~~~~~~~~~~~


Reproducible: Always
Comment 1 Kobboi 2022-02-28 22:21:55 UTC
Created attachment 766105 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 22:22:01 UTC
Created attachment 766106 [details]
emerge-info.txt
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-28 12:42:10 UTC
Ping
Comment 4 Larry the Git Cow gentoo-dev 2023-02-15 06:46:34 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75ac033adf7b6b6fea3fc8c7f4d6265f04f8c51b

commit 75ac033adf7b6b6fea3fc8c7f4d6265f04f8c51b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-15 06:45:29 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-15 06:45:29 +0000

    dev-games/openscenegraph-openmw: depend on <ffmpeg-5
    
    Bug: https://bugs.gentoo.org/834425
    Signed-off-by: Sam James <sam@gentoo.org>

 .../openscenegraph-openmw-3.6_p20211017-r3.ebuild                   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2023-02-16 09:51:41 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96123ef466306f73fa68f3f78c9a3c7108e50941

commit 96123ef466306f73fa68f3f78c9a3c7108e50941
Author:     Alexey Sokolov <alexey+gentoo@asokolov.org>
AuthorDate: 2023-02-15 23:54:22 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-02-16 09:51:13 +0000

    dev-games/openscenegraph-openmw: add 3.6_p20221115, drop 3.6_p20211017-r3
    
    Drop support for ffmpeg. Such commit probably shouldn't apply to
    upstream OSG though.
    
    Closes: https://github.com/gentoo/gentoo/pull/29599
    Bug: https://bugs.gentoo.org/834425
    Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-games/openscenegraph-openmw/Manifest                         | 2 +-
 ...1017-r3.ebuild => openscenegraph-openmw-3.6_p20221115.ebuild} | 9 +++------
 2 files changed, 4 insertions(+), 7 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77bc1896b237888d9a4399b113433daac6a17a59

commit 77bc1896b237888d9a4399b113433daac6a17a59
Author:     Alexey Sokolov <alexey+gentoo@asokolov.org>
AuthorDate: 2023-02-15 23:50:52 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-02-16 09:51:05 +0000

    games-engines/openmw: stop requiring ffmpeg in osg
    
    Limit openmw-0.47 itself to <ffmpeg-5, but it's fixed in openmw-0.48
    which is not released yet
    
    Bug: https://bugs.gentoo.org/834425
    Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../openmw/{openmw-0.47.0-r1.ebuild => openmw-0.47.0-r2.ebuild}   | 8 ++++----
 games-engines/openmw/openmw-9999.ebuild                           | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)