Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 777375

Summary: mate-extra/mate-sensors-applet-1.24.1 - i2c-proc-plugin.c:147:41: error: 'LC_NUMERIC' undeclared (first use in this function) (on musl)
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: Gentoo MATE Desktop <mate>
Status: UNCONFIRMED ---    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/mate-desktop/mate-sensors-applet/issues/123
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: build.log
emerge --info

Description ernsteiswuerfel archtester 2021-03-20 12:24:27 UTC
Created attachment 692562 [details]
build.log

[...]
make[2]: Entering directory '/var/tmp/portage/mate-extra/mate-sensors-applet-1.24.1/work/mate-sensors-applet-1.24.1/plugins/i2c-proc'
/bin/sh ../../libtool  --tag=CC   --mode=compile powerpc64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../../sensors-applet  -DMATELOCALEDIR=\""/usr/share/locale/"\" -DG_LOG_DOMAIN=\""sensors-applet"\" -DPIXMAPS_DIR=\""/usr/share/pixmaps/mate-sensors-applet/"\" -DDATADIR=\""/usr/share"\" -DLIBDIR=\""/usr/lib"\" -DSYSCONFDIR=\""/etc"\" -DPREFIX=\""/usr"\" -I../.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -pthread -I/usr/include/libmount -I/usr/include/blkid    -Os -mcpu=970 -pipe -c -o i2c-proc-plugin.lo i2c-proc-plugin.c
libtool: compile:  powerpc64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../../sensors-applet -DMATELOCALEDIR=\"/usr/share/locale/\" -DG_LOG_DOMAIN=\"sensors-applet\" -DPIXMAPS_DIR=\"/usr/share/pixmaps/mate-sensors-applet/\" -DDATADIR=\"/usr/share\" -DLIBDIR=\"/usr/lib\" -DSYSCONFDIR=\"/etc\" -DPREFIX=\"/usr\" -I../.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi/include -pthread -I/usr/include/libmount -I/usr/include/blkid -Os -mcpu=970 -pipe -c i2c-proc-plugin.c  -fPIC -DPIC -o .libs/i2c-proc-plugin.o
i2c-proc-plugin.c: In function 'i2c_proc_plugin_get_sensor_value':
i2c-proc-plugin.c:147:31: warning: implicit declaration of function 'setlocale' [-Wimplicit-function-declaration]
  147 |     if (NULL == (old_locale = setlocale(LC_NUMERIC, "C"))) {
      |                               ^~~~~~~~~
i2c-proc-plugin.c:147:41: error: 'LC_NUMERIC' undeclared (first use in this function)
  147 |     if (NULL == (old_locale = setlocale(LC_NUMERIC, "C"))) {
      |                                         ^~~~~~~~~~
i2c-proc-plugin.c:147:41: note: each undeclared identifier is reported only once for each function it appears in
Comment 1 ernsteiswuerfel archtester 2021-03-20 12:24:57 UTC
Created attachment 692565 [details]
emerge --info