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

Bug 928898

Summary: sys-apps/lm-sensors-3.6.0-r1 - prog/.../rrd.c: error: passing argument 2 of rrd_create from incompatible pointer type [-Wincompatible-pointer-types]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Marek Szuba <marecki>
Status: CONFIRMED ---    
Severity: normal CC: dememax
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/36352
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
qlist-info.txt
sys-apps:lm-sensors-3.6.0-r1:20240407-162127.log
temp.tar.xz

Description Toralf Förster gentoo-dev 2024-04-07 16:34:05 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc -DETCDIR="\"/etc\"" -I. -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -O2 -pipe -march=native -fno-diagnostics-color -c prog/sensord/lib.c -o prog/sensord/lib.ro
x86_64-pc-linux-gnu-gcc -DETCDIR="\"/etc\"" -I. -Wall -O2 -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Winline -W -Wmissing-prototypes -Wundef -O2 -pipe -march=native -fno-diagnostics-color -c prog/sensord/rrd.c -o prog/sensord/rrd.ro
prog/sensord/rrd.c: In function 'rrdInit':
prog/sensord/rrd.c:302:40: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
  302 |                 ret = rrd_create(argc, (char**) argv);
      |                                        ^
prog/sensord/rrd.c:302:40: error: passing argument 2 of 'rrd_create' from incompatible pointer type [-Wincompatible-pointer-types]
  302 |                 ret = rrd_create(argc, (char**) argv);
      |                                        ^~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_systemd-20240406-220503

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 18.1.3
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.3
Python 3.11.8
Available Rust versions:
  [1]   rust-bin-1.77.1 *
php cli (if any):

  HEAD of ::gentoo
commit fb7a347a7c598a29c540f8abca7f612de74ba1ce
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Apr 7 16:05:56 2024 +0000

    2024-04-07 16:05:56 UTC

emerge -qpvO sys-apps/lm-sensors
[ebuild  N    ] sys-apps/lm-sensors-3.6.0-r1  USE="contrib sensord (-selinux) -static-libs" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2024-04-07 16:34:06 UTC
Created attachment 889749 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-04-07 16:34:07 UTC
Created attachment 889750 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-04-07 16:34:08 UTC
Created attachment 889751 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-04-07 16:34:09 UTC
Created attachment 889752 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-04-07 16:34:10 UTC
Created attachment 889753 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-04-07 16:34:11 UTC
Created attachment 889754 [details]
qlist-info.txt
Comment 7 Toralf Förster gentoo-dev 2024-04-07 16:34:12 UTC
Created attachment 889755 [details]
sys-apps:lm-sensors-3.6.0-r1:20240407-162127.log
Comment 8 Toralf Förster gentoo-dev 2024-04-07 16:34:13 UTC
Created attachment 889756 [details]
temp.tar.xz
Comment 9 Maxim P. Dementiev 2024-04-10 19:27:10 UTC
As with changing use flags in https://bugs.gentoo.org/870424#c11 
here "-sensord" helps to bypass this issue.