Source: hedgewars
Version: 1.0.0-14
Severity: important
X-Debbugs-Cc: sramac...@debian.org
Tags: sid bookworm ftbfs
Usertags: ffmpeg5.0

hedgewars FTBFS with ffmpeg 5.0 in experimental:

[  6%] Generating hedgewars_it.qm
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/share/hedgewars/Data/Locale && 
/usr/lib/qt5/bin/lrelease 
/<<PKGBUILDDIR>>/share/hedgewars/Data/Locale/hedgewars_it.ts -qm 
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/share/hedgewars/Data/Locale/hedgewars_it.qm
Updating 
'/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/share/hedgewars/Data/Locale/hedgewars_gl.qm'...
    Generated 223 translation(s) (177 finished and 46 unfinished)
    Ignored 910 untranslated source text(s)
Updating 
'/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/share/hedgewars/Data/Locale/hedgewars_hu.qm'...
    Generated 1181 translation(s) (1181 finished and 0 unfinished)
Updating 
'/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/share/hedgewars/Data/Locale/hedgewars_it.qm'...
    Generated 1133 translation(s) (1133 finished and 0 unfinished)
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c: In function ‘AddAudioStream’:
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:174:26: error: ‘AVStream’ has 
no member named ‘codec’
  174 |     g_pAudio = g_pAStream->codec;
      |                          ^~
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:176:5: warning: implicit 
declaration of function ‘avcodec_get_context_defaults3’ 
[-Wimplicit-function-declaration]
  176 |     avcodec_get_context_defaults3(g_pAudio, g_pACodec);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c: In function ‘WriteAudioFrame’:
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:230:5: warning: 
‘av_init_packet’ is deprecated [-Wdeprecated-declarations]
  230 |     av_init_packet(&Packet);
      |     ^~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:45,
                 from /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:25:
/usr/include/x86_64-linux-gnu/libavcodec/packet.h:506:6: note: declared here
  506 | void av_init_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:247:9: warning: implicit 
declaration of function ‘avcodec_encode_audio2’; did you mean 
‘avcodec_encode_subtitle’? [-Wimplicit-function-declaration]
  247 |     if (avcodec_encode_audio2(g_pAudio, &Packet, pFrame, &got_packet) 
!= 0)
      |         ^~~~~~~~~~~~~~~~~~~~~
      |         avcodec_encode_subtitle
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c: In function ‘AddVideoStream’:
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:282:26: error: ‘AVStream’ has 
no member named ‘codec’
  282 |     g_pVideo = g_pVStream->codec;
      |                          ^~
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c: In function ‘WriteFrame’:
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:384:5: warning: 
‘av_init_packet’ is deprecated [-Wdeprecated-declarations]
  384 |     av_init_packet(&Packet);
      |     ^~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:45,
                 from /<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:25:
/usr/include/x86_64-linux-gnu/libavcodec/packet.h:506:6: note: declared here
  506 | void av_init_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:408:13: warning: implicit 
declaration of function ‘avcodec_encode_video2’; did you mean 
‘avcodec_encode_subtitle’? [-Wimplicit-function-declaration]
  408 |         if (avcodec_encode_video2(g_pVideo, &Packet, pFrame, 
&got_packet) < 0)
      |             ^~~~~~~~~~~~~~~~~~~~~
      |             avcodec_encode_subtitle
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c: In function ‘AVWrapper_Init’:
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:503:5: warning: implicit 
declaration of function ‘av_register_all’ [-Wimplicit-function-declaration]
  503 |     av_register_all();
      |     ^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:506:15: warning: assignment 
discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  506 |     g_pFormat = av_guess_format(pFormatName, NULL, NULL);
      |               ^
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:525:26: error: 
‘AVFormatContext’ has no member named ‘filename’
  525 |     snprintf(g_pContainer->filename, sizeof(g_pContainer->filename), 
"%s.%s", pFilename, ext);
      |                          ^~
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:525:57: error: 
‘AVFormatContext’ has no member named ‘filename’
  525 |     snprintf(g_pContainer->filename, sizeof(g_pContainer->filename), 
"%s.%s", pFilename, ext);
      |                                                         ^~
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:528:15: warning: assignment 
discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  528 |     g_pVCodec = avcodec_find_encoder_by_name(pVCodecName);
      |               ^
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:529:15: warning: assignment 
discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  529 |     g_pACodec = avcodec_find_encoder_by_name(pACodecName);
      |               ^
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:563:49: error: 
‘AVFormatContext’ has no member named ‘filename’
  563 |     av_dump_format(g_pContainer, 0, g_pContainer->filename, 1);
      |                                                 ^~
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:568:54: error: 
‘AVFormatContext’ has no member named ‘filename’
  568 |         if (avio_open(&g_pContainer->pb, g_pContainer->filename, 
AVIO_FLAG_WRITE) < 0)
      |                                                      ^~
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:569:78: error: 
‘AVFormatContext’ has no member named ‘filename’
  569 |             return FatalError("Could not open output file (%s)", 
g_pContainer->filename);
      |                                                                         
     ^~
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:549:13: warning: ignoring 
return value of ‘fread’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
  549 |             fread(&g_Frequency, 4, 1, g_pSoundFile);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/hedgewars/avwrapper/avwrapper.c:550:13: warning: ignoring 
return value of ‘fread’ declared with attribute ‘warn_unused_result’ 
[-Wunused-result]
  550 |             fread(&g_Channels, 4, 1, g_pSoundFile);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [hedgewars/avwrapper/CMakeFiles/avwrapper.dir/build.make:79: 
hedgewars/avwrapper/CMakeFiles/avwrapper.dir/avwrapper.c.o] Error 1


Cheers
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: PGP signature

Reply via email to