Menu

#14 xine-lib-1.2 hg fails to build with ffmpeg 5.1.1

1.2.x
open
nobody
None
2022-09-08
2022-09-08
No

Building current xine-lib-1.2 from mercurial fails:

/bin/bash ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../.. -I../../../include -I../../../include -I../../../src -I../../../src/xine-engine -I../../../src/xine-engine -I../../../src/xine-utils -I../../../src/input -I../../../src/input -I../../../lib -I../../../lib -DNDEBUG -D_REENTRANT -DXINE_COMPILE -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -fexpensive-optimizations -ffast-math -fvisibility=hidden -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -pipe -Wall -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute -Werror-implicit-function-declaration -Wstrict-aliasing=2 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wpointer-arith -g -g -O2 -ffile-prefix-map=/build/xine-lib-1.2-1.2.12=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -fexpensive-optimizations -ffast-math -Wall -Wchar-subscripts -Wnested-externs -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wmissing-format-attribute -Wno-pointer-sign -Wformat=2 -Wno-format-zero-length -Wformat-security -Wstrict-aliasing=2 -Werror=implicit-function-declaration -c -o xineplug_decode_ff_la-demux_avformat.lo test -f 'demux_avformat.c' || echo './'demux_avformat.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../.. -I../../../include -I../../../include -I../../../src -I../../../src/xine-engine -I../../../src/xine-engine -I../../../src/xine-utils -I../../../src/input -I../../../src/input -I../../../lib -I../../../lib -DNDEBUG -D_REENTRANT -DXINE_COMPILE -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -fexpensive-optimizations -ffast-math -fvisibility=hidden -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -pipe -Wall -Wformat=2 -Wno-format-zero-length -Wmissing-format-attribute -Werror-implicit-function-declaration -Wstrict-aliasing=2 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wpointer-arith -g -g -O2 -ffile-prefix-map=/build/xine-lib-1.2-1.2.12=. -fstack-protector-strong -Wformat -Werror=format-security -O3 -fexpensive-optimizations -ffast-math -Wall -Wchar-subscripts -Wnested-externs -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wmissing-format-attribute -Wno-pointer-sign -Wformat=2 -Wno-format-zero-length -Wformat-security -Wstrict-aliasing=2 -Werror=implicit-function-declaration -c demux_avformat.c -fPIC -DPIC -o .libs/xineplug_decode_ff_la-demux_avformat.o
In file included from demux_avformat.c:49:
ffmpeg_compat.h:32:6: error: #error ffmpeg headers must be included first !
32 | # error ffmpeg headers must be included first !
| ^~~~~
demux_avformat.c: In function 'video_codec_lookup':
demux_avformat.c:312:19: error: 'ff_video_lookup_entries' undeclared (first use in this function)
312 | for (i = 0; i < ff_video_lookup_entries; i++) {
| ^~~~~~~~~~~~~~~~~~~~~~~
demux_avformat.c:312:19: note: each undeclared identifier is reported only once for each function it appears in
demux_avformat.c:313:9: error: 'ff_video_lookup' undeclared (first use in this function)
313 | if (ff_video_lookup[i].id == id) {
| ^~~~~~~~~~~~~~~
demux_avformat.c: In function 'audio_codec_lookup':
demux_avformat.c:326:19: error: 'ff_audio_lookup_entries' undeclared (first use in this function)
326 | for (i = 0; i < ff_audio_lookup_entries; i++) {
| ^~~~~~~~~~~~~~~~~~~~~~~
demux_avformat.c:327:9: error: 'ff_audio_lookup' undeclared (first use in this function)
327 | if (ff_audio_lookup[i].id == id) {
| ^~~~~~~~~~~~~~~
demux_avformat.c:335:10: error: 'CODEC_ID_PCM_S16LE' undeclared (first use in this function); did you mean 'AV_CODEC_ID_PCM_S16LE'?
335 | case CODEC_ID_PCM_S16LE:
| ^~~~~~~~~~~~~~~~~~
| AV_CODEC_ID_PCM_S16LE
demux_avformat.c:337:10: error: 'CODEC_ID_PCM_S16BE' undeclared (first use in this function); did you mean 'AV_CODEC_ID_PCM_S16BE'?
337 | case CODEC_ID_PCM_S16BE:
| ^~~~~~~~~~~~~~~~~~
| AV_CODEC_ID_PCM_S16BE
demux_avformat.c:339:10: error: 'CODEC_ID_MP2' undeclared (first use in this function); did you mean 'AV_CODEC_ID_MP2'?
339 | case CODEC_ID_MP2:
| ^~~~~~~~~~~~
| AV_CODEC_ID_MP2
demux_avformat.c:341:10: error: 'CODEC_ID_AC3' undeclared (first use in this function); did you mean 'AV_CODEC_ID_AC3'?
341 | case CODEC_ID_AC3:
| ^~~~~~~~~~~~
| AV_CODEC_ID_AC3
demux_avformat.c: In function 'find_avformat_streams':
demux_avformat.c:426:9: warning: 'channels' is deprecated [-Wdeprecated-declarations]
426 | st->codecpar->sample_rate != 0 && st->codecpar->channels != 0)
| ^~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:314,
from demux_avformat.c:33:
/usr/include/x86_64-linux-gnu/libavcodec/codec_par.h:172:14: note: declared here
172 | int channels;
| ^~~~~~~~
demux_avformat.c: In function 'send_headers_audio':
demux_avformat.c:503:3: warning: 'channels' is deprecated [-Wdeprecated-declarations]
503 | buf->decoder_info[3] = ctx->channels;
| ^~~
/usr/include/x86_64-linux-gnu/libavcodec/codec_par.h:172:14: note: declared here
172 | int channels;
| ^~~~~~~~
demux_avformat.c: In function 'send_avpacket':
demux_avformat.c:555:3: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
555 | XFF_PACKET_NEW (pkt);
| ^~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:316:
/usr/include/x86_64-linux-gnu/libavcodec/packet.h:512:6: note: declared here
512 | void av_init_packet(AVPacket pkt);
| ^~~~~~~~~~~~~~
ffmpeg_compat.h:266:32: error: implicit declaration of function 'av_free_packet'; did you mean 'av_get_packet'? [-Werror=implicit-function-declaration]
266 | # define XFF_PACKET_UNREF(_p) av_free_packet (_p)
| ^~~~~~~~~~~~~~
demux_avformat.c:595:3: note: in expansion of macro 'XFF_PACKET_UNREF'
595 | XFF_PACKET_UNREF (pkt);
| ^~~~~~~~~~~~~~~~
ffmpeg_compat.h:266:32: warning: nested extern declaration of 'av_free_packet' [-Wnested-externs]
266 | # define XFF_PACKET_UNREF(_p) av_free_packet (_p)
| ^~~~~~~~~~~~~~
demux_avformat.c:595:3: note: in expansion of macro 'XFF_PACKET_UNREF'
595 | XFF_PACKET_UNREF (pkt);
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[5]:
[Makefile:829: xineplug_decode_ff_la-demux_avformat.lo] Error 1
make[5]:
* Waiting for unfinished jobs....

Discussion


Log in to post a comment.