Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922624 - media-video/mplayer-1.5_p20231206 - mplayer.c: In function 'main': mplayer.c:3539:41: error: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompatible-pointer-types]
Summary: media-video/mplayer-1.5_p20231206 - mplayer.c: In function 'main': mplayer.c:...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-01-21 14:32 UTC by ernsteiswuerfel
Modified: 2024-01-21 14:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (ppc, 1.5_p20231206) (mplayer-1.5_p20231206:20240121-141015.log,31.34 KB, text/plain)
2024-01-21 14:32 UTC, ernsteiswuerfel
Details
emerge --info (file_922624.txt,6.47 KB, text/plain)
2024-01-21 14:33 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2024-01-21 14:32:40 UTC
Created attachment 882779 [details]
build.log (ppc, 1.5_p20231206)

Also happens with 1.5_p20230618, so no regression.

[...]
powerpc-gentoo-linux-musl-gcc -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Icompat/atomics/gcc -D_ISOC99_SOURCE -I. -Iffmpeg -Os -mcpu=7450 -mtune=7450 -pipe -fno-tree-vectorize -fno-asynchronous-unwind-tables -maltivec -mabi=altivec -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPIC -D_REENTRANT -D_REENTRANT -I/usr/include/dvdcss -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DZLIB_CONST -I/usr/include/dvdcss -c -o mplayer.o mplayer.c
In file included from cfg-mplayer.h:27,
                 from mplayer.c:332:
cfg-common.h:301:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  301 |     {"msglevel", msgl_config, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
      |                  ^~~~~~~~~~~
cfg-common.h:314:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  314 |     {"noconfig", noconfig_opts, CONF_TYPE_SUBCONFIG, CONF_GLOBAL|CONF_NOCFG|CONF_PRE_PARSE, 0, 0, NULL},
      |                  ^~~~~~~~~~~~~
cfg-common.h:431:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
  431 |     { "rawaudio", &demux_rawaudio_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
      |                   ^
cfg-common.h:432:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
  432 |     { "rawvideo", &demux_rawvideo_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
      |                   ^
cfg-common.h:435:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
  435 |     { "cdda", &cdda_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
      |               ^
cfg-common.h:448:12: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  448 |     {"mf", mfopts_conf, CONF_TYPE_SUBCONFIG, 0,0,0, NULL},
      |            ^~~~~~~~~~~
cfg-common.h:464:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  464 |     {"vivo", vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
      |              ^~~~~~~~~~~~~
cfg-common.h:506:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  506 |     {"af-adv", audio_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
      |                ^~~~~~~~~~~~~~~~~
cfg-common.h:509:65: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  509 |     {"vf*", &vf_settings, CONF_TYPE_OBJ_SETTINGS_LIST, 0, 0, 0, &vf_obj_list},
      |                                                                 ^
cfg-common.h:519:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  519 |     {"pphelp", pp_help, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
      |                ^~~~~~~
cfg-common.h:525:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  525 |     {"ssf", scaler_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
      |             ^~~~~~~~~~~~~~~~~~
cfg-common.h:547:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  547 |     {"lavdopts", lavc_decode_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
      |                  ^~~~~~~~~~~~~~~~~~~~~
cfg-common.h:548:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  548 |     {"lavfdopts",  lavfdopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
      |                    ^~~~~~~~~~~~~~
cfg-mplayer.h:361:15: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  361 |     {"-help", help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
      |               ^~~~~~~~~
cfg-mplayer.h:362:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  362 |     {"help", help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
      |              ^~~~~~~~~
cfg-mplayer.h:363:11: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  363 |     {"h", help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
      |           ^~~~~~~~~
cfg-mplayer.h:365:12: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  365 |     {"vd", vd_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
      |            ^~~~~~~
mplayer.c: In function 'main':
mplayer.c:3539:41: error: passing argument 2 of 'stream_write_buffer' from incompatible pointer type [-Wincompatible-pointer-types]
 3539 |                 stream_write_buffer(os, &in_size, 4);
      |                                         ^~~~~~~~
      |                                         |
      |                                         int *
In file included from ./mp_core.h:26,
                 from gui/interface.h:23,
                 from mplayer.c:73:
./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);
      |                                      ~~~~~~~~~~~~~~~^~~
make: *** [Makefile:730: mplayer.o] Error 1
 * ERROR: media-video/mplayer-1.5_p20231206::gentoo failed (compile phase):
Comment 1 ernsteiswuerfel archtester 2024-01-21 14:33:55 UTC
Created attachment 882780 [details]
emerge --info