Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 876760 - media-video/mplayer-1.4-r1 with ffmpeg-5.1: av_helpers.c:54:32: error: 'const struct AVCodec' has no member named 'decode'
Summary: media-video/mplayer-1.4-r1 with ffmpeg-5.1: av_helpers.c:54:32: error: 'const...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard: Workaround dep applied; snapshot may ...
Keywords:
Depends on:
Blocks: ffmpeg-5.0 888821
  Show dependency tree
 
Reported: 2022-10-11 12:02 UTC by Paolo Pedroni
Modified: 2023-03-05 11:37 UTC (History)
1 user (show)

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


Attachments
mplayer-1.4-r1:20221011-101137.log.gz (mplayer-1.4-r1:20221011-101137.log.gz,25.30 KB, application/gzip)
2022-10-11 12:02 UTC, Paolo Pedroni
Details
build log (build.log,223.45 KB, text/plain)
2022-12-21 20:05 UTC, Gary E. Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Pedroni 2022-10-11 12:02:54 UTC
Created attachment 823609 [details]
mplayer-1.4-r1:20221011-101137.log.gz

x86_64-pc-linux-gnu-gcc -MMD -MP -Wundef  -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdecla
ration-after-statement -std=gnu99  -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O2 -pipe -frecord-gcc
-switches -march=znver3 -ftree-vectorize -flto=8 -fno-lto -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D
_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE  -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0   -D_REENTRANT  -I/usr/include/dvdcss 
 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -DZLIB_CONST -I/usr/include
/bs2b    -I/usr/include/dvdcss  -c -o av_helpers.o av_helpers.c
[...]
av_helpers.c: In function 'mp_msp_av_log_callback':
av_helpers.c:54:32: error: 'const struct AVCodec' has no member named 'decode'
   54 |                     if(s->codec->decode)
      |                                ^~
av_helpers.c:57:32: error: 'const struct AVCodec' has no member named 'decode'
   57 |                     if(s->codec->decode)
      |                                ^~
av_helpers.c: In function 'lavc_encode_audio':
av_helpers.c:121:5: warning: 'channels' is deprecated [-Wdeprecated-declarations]
  121 |     int planar = ctx->channels > 1 && av_sample_fmt_is_planar(ctx->sample_fmt);
      |     ^~~
In file included from av_helpers.c:21:
/usr/include/libavcodec/avcodec.h:1006:9: note: declared here
 1006 |     int channels;
      |         ^~~~~~~~
av_helpers.c:127:5: warning: 'channels' is deprecated [-Wdeprecated-declarations]
  127 |     if ((ctx->channels == 6 || ctx->channels == 5) &&
      |     ^~
/usr/include/libavcodec/avcodec.h:1006:9: note: declared here
 1006 |     int channels;
      |         ^~~~~~~~
av_helpers.c:127:5: warning: 'channels' is deprecated [-Wdeprecated-declarations]
  127 |     if ((ctx->channels == 6 || ctx->channels == 5) &&
      |     ^~
/usr/include/libavcodec/avcodec.h:1006:9: note: declared here
 1006 |     int channels;
      |         ^~~~~~~~
av_helpers.c:131:29: warning: 'channels' is deprecated [-Wdeprecated-declarations]
  131 |                             ctx->channels,
      |                             ^~~
/usr/include/libavcodec/avcodec.h:1006:9: note: declared here
 1006 |     int channels;
      |         ^~~~~~~~
av_helpers.c:134:5: warning: 'channels' is deprecated [-Wdeprecated-declarations]
  134 |     frame->nb_samples = src_len / ctx->channels / bps;
      |     ^~~~~
/usr/include/libavcodec/avcodec.h:1006:9: note: declared here
 1006 |     int channels;
      |         ^~~~~~~~
av_helpers.c:145:17: warning: 'channels' is deprecated [-Wdeprecated-declarations]
  145 |                 tmps += ctx->channels * bps;
      |                 ^~~~
/usr/include/libavcodec/avcodec.h:1006:9: note: declared here
 1006 |     int channels;
      |         ^~~~~~~~
av_helpers.c:151:5: warning: 'channels' is deprecated [-Wdeprecated-declarations]
  151 |     frame->channels = ctx->channels;
      |     ^~~~~
In file included from /usr/include/libavcodec/avcodec.h:35:
/usr/include/libavutil/frame.h:643:9: note: declared here
  643 |     int channels;
      |         ^~~~~~~~
av_helpers.c:151:5: warning: 'channels' is deprecated [-Wdeprecated-declarations]
  151 |     frame->channels = ctx->channels;
      |     ^~~~~
/usr/include/libavcodec/avcodec.h:1006:9: note: declared here
 1006 |     int channels;
      |         ^~~~~~~~
av_helpers.c:152:5: warning: 'channels' is deprecated [-Wdeprecated-declarations]
  152 |     n = avcodec_fill_audio_frame(frame, ctx->channels, ctx->sample_fmt, src, src_len, 1);
      |     ^
/usr/include/libavcodec/avcodec.h:1006:9: note: declared here
 1006 |     int channels;
      |         ^~~~~~~~
av_helpers.c:155:5: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
  155 |     av_init_packet(&pkt);
      |     ^~~~~~~~~~~~~~

# emerge --info =media-video/mplayer-1.4-r1
Portage 3.0.38.1 (python 3.10.6-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-12.2.0, glibc-2.35-r8, 5.19.14-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.19.14-gentoo-x86_64-AMD_Ryzen_7_5700G_with_Radeon_Graphics-with-glibc2.35
KiB Mem:    65121120 total,  46750544 free
KiB Swap:   67108860 total,  66973436 free
Timestamp of repository gentoo: Tue, 11 Oct 2022 06:45:01 +0000
Head commit of repository gentoo: f6be995390f231f408bc0315dc44e9265a4b3e91
sh dash 0.5.11.5
ld GNU ld (Gentoo 2.39 p5) 2.39.0
distcc 3.4 x86_64-pc-linux-gnu [disabled]
ccache version 4.5.1 [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r1::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           3.10.6_p4::gentoo
dev-lang/rust:             1.62.1::gentoo
dev-util/ccache:           4.5.1::gentoo
dev-util/cmake:            3.23.3::gentoo
dev-util/meson:            0.62.2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          251.4::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r3::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo
sys-devel/gcc:             12.2.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
AR="/usr/bin/gcc-ar"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -frecord-gcc-switches -march=znver3 -ftree-vectorize -flto=8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -frecord-gcc-switches -march=znver3 -ftree-vectorize -flto=8"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going y --with-bdeps y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -frecord-gcc-switches -march=znver3 -ftree-vectorize -flto=8"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live cgroup compress-build-logs config-protect-if-modified distlocks ebuild-locks ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-elog split-log strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -frecord-gcc-switches -march=znver3 -ftree-vectorize -flto=8"
GENTOO_MIRRORS="http://tux.rainside.sk/gentoo/ https://mirror.init7.net/gentoo/ http://mirror.leaseweb.com/gentoo/ http://mirror.netcologne.de/gentoo/"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -ftree-vectorize -flto=8"
LINGUAS="it it_IT"
MAKEOPTS="-j16 -l16"
NM="/usr/bin/gcc-nm"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RANLIB="/usr/bin/gcc-ranlib"
SHELL="/bin/bash"
USE="X a52 aac aalib acl acpi activities adns alsa amd64 ao audiofile bash-completion bluetooth branding brotli bzip2 cairo caps cdda cddb cdparanoia cdr cli crypt css cups curl dbus declarative dga djvu dri dts dvd dvdr encode exif expat fbcon ffmpeg fftw flac fontconfig foomaticdb fortran ftp gd gdbm geoip gif gimp gmp gnutls gphoto2 gpm graphviz gstreamer gtk gui guile handbook iconv icu idn imagemagick imlib introspection ipv6 java javascript jbig jemalloc jpeg jpeg2k kde kwallet lame lcms libass libglvnd libnotify libsamplerate libtirpc lm-sensors lua lz4 lzma lzo mad magic mmap mng mp3 mp4 mpeg mplayer multilib musicbrainz ncurses nls nptl offensive ogg openal opengl openmp opus pam pango pcre pdf plasma png policykit postscript ppds pulseaudio qml qt5 rdesktop readline recode samba sctp sdl seccomp sndfile sockets speex spell split-usr sqlite ssl startup-notification svg symlink syslog systemd sysvipc taglib telemetry test theora threads tidy tiff truetype udev udisks unicode upower usb v4l vaapi vala verify-sig vim-syntax vnc vorbis wavpack wayland webp widgets win32codecs wmf wxwidgets x264 xattr xcb xinerama xml xpm xscreensaver xv xvid yahoo zip zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="hda-intel virmidi" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

media-video/mplayer-1.4-r1::gentoo was built with the following:
USE="X a52 aalib alsa bidi bs2b cddb cdio cdparanoia dga dts dvd dvdnav enca fbcon ftp iconv ipv6 jpeg libass lzo mad md5sum mng mp3 network openal opengl osdmenu png pulseaudio rar rtc samba sdl shm speex tga theora truetype unicode v4l vorbis xinerama xscreensaver xv (-aqua) -bl -bluray -cpudetection -debug -doc -dv -dvb -encode -faac -faad -ggi -gsm -jack -joystick -ladspa -libcaca -libmpeg2 -lirc -live -nas -oss -pnm -pvr -radio -rtmp (-selinux) -toolame -tremor -twolame -vcd -vdpau (-vidix) -x264 -xvid -yuv4mpeg -zoran" ABI_X86="(64)" CPU_FLAGS_X86="mmx mmxext sse sse2 ssse3 -3dnow -3dnowext" VIDEO_CARDS="-mga"
CFLAGS="-O2 -pipe -frecord-gcc-switches -march=znver3 -ftree-vectorize -flto=8 -fno-lto"
CXXFLAGS="-O2 -pipe -frecord-gcc-switches -march=znver3 -ftree-vectorize -flto=8 -fno-lto"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -ftree-vectorize -flto=8 -fno-lto"

# emerge -1pqv =media-video/mplayer-1.4-r1
[ebuild   R   ] media-video/mplayer-1.4-r1  USE="X a52 aalib alsa bidi bs2b cddb cdio cdparanoia dga dts dvd dvdnav enca fbcon ftp iconv ipv6 jpeg libass lzo mad md5sum mng mp3 network openal opengl osdmenu png pulseaudio rar rtc samba sdl shm speex tga theora truetype unicode v4l vorbis xinerama xscreensaver xv (-aqua) -bl -bluray -cpudetection -debug -doc -dv -dvb -encode -faac -faad -ggi -gsm -jack -joystick -ladspa -libcaca -libmpeg2 -lirc -live -nas -oss -pnm -pvr -radio -rtmp (-selinux) -toolame -tremor -twolame -vcd -vdpau (-vidix) -x264 -xvid -yuv4mpeg -zoran" CPU_FLAGS_X86="mmx mmxext sse sse2 ssse3 -3dnow -3dnowext" VIDEO_CARDS="-mga"
Comment 1 Gary E. Miller 2022-12-21 20:03:26 UTC
I have the same issue.

pi9 ~ # emerge -pqv '=media-video/mplayer-1.4-r1::gentoo'
[ebuild   R   ] media-video/mplayer-1.4-r1  USE="X a52 alsa bluray cdio dts dv dvb enca encode faac faad iconv ipv6 jpeg ladspa libass libmpeg2 lzo mad mng mp3 network openal opengl osdmenu png pulseaudio pvr rtmp shm theora toolame tremor truetype twolame unicode v4l vorbis x264 xscreensaver xv xvid yuv4mpeg -aalib (-aqua) -bidi -bl (-bs2b) -cddb -cdparanoia (-cpudetection) -debug -dga -doc (-dvd) -dvdnav -fbcon -ftp (-ggi) -gsm -jack -joystick -libcaca -lirc -live -md5sum -nas -oss -pnm -radio -rar -rtc -samba -sdl (-selinux) -speex -tga -vcd (-vdpau) (-vidix) -xinerama -zoran" VIDEO_CARDS="(-mga)" 


pi9 ~ # emerge --info '=media-video/mplayer-1.4-r1::gentoo'
Portage 3.0.41 (python 3.10.9-final-0, default/linux/arm64/17.0/desktop, gcc-12, glibc-2.36-r6, 5.15.61_p20220830-raspberrypi-v8 aarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.61_p20220830-raspberrypi-v8-aarch64-with-glibc2.36
KiB Mem:     3639008 total,   1935148 free
KiB Swap:    4194300 total,   3894700 free
Timestamp of repository gentoo: Wed, 21 Dec 2022 17:15:01 +0000
Head commit of repository gentoo: 8a98a5a67a6dc5a793123e92a32c85880d4a7bf1
sh bash 5.2_p15
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.2_p15::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.9.13::gentoo, 3.10.9::gentoo, 3.11.1::gentoo
dev-lang/rust:             1.66.0::gentoo
dev-util/cmake:            3.25.1::gentoo
dev-util/meson:            0.64.1::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo, 2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo, 15.0.6::gentoo
sys-devel/gcc:             11.3.0::gentoo, 12.2.1_p20221210::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             14.0.6-r1::gentoo, 15.0.6::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo, 15.0.6::gentoo
sys-devel/make:            4.4::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="*"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-march=armv8-a+crc -mtune=cortex-a72 -ftree-vectorize -O2 -pipe -fomit-frame-pointer"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/boot/cmdline.txt /boot/config.txt /etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=1 --load-average=2 --keep-going=y --backtrack=30"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.cs.utah.edu/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en"
MAKEOPTS="-j2 -l3"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac aacs acl acpi alsa alsa-plugin aom archive arm64 bash-completion blake2 bluetooth bluray branding bzip2 cairo cdda cdp cdr cec chromecast cli cpudetection crypt cups dav1d dbus dri drm dts dvb dvdr edp egl elogind encode exif expat fdk fdp ffmpeg flac fontconfig fortran fuse gdbm gif gl gles1 gles2 glib gmp gpm gstreamer gtk gui hardcoded-tables harfbuzz iconv icu introspection ipv6 jpeg jpeg2k jpegxl kvazaar ladspa lastfm lcms libaom libass libdrm libglvnd libmpv libnotify libsamplerate libtirpc lv2 lz4 lzma lzo mad matroska minizip mmal mng mp3 mp4 mpeg mtp ncurses netlink nfs nfsv41 nftables nptl offensive ogg openal opengl openh264 openmp openssl opus pam pango pcap pcre pdf pipewire png policykit postproc ppds projectm pulseaudio qt5 raspberry-pi rav1e readline rtmp rubberband sctp sftp sonmp sox spell split-usr sqlite srt ssl startup-notification suid svg svt-av1 test-rust theora threads tiff tls-heartbeat tools tremor truetype twolame udev udf udisks unicode upnp upower usb v4l vim-syntax vlc vmaf vorbis vpx vulkan webp wxwidgets x264 x265 xattr xcb xft xml xscreensaver xv xvid yuv4mpeg zeroconf zimg zink zlib zstd" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AArch64 BPF WebAssembly" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27 ruby31" USERLAND="GNU" VIDEO_CARDS="fbdev vc4 v3d" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

media-video/mplayer-1.4-r1::gentoo was built with the following:
USE="X a52 alsa bluray cdio dts dv dvb enca encode faac faad iconv ipv6 jpeg ladspa libass libmpeg2 lzo mad mng mp3 network openal opengl osdmenu png pulseaudio pvr rtmp shm theora toolame tremor truetype twolame unicode v4l vorbis x264 xscreensaver xv xvid yuv4mpeg -aalib (-aqua) -bidi -bl (-bs2b) -cddb -cdparanoia (-cpudetection) -debug -dga -doc (-dvd) -dvdnav -fbcon -ftp (-ggi) -gsm -jack -joystick -libcaca -lirc -live -md5sum -nas -oss -pnm -radio -rar -rtc -samba -sdl (-selinux) -speex -tga -vcd (-vdpau) (-vidix) -xinerama -zoran" VIDEO_CARDS="(-mga)"
Comment 2 Gary E. Miller 2022-12-21 20:05:07 UTC
Created attachment 844559 [details]
build log

build log
Comment 3 Gary E. Miller 2023-01-05 22:29:06 UTC
Same error with media-video/mplayer-1.5 and media-video/ffmpeg-5.1.2-r1

Should I just give up on mplayer?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-06 00:44:02 UTC
(In reply to Gary E. Miller from comment #3)
> Same error with media-video/mplayer-1.5 and media-video/ffmpeg-5.1.2-r1
> 
> Should I just give up on mplayer?

mplayer has kind of odd maintenance upstream, very infrequent releases.

But keep in mind ffmpeg 5+ is masked for a reason. Stuff upstream is always very slow to adapt to new ffmpeg releases.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-21 05:35:54 UTC
Fixed in 1.5.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-21 05:36:35 UTC
or I guess not really fixed as we don't have ffmpeg 5 in tree anymore, just 5.1,.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-21 05:46:42 UTC
Arch seem to take a snapshot for 5.1 support.
Comment 8 Larry the Git Cow gentoo-dev 2023-02-15 06:23:27 UTC
The bug has been referenced in the following commit(s):

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

commit f1e4f232f247abdb1cc98c6647688184e89a9c84
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-15 06:20:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-15 06:20:02 +0000

    media-video/mplayer: depend on <ffmpeg-5
    
    A snapshot may help.
    
    Bug: https://bugs.gentoo.org/876760
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/mplayer/mplayer-1.5.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 9 Larry the Git Cow gentoo-dev 2023-02-15 07:36:19 UTC
The bug has been referenced in the following commit(s):

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

commit 182bb7a92d0e6fc1f0bc32546d53d12f40d86215
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-15 07:25:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-15 07:25:59 +0000

    media-video/mplayer: add 1.5_p20230215 (snapshot for >=ffmpeg-5, unkw'd for now)
    
    Unkeyworded until had some more testing (please let us know in a comment
    on one of the linked bugs if it works/doesn't).
    
    Bug: https://bugs.gentoo.org/876760
    Bug: https://bugs.gentoo.org/888821
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/mplayer/Manifest                     |   1 +
 media-video/mplayer/files/prepare_mplayer.sh     |  42 +-
 media-video/mplayer/mplayer-1.5_p20230215.ebuild | 631 +++++++++++++++++++++++
 media-video/mplayer/mplayer-9999.ebuild          |  10 +-
 4 files changed, 665 insertions(+), 19 deletions(-)