Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834394 - media-sound/pianobar-2020.04.05 with ffmpeg-5.0: src/player.h:71:9: error: unknown type name ‘AVCodecContext’
Summary: media-sound/pianobar-2020.04.05 with ffmpeg-5.0: src/player.h:71:9: error: un...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 20:24 UTC by Kobboi
Modified: 2022-07-26 06:43 UTC (History)
0 users

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


Attachments
build.log.gz (build.log.gz,1.51 KB, application/gzip)
2022-02-28 20:24 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 20: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 20:24:22 UTC
x86_64-pc-linux-gnu-gcc -c -o src/libpiano/response.o -O2 -march=znver3 -pipe -g -ggdb3 -std=c99 -I src/libpiano    -I/usr/include/json-c   -MMD -MF src/libpiano/response.d -MP src/libpiano/response.c
In file included from src/main.h:30,
                 from src/ui_readline.c:31:
src/player.h:71:9: error: unknown type name ‘AVCodecContext’
   71 |         AVCodecContext *cctx;
      |         ^~~~~~~~~~~~~~
In file included from src/ui.h:31,
                 from src/ui.c:42:
src/player.h:71:9: error: unknown type name ‘AVCodecContext’
   71 |         AVCodecContext *cctx;
      |         ^~~~~~~~~~~~~~
In file included from src/ui.h:31,
                 from src/settings.c:42:
src/player.h:71:9: error: unknown type name ‘AVCodecContext’
   71 |         AVCodecContext *cctx;
      |         ^~~~~~~~~~~~~~
make: *** [Makefile:107: src/ui_readline.o] Error 1
make: *** Waiting for unfinished jobs....
src/player.c: In function ‘openStream’:
src/player.c:236:35: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  236 |         AVCodec * const decoder = avcodec_find_decoder (cp->codec_id);
      |                                   ^~~~~~~~~~~~~~~~~~~~
In file included from src/main.h:30,
                 from src/ui_dispatch.h:35,
                 from src/ui_dispatch.c:26:
src/player.h:71:9: error: unknown type name ‘AVCodecContext’
   71 |         AVCodecContext *cctx;
      |         ^~~~~~~~~~~~~~
src/player.c: In function ‘play’:
src/player.c:405:9: warning: ‘av_init_packet’ is deprecated [-Wdeprecated-declarations]
  405 |         av_init_packet (&pkt);
      |         ^~~~~~~~~~~~~~
In file included from /usr/include/libavcodec/avcodec.h:45,
                 from src/player.c:47:
/usr/include/libavcodec/packet.h:506:6: note: declared here
  506 | void av_init_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
make: *** [Makefile:107: src/settings.o] Error 1
make: *** [Makefile:107: src/ui_dispatch.o] Error 1
In file included from src/ui.h:31,
                 from src/ui_act.c:34:
src/player.h:71:9: error: unknown type name ‘AVCodecContext’
   71 |         AVCodecContext *cctx;
      |         ^~~~~~~~~~~~~~
In file included from src/main.h:30,
                 from src/main.c:53:
src/player.h:71:9: error: unknown type name ‘AVCodecContext’
   71 |         AVCodecContext *cctx;
      |         ^~~~~~~~~~~~~~
src/main.c: In function ‘BarMainGetLoginCredentials’:
src/main.c:141:33: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  141 |                                 read (pipeFd[0], passBuf, sizeof (passBuf)-1);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:107: src/main.o] Error 1
make: *** [Makefile:107: src/ui.o] Error 1
make: *** [Makefile:107: src/ui_act.o] Error 1
 * ERROR: media-sound/pianobar-2020.04.05::gentoo failed (compile phase):


Reproducible: Always
Comment 1 Kobboi 2022-02-28 20:24:42 UTC
Created attachment 766049 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 20:24:44 UTC
Created attachment 766050 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 20:24:55 UTC
Compiles fine with ffmpeg-4.4.1
Comment 4 Larry the Git Cow gentoo-dev 2022-07-26 06:43:54 UTC
The bug has been closed via the following commit(s):

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

commit 360e013ce0af17d027bbf36b2c23308b6d34c8fd
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-26 06:34:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-26 06:43:47 +0000

    media-sound/pianobar: add 2022.04.01
    
    Closes: https://bugs.gentoo.org/834394
    Signed-off-by: Sam James <sam@gentoo.org>

 media-sound/pianobar/Manifest                   |  1 +
 media-sound/pianobar/pianobar-2022.04.01.ebuild | 47 +++++++++++++++++++++++++
 media-sound/pianobar/pianobar-9999.ebuild       | 13 ++++---
 3 files changed, 54 insertions(+), 7 deletions(-)