Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 834397

Summary: media-sound/spek-0.8.3-r1 with ffmpeg-5.0: spek-audio.cc:82:5: error: ‘av_register_all’ was not declared in this scope
Product: Gentoo Linux Reporter: Kobboi <gentoo>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: CONFIRMED ---    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/alexkay/spek/pull/232
https://github.com/alexkay/spek/issues/218
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 831437    
Attachments: build.log.gz
emerge-info.txt

Description Kobboi 2022-02-28 20:31:26 UTC
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -include config.h -pthread -I/usr/lib64/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__
 -DNDEBUG   -O2 -march=znver3 -pipe -g -ggdb3 -std=c++11 -Wall -Wextra -c -o libspek_a-spek-utils.o `test -f 'spek-utils.cc' || echo './'`spek-utils.cc
spek-audio.cc: In constructor ‘Audio::Audio()’:
spek-audio.cc:82:5: error: ‘av_register_all’ was not declared in this scope
   82 |     av_register_all();
      |     ^~~~~~~~~~~~~~~
spek-audio.cc: In member function ‘std::unique_ptr<AudioFile> Audio::open(const string&)’:
spek-audio.cc:105:45: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
  105 |             if (format_context->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
      |                                             ^~~~~
spek-audio.cc:120:33: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
  120 |         codec_context = stream->codec;
      |                                 ^~~~~
spek-audio.cc:121:37: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  121 |         codec = avcodec_find_decoder(codec_context->codec_id);
      |                 ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     |
      |                                     const AVCodec*
spek-audio.cc: In constructor ‘AudioFileImpl::AudioFileImpl(AudioError, AVFormatContext*, int, const string&, int, int, int, int, double, bool, int, bool)’:
spek-audio.cc:201:19: warning: ‘void av_init_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  201 |     av_init_packet(&this->packet);
      |     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/libavformat/avformat.h:316,
                 from spek-audio.cc:21:
/usr/include/libavcodec/packet.h:506:6: note: declared here
  506 | void av_init_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~


Reproducible: Always
Comment 1 Kobboi 2022-02-28 20:31:43 UTC
Created attachment 766053 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 20:31:45 UTC
Created attachment 766054 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 20:31:58 UTC
Compiles fine with ffmpeg-4.4.1
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-26 06:11:23 UTC
Looks like it's less bad in 0.8.4 but not fixed yet.
Comment 6 Larry the Git Cow gentoo-dev 2022-07-26 06:22:14 UTC
The bug has been referenced in the following commit(s):

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

commit 876ecd41959cad8a382e2b364bf214c70ace77d5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-26 06:21:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-26 06:22:06 +0000

    media-sound/spek: add 0.8.4
    
    Makes ffmpeg 5 situation better but not yet enough.
    
    Bug: https://bugs.gentoo.org/834397
    Signed-off-by: Sam James <sam@gentoo.org>

 media-sound/spek/Manifest                          |  1 +
 .../spek/files/spek-0.8.4-disable-updates.patch    | 11 ++++++++
 media-sound/spek/spek-0.8.4.ebuild                 | 33 ++++++++++++++++++++++
 3 files changed, 45 insertions(+)