Source: unpaper Version: 6.1-2 Severity: important X-Debbugs-Cc: sramac...@debian.org Tags: sid bookworm ftbfs Usertags: ffmpeg5.0
unpaper FTBFS with ffmpeg 5.0 (available in experimental): | gcc -DPACKAGE_NAME=\"unpaper\" -DPACKAGE_TARNAME=\"unpaper\" -DPACKAGE_VERSION=\"6.1\" -DPACKAGE_STRING=\"unpaper\ 6.1\" -DPACKAGE_BUGREPORT=\"https://github.com/Flameeyes/unpaper/issues\" -DPACKAGE_URL=\"https://github.com/Flameeyes/unpaper\" -DPACKAGE=\"unpaper\" -DVERSION=\"6.1\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_ALT_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MATH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o unpaper-file.o `test -f 'file.c' || echo './'`file.c | file.c: In function ‘loadImage’: | file.c:68:22: error: ‘AVStream’ has no member named ‘codec’ | 68 | if (s->streams[0]->codec->codec_type != AVMEDIA_TYPE_VIDEO) | | ^~ | file.c:71:11: warning: implicit declaration of function ‘avcodec_copy_context’; did you mean ‘avcodec_free_context’? [-Wimplicit-function-declaration] | 71 | ret = avcodec_copy_context(avctx, s->streams[0]->codec); | | ^~~~~~~~~~~~~~~~~~~~ | | avcodec_free_context | file.c:71:52: error: ‘AVStream’ has no member named ‘codec’ | 71 | ret = avcodec_copy_context(avctx, s->streams[0]->codec); | | ^~ | file.c:77:11: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] | 77 | codec = avcodec_find_decoder(avctx->codec_id); | | ^ | file.c:103:11: warning: implicit declaration of function ‘avcodec_decode_video2’; did you mean ‘avcodec_decode_subtitle2’? [-Wimplicit-function-declaration] | 103 | ret = avcodec_decode_video2(avctx, frame, &got_frame, &pkt); | | ^~~~~~~~~~~~~~~~~~~~~ | | avcodec_decode_subtitle2 | file.c: In function ‘saveImage’: | file.c:158:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] | 158 | fmt = av_guess_format("image2", NULL, NULL); | | ^ | file.c:170:21: error: ‘AVFormatContext’ has no member named ‘filename’ | 170 | snprintf(out_ctx->filename, sizeof(out_ctx->filename), "%s", filename); | | ^~ | file.c:170:47: error: ‘AVFormatContext’ has no member named ‘filename’ | 170 | snprintf(out_ctx->filename, sizeof(out_ctx->filename), "%s", filename); | | ^~ | file.c:197:11: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] | 197 | codec = avcodec_find_encoder(output_codec); | | ^ | file.c:207:25: error: ‘AVStream’ has no member named ‘codec’ | 207 | codec_ctx = video_st->codec; | | ^~ | file.c:232:5: warning: ‘av_init_packet’ is deprecated [-Wdeprecated-declarations] | 232 | av_init_packet(&pkt); | | ^~~~~~~~~~~~~~ | In file included from /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:45, | from file.c:28: | /usr/include/x86_64-linux-gnu/libavcodec/packet.h:506:6: note: declared here | 506 | void av_init_packet(AVPacket *pkt); | | ^~~~~~~~~~~~~~ | file.c:235:11: warning: implicit declaration of function ‘avcodec_encode_video2’; did you mean ‘avcodec_encode_subtitle’? [-Wimplicit-function-declaration] | 235 | ret = avcodec_encode_video2(video_st->codec, &pkt, image, &got_packet); | | ^~~~~~~~~~~~~~~~~~~~~ | | avcodec_encode_subtitle | file.c:235:41: error: ‘AVStream’ has no member named ‘codec’ | 235 | ret = avcodec_encode_video2(video_st->codec, &pkt, image, &got_packet); | | ^~ | file.c:228:5: warning: ignoring return value of ‘avformat_write_header’ declared with attribute ‘warn_unused_result’ [-Wunused-result] | 228 | avformat_write_header(out_ctx, NULL); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | make[2]: *** [Makefile:678: unpaper-file.o] Error 1 Cheers -- Sebastian Ramacher
signature.asc
Description: PGP signature