[MPlayer-users] make: *** [Makefile:744: ffmpeg/libavcodec/libavcodec.a] Error 2

Antonio Olivares olivares14031 at yahoo.com
Wed Apr 19 18:02:01 EEST 2023


Dear mplayer-users/developers

On slarm64 system on a rasbperry pi, compiling from source.  I get successful compilation but when running make install, it fails:

libavformat/wavdec.c:717:17: warning: 'vst' may be used uninitialized [-Wmaybe-uninitialized]
  717 |                 av_compare_ts(video_dts, vst->time_base,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  718 |                               audio_dts,  st->time_base) > 0 : 0;
      |                               ~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/wavdec.c:709:19: note: 'vst' was declared here
  709 |         AVStream *vst = wav->vst;
      |                   ^~~
CC    libavformat/webpenc.o
CC    libavformat/webvttdec.o
CC    libavformat/webvttenc.o
In function 'write_adaptation_set',
    inlined from 'webm_dash_manifest_write_header' at libavformat/webmdashenc.c:507:15:
libavformat/webmdashenc.c:402:25: warning: 'period_pos' may be used uninitialized [-Wmaybe-uninitialized]
  402 |             *period_pos = '.';
      |             ~~~~~~~~~~~~^~~~~
libavformat/webmdashenc.c: In function 'webm_dash_manifest_write_header':
libavformat/webmdashenc.c:382:67: note: 'period_pos' was declared here
  382 |         char buf[25], *representation_id = buf, *underscore_pos, *period_pos;
      |                                                                   ^~~~~~~~~~
CC    libavformat/westwood_aud.o
CC    libavformat/westwood_audenc.o
CC    libavformat/westwood_vqa.o
CC    libavformat/wsddec.o
CC    libavformat/wtvdec.o
CC    libavformat/wtv_common.o
CC    libavformat/wtvenc.o
CC    libavformat/wv.o
CC    libavformat/wvdec.o
CC    libavformat/wvedec.o
CC    libavformat/wvenc.o
CC    libavformat/xa.o
CC    libavformat/xmd.o
CC    libavformat/xmv.o
CC    libavformat/xvag.o
CC    libavformat/xwma.o
CC    libavformat/yop.o
CC    libavformat/yuv4mpegdec.o
CC    libavformat/yuv4mpegenc.o
AR    libavformat/libavformat.a
make[1]: Leaving directory '/home/olivares/Downloads/mplayer/ffmpeg'
bash-5.2$ su -c 'make install'
Password:
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/samba-4.0 -I/usr/X11/include -I/usr/include/ -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/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -I/usr/include/libxml2 -c -o xvid_vbr.o xvid_vbr.c
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/samba-4.0 -I/usr/X11/include -I/usr/include/ -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/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -I/usr/include/libxml2 -c -o libmpcodecs/ae.o libmpcodecs/ae.c
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/samba-4.0 -I/usr/X11/include -I/usr/include/ -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/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -I/usr/include/libxml2 -c -o libmpcodecs/ae_pcm.o libmpcodecs/ae_pcm.c
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/samba-4.0 -I/usr/X11/include -I/usr/include/ -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/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -I/usr/include/libxml2 -c -o libmpcodecs/ve.o libmpcodecs/ve.c
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/samba-4.0 -I/usr/X11/include -I/usr/include/ -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/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -I/usr/include/libxml2 -c -o libmpcodecs/ve_raw.o libmpcodecs/ve_raw.c
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/samba-4.0 -I/usr/X11/include -I/usr/include/ -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/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -I/usr/include/libxml2 -c -o libmpdemux/muxer.o libmpdemux/muxer.c
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/samba-4.0 -I/usr/X11/include -I/usr/include/ -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/lib64/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: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompatible-pointer-types]
  145 |  stream_write_buffer(stream, &le_id, 4);
      |                              ^~~~~~
      |                              |
      |                              int *
In file included from ./libmpdemux/demuxer.h:27,
                 from ./mpcommon.h:25,
                 from libmpdemux/muxer_avi.c:28:
./stream/stream.h:203:53: note: expected 'unsigned char *' but argument is of type 'int *'
  203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len);
      |                                      ~~~~~~~~~~~~~~~^~~
libmpdemux/muxer_avi.c:146:30: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompatible-pointer-types]
  146 |  stream_write_buffer(stream, &le_len, 4);
      |                              ^~~~~~~
      |                              |
      |                              int *
./stream/stream.h:203:53: note: expected 'unsigned char *' but argument is of type 'int *'
  203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len);
      |                                      ~~~~~~~~~~~~~~~^~~
libmpdemux/muxer_avi.c: In function 'write_avi_list':
libmpdemux/muxer_avi.c:179:31: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompatible-pointer-types]
  179 |   stream_write_buffer(stream, &list_id, 4);
      |                               ^~~~~~~~
      |                               |
      |                               unsigned int *
./stream/stream.h:203:53: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
  203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len);
      |                                      ~~~~~~~~~~~~~~~^~~
libmpdemux/muxer_avi.c:180:31: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompatible-pointer-types]
  180 |   stream_write_buffer(stream, &le_len, 4);
      |                               ^~~~~~~
      |                               |
      |                               int *
./stream/stream.h:203:53: note: expected 'unsigned char *' but argument is of type 'int *'
  203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len);
      |                                      ~~~~~~~~~~~~~~~^~~
libmpdemux/muxer_avi.c:181:31: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompatible-pointer-types]
  181 |   stream_write_buffer(stream, &le_id, 4);
      |                               ^~~~~~
      |                               |
      |                               int *
./stream/stream.h:203:53: note: expected 'unsigned char *' but argument is of type 'int *'
  203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len);
      |                                      ~~~~~~~~~~~~~~~^~~
libmpdemux/muxer_avi.c: In function 'avifile_odml_new_riff':
libmpdemux/muxer_avi.c:202:40: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompatible-pointer-types]
  202 |     stream_write_buffer(muxer->stream, riff, 12);
      |                                        ^~~~
      |                                        |
      |                                        uint32_t * {aka unsigned int *}
./stream/stream.h:203:53: note: expected 'unsigned char *' but argument is of type 'uint32_t *' {aka 'unsigned int *'}
  203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len);
      |                                      ~~~~~~~~~~~~~~~^~~
libmpdemux/muxer_avi.c: In function 'avifile_write_header':
libmpdemux/muxer_avi.c:254:45: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompatible-pointer-types]
  254 |           stream_write_buffer(muxer->stream,&rifflen,4);
      |                                             ^~~~~~~~
      |                                             |
      |                                             unsigned int *
./stream/stream.h:203:53: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
  203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len);
      |                                      ~~~~~~~~~~~~~~~^~~
libmpdemux/muxer_avi.c:259:49: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompatible-pointer-types]
  259 |               stream_write_buffer(muxer->stream,&movilen,4);
      |                                                 ^~~~~~~~
      |                                                 |
      |                                                 unsigned int *
./stream/stream.h:203:53: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
  203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len);
      |                                      ~~~~~~~~~~~~~~~^~~
libmpdemux/muxer_avi.c:272:39: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompatible-pointer-types]
  272 |     stream_write_buffer(muxer->stream,&riff,12);
      |                                       ^~~~~
      |                                       |
      |                                       uint32_t (*)[3] {aka unsigned int (*)[3]}
./stream/stream.h:203:53: note: expected 'unsigned char *' but argument is of type 'uint32_t (*)[3]' {aka 'unsigned int (*)[3]'}
  203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len);
      |                                      ~~~~~~~~~~~~~~~^~~
libmpdemux/muxer_avi.c:409:45: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompatible-pointer-types]
  409 |           stream_write_buffer(muxer->stream,idxhdr,sizeof(idxhdr));
      |                                             ^~~~~~
      |                                             |
      |                                             unsigned int *
./stream/stream.h:203:53: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
  203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len);
      |                                      ~~~~~~~~~~~~~~~^~~
libmpdemux/muxer_avi.c:417:49: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompatible-pointer-types]
  417 |               stream_write_buffer(muxer->stream,data,sizeof(data));
      |                                                 ^~~~
      |                                                 |
      |                                                 unsigned int *
./stream/stream.h:203:53: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
  203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len);
      |                                      ~~~~~~~~~~~~~~~^~~
libmpdemux/muxer_avi.c:433:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  433 | info[0].text=mencoder_version;
      |             ^
libmpdemux/muxer_avi.c: In function 'avifile_odml_write_index':
libmpdemux/muxer_avi.c:645:44: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompatible-pointer-types]
  645 |         stream_write_buffer(muxer->stream, idxhdr,sizeof(idxhdr));
      |                                            ^~~~~~
      |                                            |
      |                                            unsigned int *
./stream/stream.h:203:53: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
  203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len);
      |                                      ~~~~~~~~~~~~~~~^~~
libmpdemux/muxer_avi.c:651:48: warning: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompatible-pointer-types]
  651 |             stream_write_buffer(muxer->stream, entry, sizeof(entry));
      |                                                ^~~~~
      |                                                |
      |                                                unsigned int *
./stream/stream.h:203:53: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
  203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len);
      |                                      ~~~~~~~~~~~~~~~^~~
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/samba-4.0 -I/usr/X11/include -I/usr/include/ -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/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -I/usr/include/libxml2 -c -o libmpdemux/muxer_mpeg.o libmpdemux/muxer_mpeg.c
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/samba-4.0 -I/usr/X11/include -I/usr/include/ -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/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -I/usr/include/libxml2 -c -o libmpdemux/muxer_rawaudio.o libmpdemux/muxer_rawaudio.c
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/samba-4.0 -I/usr/X11/include -I/usr/include/ -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/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -I/usr/include/libxml2 -c -o libmpdemux/muxer_rawvideo.o libmpdemux/muxer_rawvideo.c
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/samba-4.0 -I/usr/X11/include -I/usr/include/ -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/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -I/usr/include/libxml2 -c -o libmpcodecs/ae_lavc.o libmpcodecs/ae_lavc.c
libmpcodecs/ae_lavc.c: In function 'bind_lavc':
libmpcodecs/ae_lavc.c:53:9: warning: 'channels' is deprecated [-Wdeprecated-declarations]
   53 |         mux_a->wf->nChannels = lavc_actx->channels;
      |         ^~~~~
In file included from libmpcodecs/ae_lavc.c:39:
ffmpeg/libavcodec/avcodec.h:1058:9: note: declared here
 1058 |     int channels;
      |         ^~~~~~~~
libmpcodecs/ae_lavc.c: In function 'mpae_init_lavc':
libmpcodecs/ae_lavc.c:154:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  154 |         lavc_acodec = avcodec_find_encoder_by_name(lavc_param_acodec);
      |                     ^
libmpcodecs/ae_lavc.c:195:9: warning: 'channels' is deprecated [-Wdeprecated-declarations]
  195 |         lavc_actx->channels = encoder->params.channels;
      |         ^~~~~~~~~
ffmpeg/libavcodec/avcodec.h:1058:9: note: declared here
 1058 |     int channels;
      |         ^~~~~~~~
libmpcodecs/ae_lavc.c:222:17: warning: 'channels' is deprecated [-Wdeprecated-declarations]
  222 |                 int framesize = (blkalign - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + 1;
      |                 ^~~
ffmpeg/libavcodec/avcodec.h:1058:9: note: declared here
 1058 |     int channels;
      |         ^~~~~~~~
libmpcodecs/ae_lavc.c:222:17: warning: 'channels' is deprecated [-Wdeprecated-declarations]
  222 |                 int framesize = (blkalign - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + 1;
      |                 ^~~
ffmpeg/libavcodec/avcodec.h:1058:9: note: declared here
 1058 |     int channels;
      |         ^~~~~~~~
libmpcodecs/ae_lavc.c:241:17: warning: 'channels' is deprecated [-Wdeprecated-declarations]
  241 |                 lavc_actx->frame_size = (lavc_actx->block_align - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + 1;
      |                 ^~~~~~~~~
ffmpeg/libavcodec/avcodec.h:1058:9: note: declared here
 1058 |     int channels;
      |         ^~~~~~~~
libmpcodecs/ae_lavc.c:241:17: warning: 'channels' is deprecated [-Wdeprecated-declarations]
  241 |                 lavc_actx->frame_size = (lavc_actx->block_align - 4 * lavc_actx->channels) * 8 / (4 * lavc_actx->channels) + 1;
      |                 ^~~~~~~~~
ffmpeg/libavcodec/avcodec.h:1058:9: note: declared here
 1058 |     int channels;
      |         ^~~~~~~~
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/samba-4.0 -I/usr/X11/include -I/usr/include/ -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/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -I/usr/include/libxml2 -c -o libmpcodecs/ve_lavc.o libmpcodecs/ve_lavc.c
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from libmpcodecs/ve_lavc.c:21:
/usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
libmpcodecs/ve_lavc.c: In function 'encode_frame':
libmpcodecs/ve_lavc.c:743:9: warning: 'frame_number' is deprecated [-Wdeprecated-declarations]
  743 |         pts= lavc_venc_context->frame_number * av_q2d(lavc_venc_context->time_base);
      |         ^~~
In file included from libmpcodecs/ve_lavc.c:58:
ffmpeg/libavcodec/avcodec.h:1092:9: note: declared here
 1092 |     int frame_number;
      |         ^~~~~~~~~~~~
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/samba-4.0 -I/usr/X11/include -I/usr/include/ -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/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -I/usr/include/libxml2 -c -o libmpdemux/muxer_lavf.o libmpdemux/muxer_lavf.c
libmpdemux/muxer_lavf.c: In function 'fix_parameters':
libmpdemux/muxer_lavf.c:195:17: warning: 'channels' is deprecated [-Wdeprecated-declarations]
  195 |                 ctx->channels = stream->wf->nChannels;
      |                 ^~~
In file included from ffmpeg/libavformat/avformat.h:314,
                 from libmpdemux/muxer_lavf.c:40:
ffmpeg/libavcodec/codec_par.h:173:14: note: declared here
  173 |     int      channels;
      |              ^~~~~~~~
libmpdemux/muxer_lavf.c:202:20: warning: the comparison will always evaluate as 'true' for the pointer operand in 'stream->wf + 18' must not be NULL [-Waddress]
  202 |                 if(stream->wf+1 && stream->wf->cbSize)
      |                    ^~~~~~
libmpdemux/muxer_lavf.c: In function 'write_chunk':
libmpdemux/muxer_lavf.c:257:9: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
  257 |         av_init_packet(&pkt);
      |         ^~~~~~~~~~~~~~
In file included from ffmpeg/libavformat/avformat.h:316:
ffmpeg/libavcodec/packet.h:512:6: note: declared here
  512 | void av_init_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
libmpdemux/muxer_lavf.c: In function 'muxer_init_muxer_lavf':
libmpdemux/muxer_lavf.c:358:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  358 |                 fmt = av_guess_format(conf_format, NULL, NULL);
      |                     ^
libmpdemux/muxer_lavf.c:360:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  360 |                 fmt = av_guess_format(NULL, out_filename, NULL);
      |                     ^
libmpdemux/muxer_lavf.c: In function 'write_header':
libmpdemux/muxer_lavf.c:296:9: warning: ignoring return value of 'avformat_write_header' declared with attribute 'warn_unused_result' [-Wunused-result]
  296 |         avformat_write_header(priv->oc, &opts);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/samba-4.0 -I/usr/X11/include -I/usr/include/ -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/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -I/usr/include/libxml2 -c -o libmpcodecs/ae_lame.o libmpcodecs/ae_lame.c
./codec-cfg etc/codecs.conf > codecs.conf.h
Reading optional codecs config file etc/codecs.conf: 226 audio & 469 video codecs
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/samba-4.0 -I/usr/X11/include -I/usr/include/ -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/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -I/usr/include/libxml2 -c -o codec-cfg.o codec-cfg.c
codec-cfg.c: In function 'parse_codec_cfg':
codec-cfg.c:632:22: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  632 |         video_codecs = builtin_video_codecs;
      |                      ^
codec-cfg.c:633:22: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  633 |         audio_codecs = builtin_audio_codecs;
      |                      ^
codec-cfg.c:636:20: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  636 |         codec_strs = builtin_codec_strs;
      |                    ^
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/samba-4.0 -I/usr/X11/include -I/usr/include/ -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/lib64/glib-2.0/include -DZLIB_CONST -I/usr/include/opus -I/usr/include/libxml2 -c -o mpcommon.o mpcommon.c
mpcommon.c: In function 'init_vo_spudec':
mpcommon.c:140:83: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member]
  140 |   = spudec_new_scaled(((dvd_priv_t *)(stream->priv))->cur_pgc->palette,
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~

make -C ffmpeg libavcodec/libavcodec.a
make[1]: Entering directory '/home/olivares/Downloads/mplayer/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    libavcodec/allcodecs.o
In file included from libavcodec/allcodecs.c:32:
./libavutil/thread.h:27:5: warning: "HAVE_PRCTL" is not defined, evaluates to 0 [-Wundef]
   27 | #if HAVE_PRCTL
      |     ^~~~~~~~~~
./libavutil/thread.h: In function 'ff_thread_setname':
./libavutil/thread.h:197:5: warning: "HAVE_PRCTL" is not defined, evaluates to 0 [-Wundef]
  197 | #if HAVE_PRCTL
      |     ^~~~~~~~~~
libavcodec/allcodecs.c: At top level:
libavcodec/allcodecs.c:899:5: warning: "CONFIG_OSSFUZZ" is not defined, evaluates to 0 [-Wundef]
  899 | #if CONFIG_OSSFUZZ
      |     ^~~~~~~~~~~~~~
In file included from libavcodec/allcodecs.c:906:
./libavcodec/codec_list.c:492:6: error: 'ff_libopenjpeg_decoder' undeclared here (not in a function); did you mean 'ff_libopenjpeg_encoder'?
  492 |     &ff_libopenjpeg_decoder,
      |      ^~~~~~~~~~~~~~~~~~~~~~
      |      ff_libopenjpeg_encoder
make[1]: *** [ffbuild/common.mak:81: libavcodec/allcodecs.o] Error 1
make[1]: Leaving directory '/home/olivares/Downloads/mplayer/ffmpeg'
make: *** [Makefile:744: ffmpeg/libavcodec/libavcodec.a] Error 2
bash-5.2$



Best Regards,


Antonio 


More information about the MPlayer-users mailing list