[MPlayer-users] Compiling against latest ffmpeg git and X11 libs fails.

SMF Forum 1 smf.forum1 at ntlworld.com
Fri Sep 20 19:52:09 EEST 2024


I Have just built a new LFS/BLFS system (SystemD Version 12.2) and I
cannot get mplayer to compile (not part of BLFS any more). Has anyone
else seen these errors and if so would they care to share their
solutions or should I try and fix them and submit a patch (assuming I
can fix them all) thanks:

I have used gcc version 13.2 to compile mplayer has I have read that
there are issues with 14.2.

The mplayer is latest from svn and the ffmpeg is latest from git.


Here are the files that fail:

cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o mplayer.o mplayer.c
mplayer.c: In function 'main':
mplayer.c:3545:41: error: passing argument 2 of 'stream_write_buffer'
from incompatible pointer type [-Wincompatible-pointer-types]
 3545 |                 stream_write_buffer(os, &in_size, 4);
      |                                         ^~~~~~~~
      |                                         |
      |                                         int *
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: mplayer.o] Error 1
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o libvo/vo_aa.o libvo/vo_aa.c
libvo/vo_aa.c: In function 'draw_frame':
libvo/vo_aa.c:360:17: error: passing argument 2 of 'sws_scale' from
incompatible pointer type [-Wincompatible-pointer-types]
  360 |   sws_scale(sws,src,stride,0,src_height,image,image_stride);
      |                 ^~~
      |                 |
      |                 uint8_t ** {aka unsigned char **}
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: libvo/vo_aa.o] Error 1
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o libvo/gl_common.o libvo/gl_common.c
libvo/gl_common.c: In function 'getWindowVisualInfo':
libvo/gl_common.c:2242:12: error: returning 'Visual *' from a function
with incompatible return type 'XVisualInfo *' [-Wincompatible-pointer-
types]
 2242 |     return DefaultVisual(mDisplay, 0);
      |            ^~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: libvo/gl_common.o] Error 1
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o libvo/vo_matrixview.o libvo/vo_matrixview.c
libvo/vo_matrixview.c: In function 'draw_slice':
libvo/vo_matrixview.c:173:20: error: passing argument 2 of 'sws_scale'
from incompatible pointer type [-Wincompatible-pointer-types]
  173 |     sws_scale(sws, src, stride, y, h, map_image, map_stride);
      |                    ^~~
      |                    |
      |                    uint8_t ** {aka unsigned char **}
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: libvo/vo_matrixview.o] Error 1
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o libvo/vo_x11.o libvo/vo_x11.c
libvo/vo_x11.c: In function 'draw_slice':
libvo/vo_x11.c:495:27: error: passing argument 2 of 'sws_scale' from
incompatible pointer type [-Wincompatible-pointer-types]
  495 |     sws_scale(swsContext, src, stride, y, h, dst, dstStride);
      |                           ^~~
      |                           |
      |                           uint8_t ** {aka unsigned char **}
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: libvo/vo_x11.o] Error 1
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o mp_msg.o mp_msg.c
mp_msg.c: In function 'filename_recode':
mp_msg.c:73:29: error: passing argument 2 of 'iconv' from incompatible
pointer type [-Wincompatible-pointer-types]
   73 |     if (iconv(inv_msgiconv, &filename, &filename_len,
      |                             ^~~~~~~~~
      |                             |
      |                             const char **
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: mp_msg.o] Error 1
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o libmpcodecs/vf_scale.o
libmpcodecs/vf_scale.c
libmpcodecs/vf_scale.c: In function 'scale':
libmpcodecs/vf_scale.c:442:25: error: passing argument 2 of 'sws_scale'
from incompatible pointer type [-Wincompatible-pointer-types]
  442 |         sws_scale(sws1, src2, src_stride2, y>>1, h>>1, dst2,
dst_stride2);
      |                         ^~~~
      |                         |
      |                         uint8_t ** {aka unsigned char **}
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: libmpcodecs/vf_scale.o] Error 1
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o libmpdemux/demux_film.o
libmpdemux/demux_film.c
libmpdemux/demux_film.c: In function 'demux_film_fill_buffer':
libmpdemux/demux_film.c:160:31: error: initialization of 'short
unsigned int *' from incompatible pointer type 'unsigned char *' [-
Wincompatible-pointer-types]
  160 |         unsigned short* tmp = dp->buffer;
      |                               ^~
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: libmpdemux/demux_film.o] Error 1
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o libmpdemux/demux_mov.o
libmpdemux/demux_mov.c
In file included from libmpdemux/demux_mov.c:54:
./loader/qtx/qtxsdk/components.h: In function
'dump_CodecDecompressParams':
./loader/qtx/qtxsdk/components.h:783:25: error: initialization of
'unsigned int *' from incompatible pointer type 'OSType **' {aka 'int
**'} [-Wincompatible-pointer-types]
  783 |         unsigned int* p=cd->wantedDestinationPixelTypes;
      |                         ^~
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: libmpdemux/demux_mov.o] Error 1
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o sub/spudec.o sub/spudec.c
sub/spudec.c: In function 'sws_spu_image':
sub/spudec.c:902:23: error: passing argument 2 of 'sws_scale' from
incompatible pointer type [-Wincompatible-pointer-types]
  902 |         sws_scale(ctx,&s2,&ss,0,sh,&d2,&ds);
      |                       ^~~
      |                       |
      |                       unsigned char **
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: sub/spudec.o] Error 1
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o sub/sub.o sub/sub.c
sub/sub.c: In function 'vo_update_text_sub':
sub/sub.c:730:33: error: passing argument 1 of 'utf8_get_char' from
incompatible pointer type [-Wincompatible-pointer-types]
  730 |               c = utf8_get_char(&t);
      |                                 ^~
      |                                 |
      |                                 unsigned char **
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: sub/sub.o] Error 1
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o libaf/af_lavcresample.o
libaf/af_lavcresample.c
libaf/af_lavcresample.c: In function 'play':
libaf/af_lavcresample.c:177:63: error: passing argument 4 of
'swr_convert' from incompatible pointer type [-Wincompatible-pointer-
types]
  177 |   ret = swr_convert(s->swrctx, &s->tmp[0], out_len/chans/bps,
&s->in[0], in_len/chans/bps);
      |                                                              
^~~~~~~~~
      |                                                               |
      |                                                              
uint8_t ** {aka unsigned char **}
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: libaf/af_lavcresample.o] Error 1
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o libmpcodecs/ad_spdif.o
libmpcodecs/ad_spdif.c
libmpcodecs/ad_spdif.c: In function 'init':
libmpcodecs/ad_spdif.c:134:48: error: passing argument 2 of
'avformat_write_header' from incompatible pointer type [-Wincompatible-
pointer-types]
  134 |     if ((res = avformat_write_header(lavf_ctx, opts)) < 0) {
      |                                                ^~~~
      |                                                |
      |                                                AVDictionary *
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: libmpcodecs/ad_spdif.o] Error 1
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o libmpcodecs/vd_ffmpeg.o
libmpcodecs/vd_ffmpeg.c
libmpcodecs/vd_ffmpeg.c: In function 'get_buffer':
libmpcodecs/vd_ffmpeg.c:731:24: error: assignment to 'unsigned char *'
from 'VdpVideoSurface' {aka 'unsigned int'} makes pointer from integer
without a cast [-Wint-conversion]
  731 |         mpi->planes[3] = surface;
      |                        ^
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: libmpcodecs/vd_ffmpeg.o] Error 1
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o libmpcodecs/vf_screenshot.o
libmpcodecs/vf_screenshot.c
libmpcodecs/vf_screenshot.c: In function 'draw_slice':
libmpcodecs/vf_screenshot.c:63:34: error: passing argument 2 of
'sws_scale' from incompatible pointer type [-Wincompatible-pointer-
types]
   63 |         sws_scale(vf->priv->ctx, src, stride, y, h, vf->priv-
>pic->data, vf->priv->pic->linesize);
      |                                  ^~~
      |                                  |
      |                                  unsigned char **
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: libmpcodecs/vf_screenshot.o] Error 1
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o libmpdemux/demux_lavf.o
libmpdemux/demux_lavf.c
libmpdemux/demux_lavf.c: In function 'handle_stream':
libmpdemux/demux_lavf.c:381:42: error: initialization of 'const int32_t
*' {aka 'const int *'} from incompatible pointer type 'uint8_t *' {aka
'unsigned char *'} [-Wincompatible-pointer-types]
  381 |             const int32_t *disp_matrix =
av_stream_get_side_data(st, AV_PKT_DATA_DISPLAYMATRIX, NULL);
      |                                         
^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: libmpdemux/demux_lavf.o] Error 1
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o libmpcodecs/vf_pp.o libmpcodecs/vf_pp.c
libmpcodecs/vf_pp.c: In function 'put_image':
libmpcodecs/vf_pp.c:145:27: error: passing argument 1 of
'pp_postprocess' from incompatible pointer type [-Wincompatible-
pointer-types]
  145 |         pp_postprocess(mpi->planes           ,mpi->stride,
      |                        ~~~^~~~~~~~
      |                           |
      |                           unsigned char **
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: libmpcodecs/vf_pp.o] Error 1
make -C ffmpeg libavformat/libavformat.a
make[1]: Entering directory '/sources/mplayer_22-06-2020/ffmpeg'

WARNING: libavdevice/alldevices.c libavfilter/allfilters.c
libavformat/allformats.c libavcodec/allcodecs.c
libavcodec/bitstream_filters.c libavcodec/hwaccels.h
libavcodec/parsers.c libavformat/protocols.c newer than
config_components.h, rerun configure

cc -I. -I/  -DHAVE_AV_CONFIG_H -DBUILDING_avformat -Wundef -Wstrict-
prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-
sign -Wdeclaration-after-statement -std=c11 -D_POSIX_C_SOURCE=200112 -
D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -w -mfpmath=sse -O3 -
march=native -fomit-frame-pointer -pipe -ffast-math -Wfatal-errors -m64
-fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -
I/usr/include/samba-4.0 -I/usr/include/openjpeg-2.5 -D_REENTRANT -
I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DZLIB_CONST -
I/usr/include/opus -I/usr/include/libxml2   -MMD -MP -c -o
libavformat/allformats.o libavformat/allformats.c
In file included from libavformat/allformats.c:579:
./libavformat/muxer_list.c:2:5: error: initialization of 'const
AVOutputFormat *' from incompatible pointer type 'const FFOutputFormat
*' [-Wincompatible-pointer-types]
    2 |     &ff_a64_muxer,
      |     ^
compilation terminated due to -Wfatal-errors.
make[1]: *** [ffbuild/common.mak:81: libavformat/allformats.o] Error 1
make[1]: Target 'libavformat/libavformat.a' not remade because of
errors.
make[1]: Leaving directory '/sources/mplayer_22-06-2020/ffmpeg'
make: *** [Makefile:743: ffmpeg/libavformat/libavformat.a] Error 2
cc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -
Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=c11 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE
-I. -Iffmpeg -w -mfpmath=sse -O3 -march=native -fomit-frame-pointer -
pipe -ffast-math -Wfatal-errors -m64 -fno-tree-vectorize -fno-
asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGEFILE64_SOURCE -fpie -DPIC -D_REENTRANT -I/usr/include/samba-4.0
-I/usr/include/openjpeg-2.5 -D_REENTRANT -I/usr/include/freetype2 -
I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -
I/usr/include/libxml2 -c -o libmpdemux/muxer_avi.o
libmpdemux/muxer_avi.c
libmpdemux/muxer_avi.c: In function 'write_avi_chunk':
libmpdemux/muxer_avi.c:145:30: error: passing argument 2 of
'stream_write_buffer' from incompatible pointer type [-Wincompatible-
pointer-types]
  145 |  stream_write_buffer(stream, &le_id, 4);
      |                              ^~~~~~
      |                              |
      |                              int *
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:729: libmpdemux/muxer_avi.o] Error 1
make: Target 'all' not remade because of errors.




More information about the MPlayer-users mailing list