[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1072428: lebiniou: FTBFS with ffmpeg 7.0: video.c:228:5: error: ‘avcodec_close’ is deprecated [-Werror=deprecated-declarations]



Source: lebiniou
Version: 3.66.0-2
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):
> gcc -DHAVE_CONFIG_H -I. -I../../..   -DWITH_WEBCAM -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -D_GNU_SOURCE -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I../../../src -I../../../plugins/main/include -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wextra -Wno-unused-parameter -Wall -Werror -fomit-frame-pointer -std=c11 -fsigned-char -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread  -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 video_so-video.o `test -f 'video.c' || echo './'`video.c
> video.c: In function ‘free_allocated’:
> video.c:228:5: error: ‘avcodec_close’ is deprecated [-Werror=deprecated-declarations]
>   228 |     avcodec_close(codec_ctx);
>       |     ^~~~~~~~~~~~~
> In file included from video.c:20:
> /usr/include/aarch64-linux-gnu/libavcodec/avcodec.h:2387:5: note: declared here
>  2387 | int avcodec_close(AVCodecContext *avctx);
>       |     ^~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[5]: *** [Makefile:453: video_so-video.o] Error 1


The full build log is available from:
https://people.debian.org/~sramacher/ffmpeg-7.0/lebiniou_arm64.build

ffmpeg 7.0 is available in experimental.

Cheers

-- 
Sebastian Ramacher


Reply to: