Bug#1004768: mgba: FTBFS with ffmpeg 5.0
Sebastian Ramacher
sramacher at debian.org
Tue Feb 1 19:58:16 GMT 2022
Source: mgba
Version: 0.9.2+dfsg-2
Severity: important
X-Debbugs-Cc: sramacher at debian.org
Usertags: ffmpeg5.0
Tags: sid bookworm ftbfs
mgba FTBFS with ffmpeg 5.0 in experimental:
| /usr/lib/ccache/cc -DBUILD_GL -DBUILD_GLES2 -DENABLE_SCRIPTING -DHAVE_CHMOD -DHAVE_CRC32 -DHAVE_LOCALE -DHAVE_LOCALTIME_R -DHAVE_PTHREAD_SETNAME_NP -DHAVE_SETLOCALE -DHAVE_STRDUP -DHAVE_STRNDUP -DHAVE_UMASK -DHAVE_VASPRINTF -DMGBA_DLL -DM_CORE_GB -DM_CORE_GBA -DUSE_DEBUGGERS -DUSE_DISCORD_RPC -DUSE_EDITLINE -DUSE_ELF -DUSE_FFMPEG -DUSE_GDB_STUB -DUSE_LIBSWRESAMPLE -DUSE_LIBZIP -DUSE_LZMA -DUSE_PNG -DUSE_PTHREADS -DUSE_SQLITE3 -DUSE_ZLIB -D_7ZIP_PPMD_SUPPPORT -D_GNU_SOURCE -Dmgba_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/include -I/<<PKGBUILDDIR>>/src -I/usr/include/editline -I/<<PKGBUILDDIR>>/src/third-party/lzma -I/<<PKGBUILDDIR>>/src/third-party/discord-rpc/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wno-missing-field-initializers -Werror=implicit-function-declaration -pthread -fPIC -std=c99 -MD -MT CMakeFiles/mgba.dir/src/debugger/cli-debugger.c.o -MF CMakeFiles/mgba.dir/src/debugger/cli-debugger.c.o.d -o CMakeFiles/mgba.dir/src/debugger/cli-debugger.c.o -c /<<PKGBUILDDIR>>/src/debugger/cli-debugger.c
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-decoder.c: In function ‘FFmpegDecoderOpen’:
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-decoder.c:44:42: error: implicit declaration of function ‘avcodec_alloc_context3’; did you mean ‘avio_alloc_context’? [-Werror=implicit-function-declaration]
| 44 | decoder->video = avcodec_alloc_context3(NULL);
| | ^~~~~~~~~~~~~~~~~~~~~~
| | avio_alloc_context
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-decoder.c:44:40: warning: assignment to ‘struct AVCodecContext *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
| 44 | decoder->video = avcodec_alloc_context3(NULL);
| | ^
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-decoder.c:53:40: warning: assignment to ‘struct AVCodecContext *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
| 53 | decoder->audio = avcodec_alloc_context3(NULL);
| | ^
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-decoder.c:65:21: error: implicit declaration of function ‘avcodec_parameters_to_context’; did you mean ‘avcodec_parameters_copy’? [-Werror=implicit-function-declaration]
| 65 | if (avcodec_parameters_to_context(context, decoder->context->streams[i]->codecpar) < 0) {
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | avcodec_parameters_copy
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-decoder.c:70:53: error: invalid use of undefined type ‘struct AVCodecContext’
| 70 | codec = avcodec_find_decoder(context->codec_id);
| | ^~
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-decoder.c:75:21: error: implicit declaration of function ‘avcodec_open2’; did you mean ‘avio_open2’? [-Werror=implicit-function-declaration]
| 75 | if (avcodec_open2(context, codec, NULL) < 0) {
| | ^~~~~~~~~~~~~
| | avio_open2
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-decoder.c: In function ‘FFmpegDecoderClose’:
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-decoder.c:114:17: error: implicit declaration of function ‘avcodec_free_context’; did you mean ‘avformat_free_context’? [-Werror=implicit-function-declaration]
| 114 | avcodec_free_context(&decoder->audio);
| | ^~~~~~~~~~~~~~~~~~~~
| | avformat_free_context
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-decoder.c: In function ‘FFmpegDecoderRead’:
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-decoder.c:172:29: error: implicit declaration of function ‘avcodec_send_packet’; did you mean ‘av_append_packet’? [-Werror=implicit-function-declaration]
| 172 | if (avcodec_send_packet(decoder->video, &packet) < 0) {
| | ^~~~~~~~~~~~~~~~~~~
| | av_append_packet
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-decoder.c:175:29: error: implicit declaration of function ‘avcodec_receive_frame’; did you mean ‘avcodec_profile_name’? [-Werror=implicit-function-declaration]
| 175 | if (avcodec_receive_frame(decoder->video, decoder->videoFrame) < 0) {
| | ^~~~~~~~~~~~~~~~~~~~~
| | avcodec_profile_name
| cc1: some warnings being treated as errors
| make[3]: *** [CMakeFiles/mgba.dir/build.make:1913: CMakeFiles/mgba.dir/src/feature/ffmpeg/ffmpeg-decoder.c.o] Error 1
| make[3]: *** Waiting for unfinished jobs....
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c: In function ‘FFmpegEncoderSetAudio’:
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:125:26: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 125 | AVCodec* codec = avcodec_find_encoder_by_name(acodec);
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c: In function ‘FFmpegEncoderSetVideo’:
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:197:26: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 197 | AVCodec* codec = avcodec_find_encoder_by_name(vcodec);
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c: In function ‘FFmpegEncoderSetContainer’:
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:227:35: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 227 | AVOutputFormat* oformat = av_guess_format(container, 0, 0);
| | ^~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c: In function ‘FFmpegEncoderVerifyContainer’:
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:245:35: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 245 | AVOutputFormat* oformat = av_guess_format(encoder->containerFormat, 0, 0);
| | ^~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:246:27: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 246 | AVCodec* acodec = avcodec_find_encoder_by_name(encoder->audioCodec);
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:247:27: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 247 | AVCodec* vcodec = avcodec_find_encoder_by_name(encoder->videoCodec);
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c: In function ‘FFmpegEncoderOpen’:
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:261:27: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 261 | AVCodec* acodec = avcodec_find_encoder_by_name(encoder->audioCodec);
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:262:27: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 262 | AVCodec* vcodec = avcodec_find_encoder_by_name(encoder->videoCodec);
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:276:35: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 276 | AVOutputFormat* oformat = av_guess_format(encoder->containerFormat, 0, 0);
| | ^~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:351:25: error: implicit declaration of function ‘av_bsf_alloc’; did you mean ‘av_max_alloc’? [-Werror=implicit-function-declaration]
| 351 | av_bsf_alloc(av_bsf_get_by_name("aac_adtstoasc"), &encoder->absf);
| | ^~~~~~~~~~~~
| | av_max_alloc
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:351:38: error: implicit declaration of function ‘av_bsf_get_by_name’; did you mean ‘avfilter_get_by_name’? [-Werror=implicit-function-declaration]
| 351 | av_bsf_alloc(av_bsf_get_by_name("aac_adtstoasc"), &encoder->absf);
| | ^~~~~~~~~~~~~~~~~~
| | avfilter_get_by_name
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:352:70: error: invalid use of undefined type ‘struct AVBSFContext’
| 352 | avcodec_parameters_from_context(encoder->absf->par_in, encoder->audio);
| | ^~
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:353:25: error: implicit declaration of function ‘av_bsf_init’; did you mean ‘av_uninit’? [-Werror=implicit-function-declaration]
| 353 | av_bsf_init(encoder->absf);
| | ^~~~~~~~~~~
| | av_uninit
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c: In function ‘FFmpegEncoderClose’:
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:614:17: error: implicit declaration of function ‘av_bsf_free’; did you mean ‘av_opt_free’? [-Werror=implicit-function-declaration]
| 614 | av_bsf_free(&encoder->absf);
| | ^~~~~~~~~~~
| | av_opt_free
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c: In function ‘_ffmpegWriteAudioFrame’:
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:728:9: warning: ‘av_init_packet’ is deprecated [-Wdeprecated-declarations]
| 728 | av_init_packet(&packet);
| | ^~~~~~~~~~~~~~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:316,
| from /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-common.h:13,
| from /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.h:15,
| from /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:6:
| /usr/include/x86_64-linux-gnu/libavcodec/packet.h:506:6: note: declared here
| 506 | void av_init_packet(AVPacket *pkt);
| | ^~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:748:39: error: implicit declaration of function ‘av_bsf_send_packet’; did you mean ‘avcodec_send_packet’? [-Werror=implicit-function-declaration]
| 748 | int success = av_bsf_send_packet(encoder->absf, &packet);
| | ^~~~~~~~~~~~~~~~~~
| | avcodec_send_packet
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:750:43: error: implicit declaration of function ‘av_bsf_receive_packet’; did you mean ‘avcodec_receive_packet’? [-Werror=implicit-function-declaration]
| 750 | success = av_bsf_receive_packet(encoder->absf, &tempPacket);
| | ^~~~~~~~~~~~~~~~~~~~~
| | avcodec_receive_packet
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c: In function ‘_ffmpegWriteVideoFrame’:
| /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:830:9: warning: ‘av_init_packet’ is deprecated [-Wdeprecated-declarations]
| 830 | av_init_packet(&packet);
| | ^~~~~~~~~~~~~~
| In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:316,
| from /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-common.h:13,
| from /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.h:15,
| from /<<PKGBUILDDIR>>/src/feature/ffmpeg/ffmpeg-encoder.c:6:
| /usr/include/x86_64-linux-gnu/libavcodec/packet.h:506:6: note: declared here
| 506 | void av_init_packet(AVPacket *pkt);
| | ^~~~~~~~~~~~~~
| cc1: some warnings being treated as errors
| make[3]: *** [CMakeFiles/mgba.dir/build.make:1899: CMakeFiles/mgba.dir/src/feature/ffmpeg/ffmpeg-encoder.c.o] Error 1
| /<<PKGBUILDDIR>>/src/debugger/gdb-stub.c: In function ‘_gdbStubEntered’:
| /<<PKGBUILDDIR>>/src/debugger/gdb-stub.c:57:25: warning: enumeration value ‘WATCHPOINT_CHANGE’ not handled in switch [-Wswitch]
| 57 | switch (info->type.wp.watchType) {
| | ^~~~~~
| /<<PKGBUILDDIR>>/src/debugger/cli-debugger.c: In function ‘CLIDebuggerTabComplete’:
| /<<PKGBUILDDIR>>/src/debugger/cli-debugger.c:1158:83: warning: unused parameter ‘initial’ [-Wunused-parameter]
| 1158 | bool CLIDebuggerTabComplete(struct CLIDebugger* debugger, const char* token, bool initial, size_t tokenLen) {
| | ^
| make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
Cheers
--
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-games-devel/attachments/20220201/4d0c384d/attachment.sig>
More information about the Pkg-games-devel
mailing list