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

Bug 834359

Summary: app-emulation/vice-3.6.1 with ffmpeg-5: ffmpeglib.h:89:31: error: unknown type name ‘AVCodecContext’; did you mean ‘AVIODirContext’?
Product: Gentoo Linux Reporter: Kobboi <gentoo>
Component: Current packagesAssignee: Gentoo Games <games>
Status: CONFIRMED ---    
Severity: normal CC: ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://sourceforge.net/p/vice-emu/bugs/1697/
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 831437    
Attachments: build.log.gz
emerge-info.txt

Description Kobboi 2022-02-28 10:22:14 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../src  -I../../src/systemheaderoverride -DNDEBUG -I../../src/arch/shared -I../../src -I../../src -I../../src/sounddrv -I../../src/arch/gtk3 -I../../src/arch  -W -Wall -Wextra -Wformat -Wformat-signedness -Wshadow -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wuninitialized -Wunreachable-code -Werror=implicit-function-declaration -Wfatal-errors -Wdiscarded-qualifiers -Wno-sign-compare -Wno-missing-field-initializers -Wno-ignored-qualifiers -Wno-unused-parameter -fopenmp -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread  -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/lib64/libffi/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/uuid -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/sysprof-3 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread  -pthread -O2 -march=znver3 -pipe -g -ggdb3 -c -o jpegdrv.o jpegdrv.c
ffmpegdrv.c:33: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
   33 | #pragma clang diagnostic push
      | 
ffmpegdrv.c:34: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas]
   34 | #pragma clang diagnostic ignored "-Wdeprecated-declarations"
      | 
In file included from ffmpegdrv.c:42:
ffmpeglib.h:89:31: error: unknown type name ‘AVCodecContext’; did you mean ‘AVIODirContext’?
   89 | typedef int(*avcodec_open2_t)(AVCodecContext*, AVCodec*, AVDictionary **);
      |                               ^~~~~~~~~~~~~~
      |                               AVIODirContext
compilation terminated due to -Wfatal-errors.
In file included from ffmpeglib.c:33:
../../src/gfxoutputdrv/ffmpeglib.h:89:31: error: unknown type name ‘AVCodecContext’; did you mean ‘AVIODirContext’?
   89 | typedef int(*avcodec_open2_t)(AVCodecContext*, AVCodec*, AVDictionary **);
      |                               ^~~~~~~~~~~~~~
      |                               AVIODirContext
compilation terminated due to -Wfatal-errors.
make[3]: *** [Makefile:549: ffmpegdrv.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:549: ffmpeglib.o] Error 1
make[3]: Leaving directory '/var/tmp/portage/app-emulation/vice-3.6.1/work/vice-3.6.1-gtk/src/gfxoutputdrv'
make[2]: *** [Makefile:1901: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-emulation/vice-3.6.1/work/vice-3.6.1-gtk/src'
make[1]: *** [Makefile:1666: all] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-emulation/vice-3.6.1/work/vice-3.6.1-gtk/src'
make: *** [Makefile:516: all-recursive] Error 1


Reproducible: Always
Comment 1 Kobboi 2022-02-28 10:22:55 UTC
Created attachment 765980 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 10:23:00 UTC
Created attachment 765981 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 10:36:30 UTC
It does compile fine with 
* USE=ffmpeg and ffmpeg-4.4.1
* USE=-ffmpeg and ffmpeg-5.0
Comment 4 Ionen Wolkens gentoo-dev 2022-02-28 10:42:30 UTC
Thanks.

I don't see its ffmpeg recording support as important so, if upstream doesn't resolve the issue by the time want to unmask ffmpeg-5, anyone can feel free to mask the flag.
Comment 5 Larry the Git Cow gentoo-dev 2022-02-28 11:28:22 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=976c56bc20456ecd63ea64a046c7940dedbf26c8

commit 976c56bc20456ecd63ea64a046c7940dedbf26c8
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-02-28 10:56:05 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-02-28 11:26:25 +0000

    app-emulation/vice: depend on <ffmpeg-5
    
    However, if left unresolved by upstream for too long, masking
    the USE sound like a better long term solution (this feature
    is not really essential). Albeit flag is disabled by default
    and shouldn't affect many.
    
    Bug: https://bugs.gentoo.org/834359
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 app-emulation/vice/vice-3.6.1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)