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
Created attachment 766053 [details] build.log.gz
Created attachment 766054 [details] emerge-info.txt
Compiles fine with ffmpeg-4.4.1
https://github.com/alexkay/spek/commit/ee8bc49ed4a93a14a933ecb0eebfe424111f8413 or https://git.exherbo.org/dev/somasis.git/commit/?id=d2a0c6a163e7ab2ede83136f39c7283d76f3683a
Looks like it's less bad in 0.8.4 but not fixed yet.
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(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5a6e89d164f5bd4688094b206170d0a37dbfa75 commit e5a6e89d164f5bd4688094b206170d0a37dbfa75 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-20 03:22:03 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-20 03:54:11 +0000 media-sound/spek: add 0.8.5 Closes: https://bugs.gentoo.org/834397 Closes: https://bugs.gentoo.org/631702 Signed-off-by: Sam James <sam@gentoo.org> media-sound/spek/Manifest | 1 + media-sound/spek/spek-0.8.5.ebuild | 35 +++++++++++++++++++++++++++++++++++ profiles/package.mask | 1 + 3 files changed, 37 insertions(+)