Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834359 - app-emulation/vice-3.6.1 with ffmpeg-5: ffmpeglib.h:89:31: error: unknown type name ‘AVCodecContext’; did you mean ‘AVIODirContext’?
Summary: app-emulation/vice-3.6.1 with ffmpeg-5: ffmpeglib.h:89:31: error: unknown typ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL: https://sourceforge.net/p/vice-emu/bu...
Whiteboard: Workaround dep applied
Keywords:
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 10:22 UTC by Kobboi
Modified: 2023-12-26 14:39 UTC (History)
1 user (show)

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


Attachments
build.log.gz (build.log.gz,21.02 KB, application/gzip)
2022-02-28 10:22 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 10:23 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 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(-)
Comment 6 Larry the Git Cow gentoo-dev 2022-12-26 13:33:30 UTC
The bug has been referenced in the following commit(s):

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

commit c3fcffdf3e1a9c54fba9f664c6f11bb194f9986e
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-12-26 11:07:07 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-12-26 13:32:14 +0000

    app-emulation/vice: add 3.7
    
    ebuild changes:
    - drop IUSE=cpuhistory, new upstream default is enabled and just
      going with that (no deps, and impact should be minimal)
    - drop IUSE=jpeg, upstream removed support
    - drop --disable-static QA, not an issue with current portage and
      just harmless noise if still using an older one
    - replace deprecated atk dep
    - adjust for renamed configure options
    (may be some oversights given a lot of noise in build system changes).
    
    Upstream disabled catweasel/parsid/ssi2001 by default leaving only
    hardsid enabled out of this group. Given rather obscure, left disabled
    for now with the exception of parsid enabled with USE=parport. If
    someone use/know these and feel may make sense to enable with USE=pci,
    parport, or their own USE please file a bug.
    
    wrt bug #834359, unfortunately still broken and upstream instead
    added an explicit check:
        configure: error: ffmpeg version is not compatible. Use 4.x
    So keeping the <ffmpeg-5 dep, albeit it remains not overly important
    (could be removed/masked) and is off by default, shouldn't be a worry
    if ffmpeg-5 is to be unmasked.
    
    wrt bug #854537, odr issues seem fixed upstream
    
    Bug: https://bugs.gentoo.org/834359
    Closes: https://bugs.gentoo.org/854537
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 app-emulation/vice/Manifest        |   1 +
 app-emulation/vice/vice-3.7.ebuild | 189 +++++++++++++++++++++++++++++++++++++
 2 files changed, 190 insertions(+)
Comment 7 Larry the Git Cow gentoo-dev 2023-12-26 14:39:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47ee1f4e656be2d3148cfa7fce84ce9d575a6c53

commit 47ee1f4e656be2d3148cfa7fce84ce9d575a6c53
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-12-26 13:20:58 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-12-26 14:38:34 +0000

    app-emulation/vice: add 3.8
    
    bug #834359: This version deprecates the old (library-based) ffmpeg
    support that is still broken with >=ffmpeg-5, so simply disable it.
    Apparently has new support for using the ffmpeg executable (untested).
    
    bug #914964: Caused by the new USE=egl-only on media-libs/glew which
    disables X support, so depend on [-egl-only(-)].
    
    Switch to hard requiring zlib, could already only be disabled for
    non-gtk builds and then USE="sdl -gtk -zlib' fails to build. Not
    really worth worrying about unless someone wants this.
    
    Closes: https://bugs.gentoo.org/834359
    Closes: https://bugs.gentoo.org/914964
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 app-emulation/vice/Manifest        |   1 +
 app-emulation/vice/vice-3.8.ebuild | 186 +++++++++++++++++++++++++++++++++++++
 2 files changed, 187 insertions(+)