Discussion:
Bug#1072399: aubio: FTBFS with ffmpeg 7.0: ../src/io/source_avcodec.c:266:35: error: ‘AVCodecContext’ has no member named ‘channels’
Add Reply
Sebastian Ramacher
2024-06-02 13:20:02 UTC
Reply
Permalink
Source: aubio
Version: 0.4.9-4.4
Severity: important
Tags: trixie sid ftbfs
Usertags: ffmpeg-7.0

Hi,

during a rebuild of the reverse dependencies for the transition to
ffmpeg 7.0, your package failed to build.
make[1]: Entering directory '/<<PKGBUILDDIR>>'
python3 ./waf build --verbose --destdir=debian/tmp --prefix=/usr --enable-fftw3f --libdir=/usr/lib/aarch64-linux-gnu
Waf: Entering directory `/<<PKGBUILDDIR>>/build'
Sphinx manual: install aubio first
[ 1/231] Compiling src/spectral/dct.c
10:30:54 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/spectral/dct.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/spectral/dct.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 2/231] Compiling src/io/utils_apple_audio.c
10:30:54 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/io/utils_apple_audio.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/io/utils_apple_audio.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 3/231] Compiling src/io/sink_apple_audio.c
10:30:54 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/io/sink_apple_audio.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/io/sink_apple_audio.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 4/231] Compiling src/fvec.c
10:30:54 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/fvec.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/fvec.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 5/231] Compiling src/vecutils.c
10:30:54 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/vecutils.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/vecutils.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 6/231] Compiling src/io/source_wavread.c
10:30:54 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/io/source_wavread.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/io/source_wavread.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 7/231] Compiling src/utils/parameter.c
10:30:54 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/utils/parameter.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/utils/parameter.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 8/231] Compiling src/pitch/pitchyinfast.c
10:30:54 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/pitch/pitchyinfast.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/pitch/pitchyinfast.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 9/231] Compiling src/utils/log.c
10:30:55 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/utils/log.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/utils/log.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 10/231] Compiling src/utils/hist.c
10:30:55 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/utils/hist.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/utils/hist.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 11/231] Compiling src/pitch/pitchyin.c
10:30:55 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/pitch/pitchyin.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/pitch/pitchyin.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 12/231] Compiling src/io/source_sndfile.c
10:30:55 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/io/source_sndfile.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/io/source_sndfile.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 13/231] Compiling src/io/sink.c
10:30:55 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/io/sink.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/io/sink.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 14/231] Compiling src/temporal/resampler.c
10:30:55 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/temporal/resampler.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/temporal/resampler.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 15/231] Compiling src/temporal/filter.c
10:30:55 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/temporal/filter.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/temporal/filter.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 16/231] Compiling src/pitch/pitchspecacf.c
10:30:55 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/pitch/pitchspecacf.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/pitch/pitchspecacf.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 17/231] Compiling src/temporal/c_weighting.c
10:30:55 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/temporal/c_weighting.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/temporal/c_weighting.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 18/231] Compiling src/temporal/biquad.c
10:30:55 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/temporal/biquad.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/temporal/biquad.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 19/231] Compiling src/pitch/pitchschmitt.c
10:30:55 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/pitch/pitchschmitt.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/pitch/pitchschmitt.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
[ 20/231] Compiling src/io/source_avcodec.c
10:30:55 runner ['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/io/source_avcodec.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/io/source_avcodec.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
../src/io/source_avcodec.c:222:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
222 | codec = avcodec_find_decoder(codecpar->codec_id);
| ^
../src/io/source_avcodec.c:266:35: error: ‘AVCodecContext’ has no member named ‘channels’
266 | s->input_channels = avCodecCtx->channels;
| ^~
../src/io/source_avcodec.c:319:28: error: implicit declaration of function ‘av_get_default_channel_layout’ [-Werror=implicit-function-declaration]
319 | int64_t input_layout = av_get_default_channel_layout(s->input_channels);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/io/source_avcodec.c:376:67: error: ‘AVCodecContext’ has no member named ‘channels’
376 | int max_out_samples = AUBIO_AVCODEC_MAX_BUFFER_SIZE / avCodecCtx->channels;
| ^~
../src/io/source_avcodec.c:385:3: warning: ‘av_init_packet’ is deprecated [-Wdeprecated-declarations]
385 | av_init_packet (&avPacket);
| ^~~~~~~~~~~~~~
In file included from /usr/include/aarch64-linux-gnu/libavcodec/avcodec.h:44,
/usr/include/aarch64-linux-gnu/libavcodec/packet.h:653:6: note: declared here
653 | void av_init_packet(AVPacket *pkt);
| ^~~~~~~~~~~~~~
../src/io/source_avcodec.c:443:14: error: ‘AVFrame’ has no member named ‘channels’
443 | if (avFrame->channels != (sint_t)s->input_channels) {
| ^~
../src/io/source_avcodec.c:446:16: error: ‘AVFrame’ has no member named ‘channels’
446 | avFrame->channels, s->input_channels, s->path);
| ^~
../src/aubio_priv.h:240:81: note: in definition of macro ‘AUBIO_WRN’
240 | #define AUBIO_WRN(...) aubio_log(AUBIO_LOG_WRN, "AUBIO WARNING: " __VA_ARGS__)
| ^~~~~~~~~~~
../src/io/source_avcodec.c:465:63: error: ‘AVCodecContext’ has no member named ‘channels’
465 | max_out_samples = AUBIO_AVCODEC_MAX_BUFFER_SIZE / avCodecCtx->channels;
| ^~
../src/io/source_avcodec.c:615:30: warning: the comparison will always evaluate as ‘true’ for the address of ‘avFormatCtx’ will never be NULL [-Waddress]
615 | if (s && &(s->avFormatCtx) != NULL) {
| ^~
../src/io/source_avcodec.c:86:20: note: ‘avFormatCtx’ declared here
86 | AVFormatContext *avFormatCtx;
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
Waf: Leaving directory `/<<PKGBUILDDIR>>/build'
Build failed
{task 281472818267424: c source_avcodec.c -> source_avcodec.c.1.o}
['/usr/bin/gcc', '-g', '-Wall', '-Wextra', '-O2', '-g', '-O2', '-Werror=implicit-function-declaration', '-ffile-prefix-map=/<<PKGBUILDDIR>>=.', '-fstack-protector-strong', '-fstack-clash-protection', '-Wformat', '-Werror=format-security', '-mbranch-protection=standard', '-fPIC', '-Isrc', '-I../src', '-I/usr/include/opus', '-I/usr/include/aarch64-linux-gnu', '-DHAVE_CONFIG_H=1', '-DAUBIO_PREFIX="/usr"', '-DPACKAGE="aubio"', '../src/io/source_avcodec.c', '-c', '-o/<<PKGBUILDDIR>>/build/src/io/source_avcodec.c.1.o', '-Wdate-time', '-D_FORTIFY_SOURCE=2']
make[1]: *** [debian/rules:48: override_dh_auto_build] Error 1
The full build log is available from:
https://people.debian.org/~sramacher/ffmpeg-7.0/aubio_arm64.build

ffmpeg 7.0 is available in experimental.

Cheers
--
Sebastian Ramacher
Zixing Liu
2024-09-26 20:40:01 UTC
Reply
Permalink
Package: aubio
Version: 0.4.9-4.4
Followup-For: Bug #1072399
User: ubuntu-***@lists.ubuntu.com
Usertags: origin-ubuntu oracular ubuntu-patch
Control: tags -1 patch ftbfs

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

* d/patches: backport upstream patches
* debian/patches/ffmpeg5.1.patch: fix for FFMpeg 7
* d/p/fixpy312.patch: add a patch to fix Python 3.12 compatibility


Thanks for considering the patch.


-- System Information:
Debian Release: trixie/sid
APT prefers noble-updates
APT policy: (500, 'noble-updates'), (500, 'noble-security'), (500, 'noble'), (100, 'noble-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.8.0-45-generic (SMP w/10 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Loading...