Bug#1013419: vcmi FTBFS with ffmpeg 5.0.1

Adrian Bunk bunk at debian.org
Thu Jun 23 11:50:17 BST 2022


Source: vcmi
Version: 0.99+dfsg+git20190113.f06c8a87-2
Severity: serious
Tags: ftbfs bookworm sid

https://buildd.debian.org/status/logs.php?pkg=vcmi&ver=0.99%2Bdfsg%2Bgit20190113.f06c8a87-2%2Bb2

...
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp: In constructor ‘CVideoPlayer::CVideoPlayer()’:
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:79:9: error: ‘av_register_all’ was not declared in this scope
   79 |         av_register_all();
      |         ^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp: In member function ‘bool CVideoPlayer::open(std::string, bool, bool, bool)’:
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:130:41: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
  130 |                 if (format->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO)
      |                                         ^~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:142:49: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’
  142 |         codecContext = format->streams[stream]->codec;
      |                                                 ^~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:145:50: error: invalid use of incomplete type ‘struct AVCodecContext’
  145 |         codec = avcodec_find_decoder(codecContext->codec_id);
      |                                                  ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:154:14: error: ‘avcodec_open2’ was not declared in this scope; did you mean ‘avio_open2’?
  154 |         if ( avcodec_open2(codecContext, codec, nullptr) < 0 )
      |              ^~~~~~~~~~~~~
      |              avio_open2
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:171:38: error: invalid use of incomplete type ‘struct AVCodecContext’
  171 |                 pos.w  = codecContext->width;
      |                                      ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:172:37: error: invalid use of incomplete type ‘struct AVCodecContext’
  172 |                 pos.h = codecContext->height;
      |                                     ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:193:50: error: invalid use of incomplete type ‘struct AVCodecContext’
  193 |                 sws = sws_getContext(codecContext->width, codecContext->height, codecContext->pix_fmt,
      |                                                  ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:193:71: error: invalid use of incomplete type ‘struct AVCodecContext’
  193 |                 sws = sws_getContext(codecContext->width, codecContext->height, codecContext->pix_fmt,
      |                                                                       ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:193:93: error: invalid use of incomplete type ‘struct AVCodecContext’
  193 |                 sws = sws_getContext(codecContext->width, codecContext->height, codecContext->pix_fmt,
      |                                                                                             ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:224:50: error: invalid use of incomplete type ‘struct AVCodecContext’
  224 |                 sws = sws_getContext(codecContext->width, codecContext->height, codecContext->pix_fmt,
      |                                                  ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:224:71: error: invalid use of incomplete type ‘struct AVCodecContext’
  224 |                 sws = sws_getContext(codecContext->width, codecContext->height, codecContext->pix_fmt,
      |                                                                       ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:224:93: error: invalid use of incomplete type ‘struct AVCodecContext’
  224 |                 sws = sws_getContext(codecContext->width, codecContext->height, codecContext->pix_fmt,
      |                                                                                             ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp: In member function ‘virtual bool CVideoPlayer::nextFrame()’:
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:270:33: error: ‘avcodec_decode_video2’ was not declared in this scope
  270 |                                 avcodec_decode_video2(codecContext, frame, &frameFinished, &packet);
      |                                 ^~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:275:41: error: ‘AVPicture’ was not declared in this scope; did you mean ‘CPicture’?
  275 |                                         AVPicture pict;
      |                                         ^~~~~~~~~
      |                                         CPicture
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:278:66: error: ‘pict’ was not declared in this scope
  278 |                                                 avpicture_alloc(&pict, AV_PIX_FMT_YUV420P, pos.w, pos.h);
      |                                                                  ^~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:278:49: error: ‘avpicture_alloc’ was not declared in this scope
  278 |                                                 avpicture_alloc(&pict, AV_PIX_FMT_YUV420P, pos.w, pos.h);
      |                                                 ^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:281:82: error: invalid use of incomplete type ‘struct AVCodecContext’
  281 |                                                                   0, codecContext->height, pict.data, pict.linesize);
      |                                                                                  ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:286:49: error: ‘avpicture_free’ was not declared in this scope; did you mean ‘av_dict_free’?
  286 |                                                 avpicture_free(&pict);
      |                                                 ^~~~~~~~~~~~~~
      |                                                 av_dict_free
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:290:49: error: ‘pict’ was not declared in this scope
  290 |                                                 pict.data[0] = (ui8 *)dest->pixels;
      |                                                 ^~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:294:82: error: invalid use of incomplete type ‘struct AVCodecContext’
  294 |                                                                   0, codecContext->height, pict.data, pict.linesize);
      |                                                                                  ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:313,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.h:61,
                 from /<<PKGBUILDDIR>>/client/CVideoHandler.cpp:12:
/usr/include/x86_64-linux-gnu/libavcodec/codec.h:195:8: note: forward declaration of ‘struct AVCodecContext’
  195 | struct AVCodecContext;
      |        ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:299:25: error: ‘av_free_packet’ was not declared in this scope; did you mean ‘av_new_packet’?
  299 |                         av_free_packet(&packet);
      |                         ^~~~~~~~~~~~~~
      |                         av_new_packet
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp: In member function ‘virtual void CVideoPlayer::close()’:
/<<PKGBUILDDIR>>/client/CVideoHandler.cpp:381:17: error: ‘avcodec_close’ was not declared in this scope; did you mean ‘avio_close’?
  381 |                 avcodec_close(codecContext);
      |                 ^~~~~~~~~~~~~
      |                 avio_close
make[4]: *** [client/CMakeFiles/vcmiclient.dir/build.make:919: client/CMakeFiles/vcmiclient.dir/CVideoHandler.cpp.o] Error 1


More information about the Pkg-games-devel mailing list