Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834383 - media-libs/libgroove-4.3.0-r1 with ffmpeg-5.0: groove/file.c:41:27: error: ‘AVFormatContext’ has no member named ‘filename’
Summary: media-libs/libgroove-4.3.0-r1 with ffmpeg-5.0: groove/file.c:41:27: error: ‘A...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 19:24 UTC by Kobboi
Modified: 2022-08-25 13:03 UTC (History)
0 users

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


Attachments
build.log.gz (build.log.gz,10.31 KB, application/gzip)
2022-02-28 19:24 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 19:24 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 19:24:24 UTC
[1/40] /usr/bin/x86_64-pc-linux-gnu-gcc  -I/var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0 -I/var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libg
roove-4.3.0_build -I/usr/include/SDL2  -O2 -march=znver3 -pipe -g -ggdb3 -std=c99 -Wall -Werror=strict-prototypes -Werror=old-style-definition -Werror=missing-prototypes -D_REENTRANT -D_POSIX_C_SOURCE=200809L -fPIC -MD -MT CMakeFiles/groove_static.dir/groove/file.c.o -MF CMakeFiles/groove_static.dir/groove/file.c.o.d -o CMakeFiles/groove_static.dir/groove/file.c.o -c /var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0/groove/file.c
FAILED: CMakeFiles/groove_static.dir/groove/file.c.o 
/usr/bin/x86_64-pc-linux-gnu-gcc  -I/var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0 -I/var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0_build -I/usr/include/SDL2  -O2 -march=znver3 -pipe -g -ggdb3 -std=c99 -Wall -Werror=strict-prototypes -Werror=old-style-definition -Werror=missing-prototypes -D_REENTRANT -D_POSIX_C_SOURCE=200809L -fPIC -MD -MT CMakeFiles/groove_static.dir/groove/file.c.o -MF CMakeFiles/groove_static.dir/groove/file.c.o.d -o CMakeFiles/groove_static.dir/groove/file.c.o -c /var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0/groove/file.c
/var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0/groove/file.c: In function ‘groove_file_open’:
/var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0/groove/file.c:41:27: error: ‘AVFormatContext’ has no member named ‘filename’
   41 |     file->filename = f->ic->filename;
      |                           ^~
/var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0/groove/file.c:63:84: warning: passing argument 5 of ‘av_find_best_stream’ from incompatible pointer type [-Wincompatible-pointer-types]
   63 |     f->audio_stream_index = av_find_best_stream(f->ic, AVMEDIA_TYPE_AUDIO, -1, -1, &f->decoder, 0);
      |                                                                                    ^~~~~~~~~~~
      |                                                                                    |
      |                                                                                    AVCodec **
In file included from /var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0/groove/file.h:13,
                 from /var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0/groove/file.c:8:
/usr/include/libavformat/avformat.h:2161:41: note: expected ‘const AVCodec **’ but argument is of type ‘AVCodec **’
 2161 |                         const AVCodec **decoder_ret,
      |                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~
/var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0/groove/file.c:80:5: error: unknown type name ‘AVCodecContext’; use ‘struct’ keyword to refer to the type
   80 |     AVCodecContext *avctx = f->audio_st->codec;
      |     ^~~~~~~~~~~~~~
      |     struct 
/var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0/groove/file.c:80:40: error: ‘AVStream’ has no member named ‘codec’
   80 |     AVCodecContext *avctx = f->audio_st->codec;
      |                                        ^~
/var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0/groove/file.c:82:9: warning: implicit declaration of function ‘avcodec_open2’; did you mean ‘avio_open2’? [-Wimplicit-function-declaration]
   82 |     if (avcodec_open2(avctx, f->decoder, NULL) < 0) {
      |         ^~~~~~~~~~~~~
      |         avio_open2
/var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0/groove/file.c:88:15: error: request for member ‘channel_layout’ in something not a structure or union
   88 |     if (!avctx->channel_layout)
      |               ^~
/var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0/groove/file.c:89:14: error: request for member ‘channel_layout’ in something not a structure or union
   89 |         avctx->channel_layout = av_get_default_channel_layout(avctx->channels);
      |              ^~
/var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0/groove/file.c:89:68: error: request for member ‘channels’ in something not a structure or union
   89 |         avctx->channel_layout = av_get_default_channel_layout(avctx->channels);
      |                                                                    ^~
/var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0/groove/file.c:90:15: error: request for member ‘channel_layout’ in something not a structure or union
   90 |     if (!avctx->channel_layout) {
      |               ^~
/var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0/groove/file.c: In function ‘groove_file_close’:
/var/tmp/portage/media-libs/libgroove-4.3.0-r1/work/libgroove-4.3.0/groove/file.c:112:9: error: unknown type name ‘AVCodecContext’; use ‘struct’ keyword to refer to the type
  112 |         AVCodecContext *avctx = f->ic->streams[f->audio_stream_index]->codec;
      |         ^~~~~~~~~~~~~~
(...)

Reproducible: Always
Comment 1 Kobboi 2022-02-28 19:24:44 UTC
Created attachment 766029 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 19:24:46 UTC
Created attachment 766030 [details]
emerge-info.txt
Comment 3 Larry the Git Cow gentoo-dev 2022-07-26 06:22:15 UTC
The bug has been referenced in the following commit(s):

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

commit 40d23e92c1056ce0dcf0e6d23857a5ebafa795f5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-26 06:07:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-26 06:22:06 +0000

    profiles: last-rite media-libs/libgroove
    
    Bug: https://bugs.gentoo.org/834383
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2022-08-25 13:03:51 UTC
The bug has been closed via the following commit(s):

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

commit 327069aff4a3186dacb7f5da192af2e8dc27f729
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2022-08-25 13:03:51 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2022-08-25 13:03:51 +0000

    media-libs/libgroove: treeclean
    
    Closes: https://bugs.gentoo.org/834383
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 media-libs/libgroove/Manifest                      |   1 -
 .../files/libgroove-4.3.0_GNUInstallDirs.patch     | 105 ---------------------
 .../libgroove/files/libgroove-4.3.0_cflags.patch   |  43 ---------
 .../libgroove/files/libgroove-4.3.0_ffmpeg4.patch  |  47 ---------
 .../files/libgroove-4.3.0_sdl2_include_dir.patch   |  13 ---
 media-libs/libgroove/libgroove-4.3.0-r1.ebuild     |  43 ---------
 media-libs/libgroove/metadata.xml                  |  21 -----
 profiles/package.mask                              |   5 -
 8 files changed, 278 deletions(-)