Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1004595: moc: FTBFS with ffmpeg 5.0

34 views
Skip to first unread message

Sebastian Ramacher

unread,
Jan 30, 2022, 3:40:04 PM1/30/22
to
Source: moc
Version: 1:2.6.0~svn-r3005-1
Severity: important
X-Debbugs-Cc: sram...@debian.org
Tags: sid bookworm ftbfs
Usertags: ffmpeg5.0

moc FTBFS with ffmpeg 5.0 (available in experimental):
| make[4]: Entering directory '/<<PKGBUILDDIR>>/decoder_plugins/ffmpeg'
| /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/x86_64-linux-gnu -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/x86_64-linux-gnu -I../.. -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -Wextra -I/usr/include/x86_64-linux-gnu -c -o libffmpeg_decoder_la-ffmpeg.lo `test -f 'ffmpeg.c' || echo './'`ffmpeg.c
| libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/x86_64-linux-gnu -I../.. -Wdate-time -D_FORTIFY_SOURCE=2 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/x86_64-linux-gnu -I../.. -pthread -g -O2 "-ffile-prefix-map=/<<PKGBUILDDIR>>=." -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -Wextra -I/usr/include/x86_64-linux-gnu -c ffmpeg.c -fPIC -DPIC -o .libs/libffmpeg_decoder_la-ffmpeg.o
| ffmpeg.c:80:9: error: unknown type name ‘AVCodecContext’
| 80 | AVCodecContext *enc;
| | ^~~~~~~~~~~~~~
| ffmpeg.c: In function ‘fmt_from_sample_fmt’:
| ffmpeg.c:498:26: error: request for member ‘sample_fmt’ in something not a structure or union
| 498 | switch (data->enc->sample_fmt) {
| | ^~
| ffmpeg.c: In function ‘is_seek_broken’:
| ffmpeg.c:548:13: warning: implicit declaration of function ‘avcodec_version’; did you mean ‘avformat_version’? [-Wimplicit-function-declaration]
| 548 | if (avcodec_version () < AV_VERSION_INT(55,8,100))
| | ^~~~~~~~~~~~~~~
| | avformat_version
| ffmpeg.c: In function ‘set_downmixing’:
| ffmpeg.c:564:57: error: request for member ‘channel_layout’ in something not a structure or union
| 564 | if (av_get_channel_layout_nb_channels (data->enc->channel_layout) <= 2)
| | ^~
| ffmpeg.c:567:18: error: request for member ‘request_channel_layout’ in something not a structure or union
| 567 | data->enc->request_channel_layout = AV_CH_LAYOUT_STEREO;
| | ^~
| ffmpeg.c: In function ‘ffmpeg_open_internal’:
| ffmpeg.c:711:21: warning: implicit declaration of function ‘avcodec_alloc_context3’; did you mean ‘avio_alloc_context’? [-Wimplicit-function-declaration]
| 711 | data->enc = avcodec_alloc_context3 (NULL);
| | ^~~~~~~~~~~~~~~~~~~~~~
| | avio_alloc_context
| ffmpeg.c:711:19: warning: assignment to ‘int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
| 711 | data->enc = avcodec_alloc_context3 (NULL);
| | ^
| ffmpeg.c:719:15: warning: implicit declaration of function ‘avcodec_parameters_to_context’; did you mean ‘avcodec_parameters_copy’? [-Wimplicit-function-declaration]
| 719 | err = avcodec_parameters_to_context (data->enc, data->stream->codecpar);
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | avcodec_parameters_copy
| ffmpeg.c:734:54: error: request for member ‘codec_id’ in something not a structure or union
| 734 | data->codec = avcodec_find_decoder (data->enc->codec_id);
| | ^~
| ffmpeg.c:765:26: error: request for member ‘flags’ in something not a structure or union
| 765 | data->enc->flags |= AV_CODEC_FLAG_TRUNCATED;
| | ^~
| ffmpeg.c:66:34: error: ‘CODEC_FLAG_TRUNCATED’ undeclared (first use in this function); did you mean ‘AV_CODEC_FLAG_TRUNCATED’?
| 66 | # define AV_CODEC_FLAG_TRUNCATED CODEC_FLAG_TRUNCATED
| | ^~~~~~~~~~~~~~~~~~~~
| ffmpeg.c:765:37: note: in expansion of macro ‘AV_CODEC_FLAG_TRUNCATED’
| 765 | data->enc->flags |= AV_CODEC_FLAG_TRUNCATED;
| | ^~~~~~~~~~~~~~~~~~~~~~~
| ffmpeg.c:66:34: note: each undeclared identifier is reported only once for each function it appears in
| 66 | # define AV_CODEC_FLAG_TRUNCATED CODEC_FLAG_TRUNCATED
| | ^~~~~~~~~~~~~~~~~~~~
| ffmpeg.c:765:37: note: in expansion of macro ‘AV_CODEC_FLAG_TRUNCATED’
| 765 | data->enc->flags |= AV_CODEC_FLAG_TRUNCATED;
| | ^~~~~~~~~~~~~~~~~~~~~~~
| ffmpeg.c:767:13: warning: implicit declaration of function ‘avcodec_open2’; did you mean ‘avio_open2’? [-Wimplicit-function-declaration]
| 767 | if (avcodec_open2 (data->enc, data->codec, NULL) < 0)
| | ^~~~~~~~~~~~~
| | avio_open2
| ffmpeg.c:777:65: error: request for member ‘sample_fmt’ in something not a structure or union
| 777 | av_get_sample_fmt_name (data->enc->sample_fmt));
| | ^~
| ffmpeg.c:808:9: warning: implicit declaration of function ‘avcodec_free_context’; did you mean ‘avformat_free_context’? [-Wimplicit-function-declaration]
| 808 | avcodec_free_context (&data->enc);
| | ^~~~~~~~~~~~~~~~~~~~
| | avformat_free_context
| ffmpeg.c: In function ‘ffmpeg_can_decode’:
| ffmpeg.c:866:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 866 | fmt = av_probe_input_format (&probe_data, 1);
| | ^
| ffmpeg.c: At top level:
| ffmpeg.c:1030:26: error: unknown type name ‘AVCodecContext’; did you mean ‘AVIODirContext’?
| 1030 | static int decode_audio (AVCodecContext *ctx, AVFrame *frame,
| | ^~~~~~~~~~~~~~
| | AVIODirContext
| ffmpeg.c: In function ‘decode_packet’:
| ffmpeg.c:1107:23: warning: implicit declaration of function ‘decode_audio’ [-Wimplicit-function-declaration]
| 1107 | len = decode_audio (data->enc, frame, &got_frame, pkt);
| | ^~~~~~~~~~~~
| ffmpeg.c:1129:63: error: request for member ‘sample_fmt’ in something not a structure or union
| 1129 | is_planar = av_sample_fmt_is_planar (data->enc->sample_fmt);
| | ^~
| ffmpeg.c:1132:60: error: request for member ‘channels’ in something not a structure or union
| 1132 | * data->enc->channels;
| | ^~
| ffmpeg.c:1134:43: error: request for member ‘channels’ in something not a structure or union
| 1134 | if (is_planar && data->enc->channels > 1) {
| | ^~
| ffmpeg.c:1140:60: error: request for member ‘channels’ in something not a structure or union
| 1140 | for (ch = 0; ch < data->enc->channels; ch += 1)
| | ^~
| ffmpeg.c:1141:77: error: request for member ‘channels’ in something not a structure or union
| 1141 | memcpy (packed + (sample * data->enc->channels + ch)
| | ^~
| ffmpeg.c: In function ‘seek_in_stream’:
| ffmpeg.c:1200:25: error: ‘AVStream’ has no member named ‘cur_dts’
| 1200 | if (data->stream->cur_dts > seek_ts)
| | ^~
| ffmpeg.c:1209:9: warning: implicit declaration of function ‘avcodec_flush_buffers’ [-Wimplicit-function-declaration]
| 1209 | avcodec_flush_buffers (data->enc);
| | ^~~~~~~~~~~~~~~~~~~~~
| ffmpeg.c: In function ‘ffmpeg_decode’:
| ffmpeg.c:1241:43: error: request for member ‘channels’ in something not a structure or union
| 1241 | sound_params->channels = data->enc->channels;
| | ^~
| ffmpeg.c:1242:39: error: request for member ‘sample_rate’ in something not a structure or union
| 1242 | sound_params->rate = data->enc->sample_rate;
| | ^~
| ffmpeg.c: In function ‘ffmpeg_our_format_mime’:
| ffmpeg.c:1415:13: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 1415 | fmt = av_guess_format (NULL, NULL, mime_type);
| | ^
| make[4]: *** [Makefile:545: libffmpeg_decoder_la-ffmpeg.lo] Error 1

Cheers
--
Sebastian Ramacher
signature.asc

Elimar Riesebieter

unread,
Feb 1, 2022, 6:20:04 PM2/1/22
to
Control: forwarded -1 mocm...@daper.net

* Sebastian Ramacher <sram...@debian.org> [2022-01-30 21:37 +0100]:

> Source: moc
> Version: 1:2.6.0~svn-r3005-1
> Severity: important
> X-Debbugs-Cc: sram...@debian.org
> Tags: sid bookworm ftbfs
> Usertags: ffmpeg5.0
>
> moc FTBFS with ffmpeg 5.0 (available in experimental):

Elimar

--
The path to source is always uphill!
-unknown-
0 new messages