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

aiscm FTBFS with ffmpeg 5.0 in experimental

/bin/bash ../libtool  --tag=CC   --mode=compile clang-13 -DHAVE_CONFIG_H -I. 
-I..   -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/guile/3.0 
-fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 
-I/usr/include/x86_64-linux-gnu//ImageMagick-6 -I/usr/include/ImageMagick-6 -g 
-O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wall -pedantic -c -o 
libguile_aiscm_magick_la-magick.lo `test -f 'magick.c' || echo './'`magick.c
ffmpeg.c:63:3: error: must use 'struct' tag to refer to type 'AVCodecContext'
  AVCodecContext *video_codec_ctx;
  ^
  struct 
ffmpeg.c:64:3: error: must use 'struct' tag to refer to type 'AVCodecContext'
  AVCodecContext *audio_codec_ctx;
  ^
  struct 
ffmpeg.c:97:8: error: must use 'struct' tag to refer to type 'AVCodecContext'
static AVCodecContext *video_codec_ctx(struct ffmpeg_t *self)
       ^
       struct 
ffmpeg.c:104:8: error: must use 'struct' tag to refer to type 'AVCodecContext'
static AVCodecContext *audio_codec_ctx(struct ffmpeg_t *self)
       ^
       struct 
ffmpeg.c:130:66: error: must use 'struct' tag to refer to type 'AVCodecContext'
static void write_frame(struct ffmpeg_t *self, AVPacket *packet, AVCodecContext 
*codec, AVStream *stream, int stream_idx)
                                                                 ^
                                                                 struct 
ffmpeg.c:133:37: error: incomplete definition of type 'struct AVCodecContext'
  av_packet_rescale_ts(packet, codec->time_base, stream->time_base);
                               ~~~~~^
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward 
declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
ffmpeg.c:147:3: error: must use 'struct' tag to refer to type 'AVCodecContext'
  AVCodecContext *codec = video_codec_ctx(self);
  ^
  struct 
ffmpeg.c:151:3: warning: 'av_init_packet' is deprecated 
[-Wdeprecated-declarations]
  av_init_packet(&pkt);
  ^
/usr/include/x86_64-linux-gnu/libavcodec/packet.h:505:1: note: 'av_init_packet' 
has been explicitly marked deprecated here
attribute_deprecated
^
/usr/include/x86_64-linux-gnu/libavutil/attributes.h:100:49: note: expanded 
from macro 'attribute_deprecated'
#    define attribute_deprecated __attribute__((deprecated))
                                                ^
ffmpeg.c:155:13: warning: implicit declaration of function 
'avcodec_encode_video2' is invalid in C99 [-Wimplicit-function-declaration]
  int err = avcodec_encode_video2(codec, &pkt, video_frame, &got_packet);
            ^
ffmpeg.c:169:3: error: must use 'struct' tag to refer to type 'AVCodecContext'
  AVCodecContext *codec = audio_codec_ctx(self);
  ^
  struct 
ffmpeg.c:173:3: warning: 'av_init_packet' is deprecated 
[-Wdeprecated-declarations]
  av_init_packet(&pkt);
  ^
/usr/include/x86_64-linux-gnu/libavcodec/packet.h:505:1: note: 'av_init_packet' 
has been explicitly marked deprecated here
attribute_deprecated
^
/usr/include/x86_64-linux-gnu/libavutil/attributes.h:100:49: note: expanded 
from macro 'attribute_deprecated'
#    define attribute_deprecated __attribute__((deprecated))
                                                ^
ffmpeg.c:177:13: warning: implicit declaration of function 
'avcodec_encode_audio2' is invalid in C99 [-Wimplicit-function-declaration]
  int err = avcodec_encode_audio2(codec, &pkt, audio_frame, &got_packet);
            ^
ffmpeg.c:237:5: warning: implicit declaration of function 'avcodec_close' is 
invalid in C99 [-Wimplicit-function-declaration]
    avcodec_close(self->audio_codec_ctx);
    ^
ffmpeg.c:242:5: warning: implicit declaration of function 'avcodec_close' is 
invalid in C99 [-Wimplicit-function-declaration]
    avcodec_close(self->video_codec_ctx);
    ^
ffmpeg.c:270:8: error: must use 'struct' tag to refer to type 'AVCodecContext'
static AVCodecContext *open_codec(SCM scm_self, AVCodecContext *codec_ctx, 
AVCodec *codec,
       ^
       struct 
ffmpeg.c:270:49: error: must use 'struct' tag to refer to type 'AVCodecContext'
static AVCodecContext *open_codec(SCM scm_self, AVCodecContext *codec_ctx, 
AVCodec *codec,
                                                ^
                                                struct 
ffmpeg.c:273:13: warning: implicit declaration of function 'avcodec_open2' is 
invalid in C99 [-Wimplicit-function-declaration]
  int err = avcodec_open2(codec_ctx, codec, NULL);
            ^
ffmpeg.c:282:8: error: must use 'struct' tag to refer to type 'AVCodecContext'
static AVCodecContext *open_decoder(SCM scm_self, SCM scm_file_name,
       ^
       struct 
ffmpeg.c:285:3: error: must use 'struct' tag to refer to type 'AVCodecContext'
  AVCodecContext *dec_ctx = stream->codec;
  ^
  struct 
ffmpeg.c:285:37: error: no member named 'codec' in 'struct AVStream'
  AVCodecContext *dec_ctx = stream->codec;
                            ~~~~~~  ^
ffmpeg.c:286:50: error: incomplete definition of type 'struct AVCodecContext'
  AVCodec *decoder = avcodec_find_decoder(dec_ctx->codec_id);
                                          ~~~~~~~^
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward 
declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
ffmpeg.c:312:20: warning: passing 'const char *' to parameter of type 'void *' 
discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  scm_dynwind_free(file_name);
                   ^~~~~~~~~
/usr/include/guile/3.0/libguile/dynwind.h:56:38: note: passing argument to 
parameter 'mem' here
SCM_API void scm_dynwind_free (void *mem);
                                     ^
ffmpeg.c:350:3: warning: 'av_init_packet' is deprecated 
[-Wdeprecated-declarations]
  av_init_packet(&self->pkt);
  ^
/usr/include/x86_64-linux-gnu/libavcodec/packet.h:505:1: note: 'av_init_packet' 
has been explicitly marked deprecated here
attribute_deprecated
^
/usr/include/x86_64-linux-gnu/libavutil/attributes.h:100:49: note: expanded 
from macro 'attribute_deprecated'
#    define attribute_deprecated __attribute__((deprecated))
                                                ^
ffmpeg.c:366:12: warning: initializing 'AVCodec *' (aka 'struct AVCodec *') 
with an expression of type 'const AVCodec *' (aka 'const struct AVCodec *') 
discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  AVCodec *retval = avcodec_find_encoder(codec_id);// TODO: autodetect or 
select video codec
           ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ffmpeg.c:370:54: warning: implicit declaration of function 
'avcodec_descriptor_get' is invalid in C99 [-Wimplicit-function-declaration]
                   
scm_list_1(scm_from_locale_string(avcodec_descriptor_get(codec_id)->name)));
                                                     ^
ffmpeg.c:370:88: error: member reference type 'int' is not a pointer
                   
scm_list_1(scm_from_locale_string(avcodec_descriptor_get(codec_id)->name)));
                                                     
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
ffmpeg.c:390:8: error: must use 'struct' tag to refer to type 'AVCodecContext'
static AVCodecContext *configure_output_video_codec(AVStream *video_stream, 
enum AVCodecID video_codec_id,
       ^
       struct 
ffmpeg.c:394:3: error: must use 'struct' tag to refer to type 'AVCodecContext'
  AVCodecContext *retval = video_stream->codec;
  ^
  struct 
ffmpeg.c:394:42: error: no member named 'codec' in 'struct AVStream'
  AVCodecContext *retval = video_stream->codec;
                           ~~~~~~~~~~~~  ^
ffmpeg.c:397:9: error: incomplete definition of type 'struct AVCodecContext'
  retval->codec_id = video_codec_id;
  ~~~~~~^
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward 
declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
11 warnings and 20 errors generated.
make[3]: *** [Makefile:774: libguile_aiscm_ffmpeg_la-ffmpeg.lo] Error 1

Cheers
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: PGP signature

Reply via email to