Source: libam7xxx
Version: 0.1.7-1
Severity: important
X-Debbugs-Cc: sramacher@debian.org
Tags: sid bookworm ftbfs
Usertags: ffmpeg5.0
libam7xx FTBFS with ffmpeg 5.0 in experimental:
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/examples && /usr/bin/cmake -E cmake_link_script CMakeFiles/picoproj.dir/link.txt --verbose=1
/usr/lib/ccache/cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fvisibility=hidden -fno-common -Wall -Wextra -Wformat=2 -Winit-self -Winline -Wpacked -Wpointer-arith -Wlarger-than-65500 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wredundant-decls -Wsign-compare -Wstrict-aliasing=2 -Wstrict-prototypes -Wswitch-enum -Wundef -Wunreachable-code -Wwrite-strings -fstack-protector -Wunsafe-loop-optimizations --param=ssp-buffer-size=4 -Wl,-z,relro -Wl,-z,now -Wl,-Bsymbolic-functions -Wl,--as-needed -rdynamic CMakeFiles/picoproj.dir/picoproj.c.o -o ../bin/picoproj -Wl,-rpath,/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib: ../lib/libam7xxx.so.0.1.7 -lm -lusb-1.0
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:43:9: error: unknown type name ‘AVCodecContext’
43 | AVCodecContext *codec_ctx;
| ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c: In function ‘video_input_init’:
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:55:9: error: unknown type name ‘AVCodecContext’; use ‘struct’ keyword to refer to the type
55 | AVCodecContext *input_codec_ctx;
| ^~~~~~~~~~~~~~
| struct
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:61:9: warning: implicit declaration of function ‘avcodec_register_all’; did you mean ‘avdevice_register_all’? [-Wimplicit-function-declaration]
61 | avcodec_register_all();
| ^~~~~~~~~~~~~~~~~~~~
| avdevice_register_all
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:61:9: warning: nested extern declaration of ‘avcodec_register_all’ [-Wnested-externs]
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:62:9: warning: implicit declaration of function ‘av_register_all’; did you mean ‘avdevice_register_all’? [-Wimplicit-function-declaration]
62 | av_register_all();
| ^~~~~~~~~~~~~~~
| avdevice_register_all
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:62:9: warning: nested extern declaration of ‘av_register_all’ [-Wnested-externs]
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:66:30: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
66 | input_format = av_find_input_format(input_format_string);
| ^
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:102:89: warning: passing argument 5 of ‘av_find_best_stream’ from incompatible pointer type [-Wincompatible-pointer-types]
102 | video_index = av_find_best_stream(input_format_ctx, AVMEDIA_TYPE_VIDEO, -1, -1, &input_codec, 0);
| ^~~~~~~~~~~~
| |
| AVCodec **
In file included from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51,
from /<<PKGBUILDDIR>>/examples/am7xxx-play.c:32:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:2161:41: note: expected ‘const AVCodec **’ but argument is of type ‘AVCodec **’
2161 | const AVCodec **decoder_ret,
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:109:27: warning: implicit declaration of function ‘avcodec_alloc_context3’; did you mean ‘avio_alloc_context’? [-Wimplicit-function-declaration]
109 | input_codec_ctx = avcodec_alloc_context3(input_codec);
| ^~~~~~~~~~~~~~~~~~~~~~
| avio_alloc_context
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:109:27: warning: nested extern declaration of ‘avcodec_alloc_context3’ [-Wnested-externs]
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:109:25: warning: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
109 | input_codec_ctx = avcodec_alloc_context3(input_codec);
| ^
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:117:15: warning: implicit declaration of function ‘avcodec_parameters_to_context’; did you mean ‘avcodec_parameters_copy’? [-Wimplicit-function-declaration]
117 | ret = avcodec_parameters_to_context(input_codec_ctx, input_codec_params);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| avcodec_parameters_copy
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:117:15: warning: nested extern declaration of ‘avcodec_parameters_to_context’ [-Wnested-externs]
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:124:15: warning: implicit declaration of function ‘avcodec_open2’; did you mean ‘avio_open2’? [-Wimplicit-function-declaration]
124 | ret = avcodec_open2(input_codec_ctx, input_codec, NULL);
| ^~~~~~~~~~~~~
| avio_open2
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:124:15: warning: nested extern declaration of ‘avcodec_open2’ [-Wnested-externs]
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:138:9: warning: implicit declaration of function ‘avcodec_free_context’; did you mean ‘avformat_free_context’? [-Wimplicit-function-declaration]
138 | avcodec_free_context(&input_codec_ctx);
| ^~~~~~~~~~~~~~~~~~~~
| avformat_free_context
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:138:9: warning: nested extern declaration of ‘avcodec_free_context’ [-Wnested-externs]
/<<PKGBUILDDIR>>/examples/am7xxx-play.c: At top level:
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:149:9: error: unknown type name ‘AVCodecContext’
149 | AVCodecContext *codec_ctx;
| ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c: In function ‘video_output_init’:
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:160:9: error: unknown type name ‘AVCodecContext’; use ‘struct’ keyword to refer to the type
160 | AVCodecContext *output_codec_ctx;
| ^~~~~~~~~~~~~~
| struct
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:173:26: warning: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
173 | output_codec_ctx = avcodec_alloc_context3(NULL);
| ^
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:184:73: error: request for member ‘width’ in something not a structure or union
184 | (input_ctx->codec_ctx)->width,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:185:73: error: request for member ‘height’ in something not a structure or union
185 | (input_ctx->codec_ctx)->height,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:194:25: error: request for member ‘bit_rate’ in something not a structure or union
194 | output_codec_ctx->bit_rate = (input_ctx->codec_ctx)->bit_rate;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:194:62: error: request for member ‘bit_rate’ in something not a structure or union
194 | output_codec_ctx->bit_rate = (input_ctx->codec_ctx)->bit_rate;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:195:25: error: request for member ‘width’ in something not a structure or union
195 | output_codec_ctx->width = new_output_width;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:196:25: error: request for member ‘height’ in something not a structure or union
196 | output_codec_ctx->height = new_output_height;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:197:25: error: request for member ‘time_base’ in something not a structure or union
197 | output_codec_ctx->time_base.num =
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:199:25: error: request for member ‘time_base’ in something not a structure or union
199 | output_codec_ctx->time_base.den =
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:207:33: error: request for member ‘pix_fmt’ in something not a structure or union
207 | output_codec_ctx->pix_fmt = AV_PIX_FMT_NV12;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:215:25: error: request for member ‘pix_fmt’ in something not a structure or union
215 | output_codec_ctx->pix_fmt = AV_PIX_FMT_YUVJ420P;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:216:25: error: request for member ‘codec_id’ in something not a structure or union
216 | output_codec_ctx->codec_id = AV_CODEC_ID_MJPEG;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:217:25: error: request for member ‘codec_type’ in something not a structure or union
217 | output_codec_ctx->codec_type = AVMEDIA_TYPE_VIDEO;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:226:25: error: request for member ‘qmin’ in something not a structure or union
226 | output_codec_ctx->qmin = output_codec_ctx->qmax = ((100 - (quality - 1)) * FF_QUALITY_SCALE) / 100;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:226:56: error: request for member ‘qmax’ in something not a structure or union
226 | output_codec_ctx->qmin = output_codec_ctx->qmax = ((100 - (quality - 1)) * FF_QUALITY_SCALE) / 100;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:227:25: error: request for member ‘mb_lmin’ in something not a structure or union
227 | output_codec_ctx->mb_lmin = output_codec_ctx->qmin * FF_QP2LAMBDA;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:227:56: error: request for member ‘qmin’ in something not a structure or union
227 | output_codec_ctx->mb_lmin = output_codec_ctx->qmin * FF_QP2LAMBDA;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:228:25: error: request for member ‘mb_lmax’ in something not a structure or union
228 | output_codec_ctx->mb_lmax = output_codec_ctx->qmax * FF_QP2LAMBDA;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:228:56: error: request for member ‘qmax’ in something not a structure or union
228 | output_codec_ctx->mb_lmax = output_codec_ctx->qmax * FF_QP2LAMBDA;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:229:25: error: request for member ‘flags’ in something not a structure or union
229 | output_codec_ctx->flags |= AV_CODEC_FLAG_QSCALE;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:229:41: error: ‘AV_CODEC_FLAG_QSCALE’ undeclared (first use in this function); did you mean ‘AV_CODEC_ID_QCELP’?
229 | output_codec_ctx->flags |= AV_CODEC_FLAG_QSCALE;
| ^~~~~~~~~~~~~~~~~~~~
| AV_CODEC_ID_QCELP
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:229:41: note: each undeclared identifier is reported only once for each function it appears in
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:230:25: error: request for member ‘global_quality’ in something not a structure or union
230 | output_codec_ctx->global_quality = output_codec_ctx->qmin * FF_QP2LAMBDA;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:230:60: error: request for member ‘qmin’ in something not a structure or union
230 | output_codec_ctx->global_quality = output_codec_ctx->qmin * FF_QP2LAMBDA;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:233:61: error: request for member ‘codec_id’ in something not a structure or union
233 | output_codec = avcodec_find_encoder(output_codec_ctx->codec_id);
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c: At top level:
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:275:19: error: unknown type name ‘AVCodecContext’; did you mean ‘AVIODirContext’?
275 | static int decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt)
| ^~~~~~~~~~~~~~
| AVIODirContext
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:301:19: error: unknown type name ‘AVCodecContext’; did you mean ‘AVIODirContext’?
301 | static int encode(AVCodecContext *avctx, AVPacket *pkt, int *got_packet, AVFrame *frame)
| ^~~~~~~~~~~~~~
| AVIODirContext
/<<PKGBUILDDIR>>/examples/am7xxx-play.c: In function ‘am7xxx_play’:
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:373:54: error: request for member ‘pix_fmt’ in something not a structure or union
373 | frame_scaled->format = (output_ctx.codec_ctx)->pix_fmt;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:374:53: error: request for member ‘width’ in something not a structure or union
374 | frame_scaled->width = (output_ctx.codec_ctx)->width;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:375:54: error: request for member ‘height’ in something not a structure or union
375 | frame_scaled->height = (output_ctx.codec_ctx)->height;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:378:71: error: request for member ‘pix_fmt’ in something not a structure or union
378 | out_buf_size = av_image_get_buffer_size((output_ctx.codec_ctx)->pix_fmt,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:379:71: error: request for member ‘width’ in something not a structure or union
379 | (output_ctx.codec_ctx)->width,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:380:71: error: request for member ‘height’ in something not a structure or union
380 | (output_ctx.codec_ctx)->height,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:393:52: error: request for member ‘pix_fmt’ in something not a structure or union
393 | (output_ctx.codec_ctx)->pix_fmt,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:394:52: error: request for member ‘width’ in something not a structure or union
394 | (output_ctx.codec_ctx)->width,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:395:52: error: request for member ‘height’ in something not a structure or union
395 | (output_ctx.codec_ctx)->height,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:399:66: error: request for member ‘width’ in something not a structure or union
399 | (input_ctx.codec_ctx)->width,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:400:66: error: request for member ‘height’ in something not a structure or union
400 | (input_ctx.codec_ctx)->height,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:401:66: error: request for member ‘pix_fmt’ in something not a structure or union
401 | (input_ctx.codec_ctx)->pix_fmt,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:402:67: error: request for member ‘width’ in something not a structure or union
402 | (output_ctx.codec_ctx)->width,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:403:67: error: request for member ‘height’ in something not a structure or union
403 | (output_ctx.codec_ctx)->height,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:404:67: error: request for member ‘pix_fmt’ in something not a structure or union
404 | (output_ctx.codec_ctx)->pix_fmt,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:434:23: warning: implicit declaration of function ‘decode’ [-Wimplicit-function-declaration]
434 | ret = decode(input_ctx.codec_ctx, frame_raw, &got_frame, &in_packet);
| ^~~~~~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:434:23: warning: nested extern declaration of ‘decode’ [-Wnested-externs]
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:452:56: error: request for member ‘height’ in something not a structure or union
452 | (input_ctx.codec_ctx)->height,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:460:79: error: request for member ‘global_quality’ in something not a structure or union
460 | frame_scaled->quality = (output_ctx.codec_ctx)->global_quality;
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:461:33: warning: ‘av_init_packet’ is deprecated [-Wdeprecated-declarations]
461 | av_init_packet(&out_packet);
| ^~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:316,
from /usr/include/x86_64-linux-gnu/libavdevice/avdevice.h:51,
from /<<PKGBUILDDIR>>/examples/am7xxx-play.c:32:
/usr/include/x86_64-linux-gnu/libavcodec/packet.h:506:6: note: declared here
506 | void av_init_packet(AVPacket *pkt);
| ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:465:39: warning: implicit declaration of function ‘encode’ [-Wimplicit-function-declaration]
465 | ret = encode(output_ctx.codec_ctx,
| ^~~~~~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:465:39: warning: nested extern declaration of ‘encode’ [-Wnested-externs]
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:497:77: error: request for member ‘width’ in something not a structure or union
497 | (output_ctx.codec_ctx)->width,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:498:77: error: request for member ‘height’ in something not a structure or union
498 | (output_ctx.codec_ctx)->height,
| ^~
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:525:9: warning: implicit declaration of function ‘avcodec_close’; did you mean ‘avio_close’? [-Wimplicit-function-declaration]
525 | avcodec_close(output_ctx.codec_ctx);
| ^~~~~~~~~~~~~
| avio_close
/<<PKGBUILDDIR>>/examples/am7xxx-play.c:525:9: warning: nested extern declaration of ‘avcodec_close’ [-Wnested-externs]
make[3]: *** [examples/CMakeFiles/am7xxx-play.dir/build.make:79: examples/CMakeFiles/am7xxx-play.dir/am7xxx-play.c.o] Error 1
Cheers