Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#8766 - Ksensors stopped working after lm_sensors upgrade

Attached to Project: Arch Linux
Opened by Alberto Gonzalez (Luis) - Monday, 26 November 2007, 13:09 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 27 November 2007, 19:49 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: ksensors stopped working after upgrading lm_sensors to version 3.0.0. It fails to start with the message:

ksensors: error while loading shared libraries: libsensors.so.3: cannot open shared object file: No such file or directory

A symlink to libsensors.so.4 doesn't do the trick, and rebuilding the package fails.

ksensors seems to be unmaintained for a long time (last release from 2004), but I still find it useful. But if there is an alternative (I don't know of any), it could be replaced maybe.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Tuesday, 27 November 2007, 19:49 GMT
Reason for closing:  Fixed
Comment by slackhack (slackhack) - Monday, 26 November 2007, 16:40 GMT
confirmed - gkrellm won't launch either.

gkrellm: error while loading shared libraries: libsensors.so.3: cannot open shared object file: No such file or directory

user@arch:~ $ locate libsensors
/usr/lib/libsensors.a
/usr/lib/libsensors.so
/usr/lib/libsensors.so.3
/usr/lib/libsensors.so.3.1.4
/usr/man/man3/libsensors.3.gz

Comment by Jan M. (funkyou) - Monday, 26 November 2007, 17:37 GMT
Seems we need a patch...

gcc -DHAVE_CONFIG_H -I. -I../../.. -I./../../CContLib -I./.. -I/opt/kde/include -I/opt/qt/include -I. -D_GNU_SOURCE -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES=1 -Wall -std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -march=i686 -mtune=generic -O2 -pipe -Wformat-security -Wmissing-format-attribute -D_GNU_SOURCE -c lmsensors.c
lmsensors.c:39: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
lmsensors.c: In function 'initLmSensors':
lmsensors.c:88: warning: passing argument 1 of 'sensors_get_detected_chips' from incompatible pointer type
lmsensors.c:88: error: too few arguments to function 'sensors_get_detected_chips'
lmsensors.c:90: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
lmsensors.c:90: error: 'sfd' undeclared (first use in this function)
lmsensors.c:90: error: (Each undeclared identifier is reported only once
lmsensors.c:90: error: for each function it appears in.)
lmsensors.c:92: warning: implicit declaration of function 'sensors_get_all_features'
lmsensors.c:93: error: 'SENSORS_NO_MAPPING' undeclared (first use in this function)
lmsensors.c:98: error: incompatible type for argument 1 of 'sensors_get_label'
lmsensors.c:98: error: too many arguments to function 'sensors_get_label'
lmsensors.c:112: error: 'LMSENSOR' has no member named 'sfd'
lmsensors.c: In function 'printLmSensor':
lmsensors.c:141: warning: implicit declaration of function 'sensors_get_feature'
lmsensors.c:141: error: 'LMSENSOR' has no member named 'sfd'
make[4]: *** [lmsensors.o] Error 1
make[4]: Leaving directory `/home/jan/Arch/kdemod/work/kdebase/src/kdebase-3.5.8/ksysguard/ksysguardd/Linux'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jan/Arch/kdemod/work/kdebase/src/kdebase-3.5.8/ksysguard/ksysguardd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jan/Arch/kdemod/work/kdebase/src/kdebase-3.5.8/ksysguard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jan/Arch/kdemod/work/kdebase/src/kdebase-3.5.8'
make: *** [all] Error 2
Comment by Jan M. (funkyou) - Monday, 26 November 2007, 18:50 GMT
Ooops, seems i mixed it up...

However, kdebase also needs to be updated because of ksysguard...

Here is an updated ksensors tarball with lm_sensors 3.0.0 support (from: http://www.lm-sensors.org/wiki/Download)

http://people.atrpms.net/~hdegoede/ksensors-0.7.3-fedora-14.tar.gz

Comment by Alberto Gonzalez (Luis) - Monday, 26 November 2007, 21:12 GMT
Thanks. I built a package from that tarball using a standard PKGBUILD (no additional patches) and it works great.

BTW, I confirm ksysguard is not working here either.
Comment by L.J. (gentoofu) - Tuesday, 27 November 2007, 01:03 GMT
So this isn't a problem with the lm_sensors-3.0.0-1 package but rather with the outdated applications themselves? (I use gkrellm and have the same issue as slackhack stated)
Comment by Jan M. (funkyou) - Tuesday, 27 November 2007, 11:49 GMT
Yes, the API of lm_sensors got changed with 3.0.0, so the applications need to be fixed...

Loading...