Source: scrcpy
Version: 1.21-1
Severity: important
X-Debbugs-Cc: sramac...@debian.org
Tags: sid bookworm ftbfs
Usertags: ffmpeg5.0

scrcpy FTBFS with ffmpeg 5.0 in experimental:

FAILED: app/scrcpy.p/src_decoder.c.o 
ccache cc -Iapp/scrcpy.p -Iapp -I../app -I../app/src 
-I/usr/include/x86_64-linux-gnu -I/usr/include/SDL2 -I/usr/include/libusb-1.0 
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
-Wextra -std=c11 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic 
-Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT -MD -MQ 
app/scrcpy.p/src_decoder.c.o -MF app/scrcpy.p/src_decoder.c.o.d -o 
app/scrcpy.p/src_decoder.c.o -c ../app/src/decoder.c
In file included from ../app/src/decoder.c:1:
../app/src/decoder.h:19:5: error: unknown type name ‘AVCodecContext’
   19 |     AVCodecContext *codec_ctx;
      |     ^~~~~~~~~~~~~~
../app/src/decoder.c: In function ‘decoder_open’:
../app/src/decoder.c:43:24: warning: assignment to ‘int *’ from incompatible 
pointer type ‘AVCodecContext *’ [-Wincompatible-pointer-types]
   43 |     decoder->codec_ctx = avcodec_alloc_context3(codec);
      |                        ^
../app/src/decoder.c:49:30: warning: passing argument 1 of ‘avcodec_open2’ from 
incompatible pointer type [-Wincompatible-pointer-types]
   49 |     if (avcodec_open2(decoder->codec_ctx, codec, NULL) < 0) {
      |                       ~~~~~~~^~~~~~~~~~~
      |                              |
      |                              int *
In file included from ../app/src/decoder.c:3:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:2416:35: note: expected 
‘AVCodecContext *’ but argument is of type ‘int *’
 2416 | int avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, 
AVDictionary **options);
      |                   ~~~~~~~~~~~~~~~~^~~~~
../app/src/decoder.c:51:30: warning: passing argument 1 of 
‘avcodec_free_context’ from incompatible pointer type 
[-Wincompatible-pointer-types]
   51 |         avcodec_free_context(&decoder->codec_ctx);
      |                              ^~~~~~~~~~~~~~~~~~~
      |                              |
      |                              int **
In file included from ../app/src/decoder.c:3:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:2332:44: note: expected 
‘AVCodecContext **’ but argument is of type ‘int **’
 2332 | void avcodec_free_context(AVCodecContext **avctx);
      |                           ~~~~~~~~~~~~~~~~~^~~~~
../app/src/decoder.c:58:30: warning: passing argument 1 of ‘avcodec_close’ from 
incompatible pointer type [-Wincompatible-pointer-types]
   58 |         avcodec_close(decoder->codec_ctx);
      |                       ~~~~~~~^~~~~~~~~~~
      |                              |
      |                              int *
In file included from ../app/src/decoder.c:3:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:2431:35: note: expected 
‘AVCodecContext *’ but argument is of type ‘int *’
 2431 | int avcodec_close(AVCodecContext *avctx);
      |                   ~~~~~~~~~~~~~~~~^~~~~
../app/src/decoder.c:59:30: warning: passing argument 1 of 
‘avcodec_free_context’ from incompatible pointer type 
[-Wincompatible-pointer-types]
   59 |         avcodec_free_context(&decoder->codec_ctx);
      |                              ^~~~~~~~~~~~~~~~~~~
      |                              |
      |                              int **
In file included from ../app/src/decoder.c:3:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:2332:44: note: expected 
‘AVCodecContext **’ but argument is of type ‘int **’
 2332 | void avcodec_free_context(AVCodecContext **avctx);
      |                           ~~~~~~~~~~~~~~~~~^~~~~
../app/src/decoder.c:66:30: warning: passing argument 1 of ‘avcodec_close’ from 
incompatible pointer type [-Wincompatible-pointer-types]
   66 |         avcodec_close(decoder->codec_ctx);
      |                       ~~~~~~~^~~~~~~~~~~
      |                              |
      |                              int *
In file included from ../app/src/decoder.c:3:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:2431:35: note: expected 
‘AVCodecContext *’ but argument is of type ‘int *’
 2431 | int avcodec_close(AVCodecContext *avctx);
      |                   ~~~~~~~~~~~~~~~~^~~~~
../app/src/decoder.c:67:30: warning: passing argument 1 of 
‘avcodec_free_context’ from incompatible pointer type 
[-Wincompatible-pointer-types]
   67 |         avcodec_free_context(&decoder->codec_ctx);
      |                              ^~~~~~~~~~~~~~~~~~~
      |                              |
      |                              int **
In file included from ../app/src/decoder.c:3:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:2332:44: note: expected 
‘AVCodecContext **’ but argument is of type ‘int **’
 2332 | void avcodec_free_context(AVCodecContext **avctx);
      |                           ~~~~~~~~~~~~~~~~~^~~~~
../app/src/decoder.c: In function ‘decoder_close’:
../app/src/decoder.c:78:26: warning: passing argument 1 of ‘avcodec_close’ from 
incompatible pointer type [-Wincompatible-pointer-types]
   78 |     avcodec_close(decoder->codec_ctx);
      |                   ~~~~~~~^~~~~~~~~~~
      |                          |
      |                          int *
In file included from ../app/src/decoder.c:3:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:2431:35: note: expected 
‘AVCodecContext *’ but argument is of type ‘int *’
 2431 | int avcodec_close(AVCodecContext *avctx);
      |                   ~~~~~~~~~~~~~~~~^~~~~
../app/src/decoder.c:79:26: warning: passing argument 1 of 
‘avcodec_free_context’ from incompatible pointer type 
[-Wincompatible-pointer-types]
   79 |     avcodec_free_context(&decoder->codec_ctx);
      |                          ^~~~~~~~~~~~~~~~~~~
      |                          |
      |                          int **
In file included from ../app/src/decoder.c:3:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:2332:44: note: expected 
‘AVCodecContext **’ but argument is of type ‘int **’
 2332 | void avcodec_free_context(AVCodecContext **avctx);
      |                           ~~~~~~~~~~~~~~~~~^~~~~
../app/src/decoder.c: In function ‘decoder_push’:
../app/src/decoder.c:103:42: warning: passing argument 1 of 
‘avcodec_send_packet’ from incompatible pointer type 
[-Wincompatible-pointer-types]
  103 |     int ret = avcodec_send_packet(decoder->codec_ctx, packet);
      |                                   ~~~~~~~^~~~~~~~~~~
      |                                          |
      |                                          int *
In file included from ../app/src/decoder.c:3:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:2581:41: note: expected 
‘AVCodecContext *’ but argument is of type ‘int *’
 2581 | int avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt);
      |                         ~~~~~~~~~~~~~~~~^~~~~
../app/src/decoder.c:108:40: warning: passing argument 1 of 
‘avcodec_receive_frame’ from incompatible pointer type 
[-Wincompatible-pointer-types]
  108 |     ret = avcodec_receive_frame(decoder->codec_ctx, decoder->frame);
      |                                 ~~~~~~~^~~~~~~~~~~
      |                                        |
      |                                        int *
In file included from ../app/src/decoder.c:3:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:2604:43: note: expected 
‘AVCodecContext *’ but argument is of type ‘int *’
 2604 | int avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame);
      |                           ~~~~~~~~~~~~~~~~^~~~~
[7/47] ccache cc -Iapp/scrcpy.p -Iapp -I../app -I../app/src 
-I/usr/include/x86_64-linux-gnu -I/usr/include/SDL2 -I/usr/include/libusb-1.0 
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
-Wextra -std=c11 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic 
-Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT -MD -MQ app/scrcpy.p/src_cli.c.o 
-MF app/scrcpy.p/src_cli.c.o.d -o app/scrcpy.p/src_cli.c.o -c ../app/src/cli.c
../app/src/cli.c:681:2: warning: ISO C does not allow extra ‘;’ outside of a 
function [-Wpedantic]
  681 | };
      |  ^
[8/47] ccache cc -Iapp/scrcpy.p -Iapp -I../app -I../app/src 
-I/usr/include/x86_64-linux-gnu -I/usr/include/SDL2 -I/usr/include/libusb-1.0 
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
-Wextra -std=c11 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic 
-Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT -MD -MQ 
app/scrcpy.p/src_control_msg.c.o -MF app/scrcpy.p/src_control_msg.c.o.d -o 
app/scrcpy.p/src_control_msg.c.o -c ../app/src/control_msg.c
../app/src/control_msg.c: In function ‘control_msg_log’:
../app/src/control_msg.c:220:49: warning: ISO C99 requires at least one 
argument for the "..." in a variadic macro
  220 |             LOG_CMSG("expand notification panel");
      |                                                 ^
../app/src/control_msg.c:223:45: warning: ISO C99 requires at least one 
argument for the "..." in a variadic macro
  223 |             LOG_CMSG("expand settings panel");
      |                                             ^
../app/src/control_msg.c:226:39: warning: ISO C99 requires at least one 
argument for the "..." in a variadic macro
  226 |             LOG_CMSG("collapse panels");
      |                                       ^
../app/src/control_msg.c:229:37: warning: ISO C99 requires at least one 
argument for the "..." in a variadic macro
  229 |             LOG_CMSG("rotate device");
      |                                     ^
[9/47] ccache cc -Iapp/scrcpy.p -Iapp -I../app -I../app/src 
-I/usr/include/x86_64-linux-gnu -I/usr/include/SDL2 -I/usr/include/libusb-1.0 
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
-Wextra -std=c11 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic 
-Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT -MD -MQ 
app/scrcpy.p/src_device_msg.c.o -MF app/scrcpy.p/src_device_msg.c.o.d -o 
app/scrcpy.p/src_device_msg.c.o -c ../app/src/device_msg.c
[10/47] ccache cc -Iapp/scrcpy.p -Iapp -I../app -I../app/src 
-I/usr/include/x86_64-linux-gnu -I/usr/include/SDL2 -I/usr/include/libusb-1.0 
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
-Wextra -std=c11 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic 
-Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT -MD -MQ 
app/scrcpy.p/src_controller.c.o -MF app/scrcpy.p/src_controller.c.o.d -o 
app/scrcpy.p/src_controller.c.o -c ../app/src/controller.c
In file included from ../app/src/controller.h:11,
                 from ../app/src/controller.c:1:
../app/src/controller.c: In function ‘controller_destroy’:
../app/src/util/cbuf.h:43:5: warning: ISO C forbids braced-groups within 
expressions [-Wpedantic]
   43 |     ({ \
      |     ^
../app/src/controller.c:42:12: note: in expansion of macro ‘cbuf_take’
   42 |     while (cbuf_take(&controller->queue, &msg)) {
      |            ^~~~~~~~~
../app/src/controller.c: In function ‘controller_push_msg’:
../app/src/util/cbuf.h:33:5: warning: ISO C forbids braced-groups within 
expressions [-Wpedantic]
   33 |     ({ \
      |     ^
../app/src/controller.c:58:16: note: in expansion of macro ‘cbuf_push’
   58 |     bool res = cbuf_push(&controller->queue, *msg);
      |                ^~~~~~~~~
../app/src/controller.c: In function ‘run_controller’:
../app/src/util/cbuf.h:43:5: warning: ISO C forbids braced-groups within 
expressions [-Wpedantic]
   43 |     ({ \
      |     ^
../app/src/controller.c:93:26: note: in expansion of macro ‘cbuf_take’
   93 |         bool non_empty = cbuf_take(&controller->queue, &msg);
      |                          ^~~~~~~~~
[11/47] ccache cc -Iapp/scrcpy.p -Iapp -I../app -I../app/src 
-I/usr/include/x86_64-linux-gnu -I/usr/include/SDL2 -I/usr/include/libusb-1.0 
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
-Wextra -std=c11 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic 
-Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT -MD -MQ app/scrcpy.p/src_main.c.o 
-MF app/scrcpy.p/src_main.c.o.d -o app/scrcpy.p/src_main.c.o -c 
../app/src/main.c
[12/47] ccache cc -Iapp/scrcpy.p -Iapp -I../app -I../app/src 
-I/usr/include/x86_64-linux-gnu -I/usr/include/SDL2 -I/usr/include/libusb-1.0 
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
-Wextra -std=c11 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic 
-Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT -MD -MQ app/scrcpy.p/src_icon.c.o 
-MF app/scrcpy.p/src_icon.c.o.d -o app/scrcpy.p/src_icon.c.o -c 
../app/src/icon.c
FAILED: app/scrcpy.p/src_icon.c.o 
ccache cc -Iapp/scrcpy.p -Iapp -I../app -I../app/src 
-I/usr/include/x86_64-linux-gnu -I/usr/include/SDL2 -I/usr/include/libusb-1.0 
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
-Wextra -std=c11 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic 
-Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT -MD -MQ app/scrcpy.p/src_icon.c.o 
-MF app/scrcpy.p/src_icon.c.o.d -o app/scrcpy.p/src_icon.c.o -c 
../app/src/icon.c
../app/src/icon.c: In function ‘decode_image’:
../app/src/icon.c:88:22: warning: initialization discards ‘const’ qualifier 
from pointer target type [-Wdiscarded-qualifiers]
   88 |     AVCodec *codec = avcodec_find_decoder(params->codec_id);
      |                      ^~~~~~~~~~~~~~~~~~~~
../app/src/icon.c:94:5: error: unknown type name ‘AVCodecContext’; use ‘struct’ 
keyword to refer to the type
   94 |     AVCodecContext *codec_ctx = avcodec_alloc_context3(codec);
      |     ^~~~~~~~~~~~~~
      |     struct 
../app/src/icon.c:94:33: warning: implicit declaration of function 
‘avcodec_alloc_context3’; did you mean ‘avio_alloc_context’? 
[-Wimplicit-function-declaration]
   94 |     AVCodecContext *codec_ctx = avcodec_alloc_context3(codec);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~
      |                                 avio_alloc_context
../app/src/icon.c:94:33: warning: initialization of ‘int *’ from ‘int’ makes 
pointer from integer without a cast [-Wint-conversion]
../app/src/icon.c:100:9: warning: implicit declaration of function 
‘avcodec_parameters_to_context’; did you mean ‘avcodec_parameters_copy’? 
[-Wimplicit-function-declaration]
  100 |     if (avcodec_parameters_to_context(codec_ctx, params) < 0) {
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         avcodec_parameters_copy
../app/src/icon.c:105:9: warning: implicit declaration of function 
‘avcodec_open2’; did you mean ‘avio_open2’? [-Wimplicit-function-declaration]
  105 |     if (avcodec_open2(codec_ctx, codec, NULL) < 0) {
      |         ^~~~~~~~~~~~~
      |         avio_open2
../app/src/icon.c:131:16: warning: implicit declaration of function 
‘avcodec_send_packet’; did you mean ‘av_append_packet’? 
[-Wimplicit-function-declaration]
  131 |     if ((ret = avcodec_send_packet(codec_ctx, packet)) < 0) {
      |                ^~~~~~~~~~~~~~~~~~~
      |                av_append_packet
../app/src/icon.c:138:16: warning: implicit declaration of function 
‘avcodec_receive_frame’; did you mean ‘avcodec_profile_name’? 
[-Wimplicit-function-declaration]
  138 |     if ((ret = avcodec_receive_frame(codec_ctx, frame)) != 0) {
      |                ^~~~~~~~~~~~~~~~~~~~~
      |                avcodec_profile_name
../app/src/icon.c:150:5: warning: implicit declaration of function 
‘avcodec_close’; did you mean ‘avio_close’? [-Wimplicit-function-declaration]
  150 |     avcodec_close(codec_ctx);
      |     ^~~~~~~~~~~~~
      |     avio_close
../app/src/icon.c:152:5: warning: implicit declaration of function 
‘avcodec_free_context’; did you mean ‘avformat_free_context’? 
[-Wimplicit-function-declaration]
  152 |     avcodec_free_context(&codec_ctx);
      |     ^~~~~~~~~~~~~~~~~~~~
      |     avformat_free_context
ninja: build stopped: subcommand failed.

Cheers
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: PGP signature

Reply via email to