Re: Current build from the repo... fails...
Alexander Strasser <[email protected]> Sun, 28 Apr 2024 20:48:18 +0200
| Newsgroups | gmane.comp.video.mplayer.user |
|---|---|
| Message-ID | <Zi6Z8hCS73UuwJ0A@metallschleimette> |
Hi George!
On 2024-04-25 17:30 +0000, George R Goffe wrote:
> Howdy,
>
> I'm having trouble building mplayer on my Fedora 41 system with gcc "gcc =
(GCC) 14.0.1 20240411 (Red Hat 14.0.1-0)".=A0
In GCC 14 many previous warning will become errors instead. Especially
`-Wincompatible-pointer-types` is a problem in many places in MPlayer.
> Could I get some help with this please?
There is a patch on the development mailing list that might be enough to
make the build work again or not:
https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2024-April/074173.ht=
ml
In any way it will never be applied as it makes sense to deal with this
issues in a more one by one fashion. I sent it just to raise awareness
so we can tackle this issues.
Best regards,
Alexander
> Here's what I'm getting:
>
> cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -W=
redundant-decls -Werror=3Dformat-security
> -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-poi=
nter-sign -Wdeclaration-after-statemen
> t -std=3Dc11 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=3D20=
0112 -D_XOPEN_SOURCE=3D600 -D_ISOC99_SOURCE -
> I. -Iffcfg-common.h:464:14: warning: initialization discards 'const' qual=
ifier from pointer target type [-Wdisca
> rded-qualifiers]
> =A0464 | =A0=A0=A0=A0{"vivo", vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0=
, NULL},
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0^~~~~~~~~~~~~
> cfg-common.h:466:15: warning: initialization discards 'const' qualifier f=
rom pointer target type [-Wdiscarded-qu
> alifiers]
> =A0466 | =A0=A0=A0=A0{"dvbin", dvbin_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0=
, 0, NULL},
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0^~~~~~~~~~~~~~~
> cfg-common.h:506:16: warning: initialization discards 'const' qualifier f=
rom pointer target type [-Wdiscarded-qu
> alifiers]
> =A0506 | =A0=A0=A0=A0{"af-adv", audio_filter_conf, CONF_TYPE_SUBCONFIG, 0=
, 0, 0, NULL},
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0^~~~~~~~~~~=
~~~~~~
> cfg-common.h:509:65: warning: initialization discards 'const' qualifier f=
rom pointer target type [-Wdiscarded-qu
> alifiers]
> =A0509 | =A0=A0=A0=A0{"vf*", &vf_settings, CONF_TYPE_OBJ_SETTINGS_LIST, 0=
, 0, 0, &vf_obj_list},
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0^
> cfg-common.h:519:16: warning: initialization discards 'const' qualifier f=
rom pointer target type [-Wdiscarded-qu
> alifiers]
> =A0519 | =A0=A0=A0=A0{"pphelp", pp_help, CONF_TYPE_PRINT, CONF_NOCFG, 0, =
0, NULL},
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0^~~~~~~
> cfg-common.h:525:13: warning: initialization discards 'const' qualifier f=
rom pointer target type [-Wdiscarded-qu
> alifiers]
> =A0525 | =A0=A0=A0=A0{"ssf", scaler_filter_conf, CONF_TYPE_SUBCONFIG, 0, =
0, 0, NULL},
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0^~~~~~~~~~~~~~~~~~
> cfg-common.h:547:18: warning: initialization discards 'const' qualifier f=
rom pointer target type [-Wdiscarded-qu
> alifiers]
> =A0547 | =A0=A0=A0=A0{"lavdopts", lavc_decode_opts_conf, CONF_TYPE_SUBCON=
FIG, 0, 0, 0, NULL},
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0^~~~~=
~~~~~~~~~~~~~~~~
> cfg-common.h:548:20: warning: initialization discards 'const' qualifier f=
rom pointer target type [-Wdiscarded-qu
> alifiers]
> =A0548 | =A0=A0=A0=A0{"lavfdopts", =A0lavfdopts_conf, CONF_TYPE_SUBCONFIG=
, CONF_GLOBAL, 0, 0, NULL},
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0^~~~~~~~~~~~~~
> cfg-mplayer.h:354:16: warning: initialization discards 'const' qualifier =
from pointer target type [-Wdiscarded-q
> ualifiers]
> =A0354 | =A0=A0=A0=A0{"tvscan", tvscan_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0=
, NULL},
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0^~~~~~~~~~~
> cfg-mplayer.h:361:15: warning: initialization discards 'const' qualifier =
from pointer target type [-Wdiscarded-q
> ualifiers]
> =A0361 | =A0=A0=A0=A0{"-hifiers]
> =A0460 | =A0=A0=A0=A0{"pvr", pvropts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, =
NULL},
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0^~~~~~~~~~~~
> cfg-common.h:464:14: warning: initialization discards 'const' qualifier f=
rom pointer target type [-Wdiscarded-qu
> alifiers]
> =A0464 | =A0=A0=A0=A0{"vivo", vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0=
, NULL},
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0^~~~~~~~~~~~~
> cfg-common.h:466:15: warning: initialization discards 'const' qualifier f=
rom pointer target type [-Wdiscarded-qu
> alifiers]
> =A0466 | =A0=A0=A0=A0{"dvbin", dvbin_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0=
, 0, NULL},
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0^~~~~~~~~~~~~~~
> cfg-common.h:506:16: warning: initialization discards 'const' qualifier f=
rom pointer target type [-Wdiscarded-qu
> alifiers]
> =A0506 | =A0=A0=A0=A0{"af-adv", audio_filter_conf, CONF_TYPE_SUBCONFIG, 0=
, 0, 0, NULL},
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0^~~~~~~~~~~=
~~~~~~
> cfg-common.h:509:65: warning: initialization discards 'const' qualifier f=
rom pointer target type [-Wdiscarded-qu
> alifiers]
> =A0509 | =A0=A0=A0=A0{"vf*", &vf_settings, CONF_TYPE_OBJ_SETTINGS_LIST, 0=
, 0, 0, &vf_obj_list},
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0^
> cfg-common.h:519:16: warning: initialization discards 'const' qualifier f=
rom pointer target type [-Wdiscarded-qu
> alifiers]
> =A0519 | =A0=A0=A0=A0{"pphelp", pp_help, CONF_TYPE_PRINT, CONF_NOCFG, 0, =
0, NULL},
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0^~~~~~~
> cfg-common.h:525:13: warning: initialization discards 'const' qualifier f=
rom pointer target type [-Wdiscarded-qu
> alifiers]
> =A0525 | =A0=A0=A0=A0{"ssf", scaler_filter_conf, CONF_TYPE_SUBCONFIG, 0, =
0, 0, NULL},
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0^~~~~~~~~~~~~~~~~~
> cfg-common.h:547:18: warning: initialization discards 'const' qualifier f=
rom pointer target type [-Wdiscarded-qu
> alifiers]
> =A0547 | =A0=A0=A0=A0{"mplayer.c: In function 'main':
> mplayer.c:3539:41: error: passing argument 2 of 'stream_write_buffer' fro=
m incompatible pointer type [-Wincompat
> ible-pointer-types]
> 3539 | =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0stream_write_buffe=
r(os, &in_size, 4);
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0^~~~~~~~
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0|
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0int *
> In file included from ./mp_core.h:26,
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0from gui/interface.h:23,
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0from mplayer.c:73:
> ./stream/stream.h:203:53: note: expected 'unsigned char *' but argument i=
s of type 'int *'
> =A0203 | int stream_write_buffer(stream_t *s, unsigned char *buf, int len=
);
> =A0=A0=A0=A0=A0| =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0~~~~~~~~~~~~~~~^~~
> make: *** [Makefile:730: mplayer.o] Error 1
>