Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834391 - media-sound/aqualung-1.1-r101 with ffmpeg-5.0: dec_lavc.c:274:48: error: ‘AVStream’ has no member named ‘codec’
Summary: media-sound/aqualung-1.1-r101 with ffmpeg-5.0: dec_lavc.c:274:48: error: ‘AVS...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Daniel Pielmeier
URL:
Whiteboard: Workaround dep applied; could disable...
Keywords:
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 20:08 UTC by Kobboi
Modified: 2023-07-15 07:07 UTC (History)
2 users (show)

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


Attachments
build.log.gz (build.log.gz,3.65 KB, application/gzip)
2022-02-28 20:08 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 20:08 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 20:08:07 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..    -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread        -Wall -O2 -march=znver3 -pipe -g -ggdb3 -c -o dec_vorbis.o dec_vorbis.c
dec_lavc.c: In function ‘decode_audio’:
dec_lavc.c:122:15: warning: implicit declaration of function ‘avcodec_decode_audio4’; did you mean ‘avcodec_decode_subtitle2’? [-Wimplicit-function-declaration]
  122 |         ret = avcodec_decode_audio4(avctx, &frame, &got_frame, avpkt);
      |               ^~~~~~~~~~~~~~~~~~~~~
      |               avcodec_decode_subtitle2
dec_lavc.c: In function ‘decode_lavc’:
dec_lavc.c:200:9: warning: implicit declaration of function ‘av_free_packet’; did you mean ‘av_get_packet’? [-Wimplicit-function-declaration]
  200 |         av_free_packet(&packet);
      |         ^~~~~~~~~~~~~~
      |         av_get_packet
dec_lavc.c: In function ‘lavc_decoder_open’:
dec_lavc.c:274:48: error: ‘AVStream’ has no member named ‘codec’
  274 |                 if (pd->avFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
      |                                                ^~
dec_lavc.c:282:67: error: ‘AVStream’ has no member named ‘codec’
  282 |      pd->avCodecCtx = pd->avFormatCtx->streams[pd->audioStream]->codec;
      |                                                                ^~

dec_lavc.c:292:21: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  292 |         pd->avCodec = avcodec_find_decoder(pd->avCodecCtx->codec_id);
      |                     ^
file_decoder.c: In function ‘file_decoder_init’:
file_decoder.c:175:9: warning: implicit declaration of function ‘av_register_all’ [-Wimplicit-function-declaration]
  175 |         av_register_all();
      |         ^~~~~~~~~~~~~~~
make[3]: *** [Makefile:477: dec_lavc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/var/tmp/portage/media-sound/aqualung-1.1-r101/work/aqualung-1.1/src/decoder'
make[2]: *** [Makefile:1282: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-sound/aqualung-1.1-r101/work/aqualung-1.1/src'
make[1]: *** [Makefile:444: all-recursive] Error 1


Reproducible: Always
Comment 1 Kobboi 2022-02-28 20:08:18 UTC
Created attachment 766043 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 20:08:20 UTC
Created attachment 766044 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 20:09:55 UTC
Compiles fine with:
* USE=ffmpeg and ffmpeg-4.4.1
* USE=-ffmpeg and ffmpeg-5.0
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-28 12:41:07 UTC
Ping
Comment 5 Larry the Git Cow gentoo-dev 2023-02-15 06:23:23 UTC
The bug has been referenced in the following commit(s):

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

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

    media-sound/aqualung: depend on <ffmpeg-5
    
    Bug: https://bugs.gentoo.org/834391
    Signed-off-by: Sam James <sam@gentoo.org>

 media-sound/aqualung/aqualung-1.1-r102.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Comment 6 Larry the Git Cow gentoo-dev 2023-06-25 12:58:54 UTC
The bug has been closed via the following commit(s):

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

commit 2728cd9bdaadb3dc07c4fc6f67670b4a02aa0639
Author:     Daniel Pielmeier <billie@gentoo.org>
AuthorDate: 2023-06-25 12:58:19 +0000
Commit:     Daniel Pielmeier <billie@gentoo.org>
CommitDate: 2023-06-25 12:58:19 +0000

    media-sound/aqualung: aqualung-1.2 should compile with all current ffmpeg versions
    
    Closes: https://bugs.gentoo.org/834391
    Signed-off-by: Daniel Pielmeier <billie@gentoo.org>

 media-sound/aqualung/{aqualung-1.2.ebuild => aqualung-1.2-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)