Bug#1072429: libmediascan: FTBFS with ffmpeg 7.0: result.c:386:29: error: ‘AVCodecContext’ has no member named ‘channels’
Sebastian Ramacher
sramacher at debian.org
Sun Jun 2 14:21:32 BST 2024
Source: libmediascan
Version: 0~20220401.git.34fc2d-5
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
Relevant part (hopefully):
> /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I../include -I/usr/local/BerkeleyDB.5.1/include -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c -o libmediascan_la-result.lo `test -f 'result.c' || echo './'`result.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I../include -I/usr/local/BerkeleyDB.5.1/include -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c progress.c -fPIC -DPIC -o .libs/libmediascan_la-progress.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I../include -I/usr/local/BerkeleyDB.5.1/include -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c result.c -fPIC -DPIC -o .libs/libmediascan_la-result.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -I../include -I/usr/local/BerkeleyDB.5.1/include -g -O2 -Werror=implicit-function-declaration "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c progress.c -o libmediascan_la-progress.o >/dev/null 2>&1
> result.c: In function ‘scan_video’:
> result.c:334:5: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
> 334 | c = avcodec_find_decoder(codecs->vc->codec_id);
> | ^
> result.c:369:8: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
> 369 | ac = avcodec_find_decoder(codecs->ac->codec_id);
> | ^
> result.c:386:29: error: ‘AVCodecContext’ has no member named ‘channels’
> 386 | a->channels = codecs->ac->channels;
> | ^~
> make[4]: *** [Makefile:808: libmediascan_la-result.lo] Error 1
The full build log is available from:
https://people.debian.org/~sramacher/ffmpeg-7.0/libmediascan_arm64.build
ffmpeg 7.0 is available in experimental.
Cheers
--
Sebastian Ramacher
More information about the pkg-perl-maintainers
mailing list