FS#8762 - gkrellm-2.3.0-1 broken due to lm_sensors 3.0.0-1 upgrade
Attached to Project:
Community Packages
Opened by Rodolfo Quesada (rquesada) - Monday, 26 November 2007, 02:44 GMT
Last edited by Roman Kyrylych (Romashka) - Wednesday, 09 January 2008, 20:05 GMT
Opened by Rodolfo Quesada (rquesada) - Monday, 26 November 2007, 02:44 GMT
Last edited by Roman Kyrylych (Romashka) - Wednesday, 09 January 2008, 20:05 GMT
|
Details
Description:
gkrellm fails to start up, due to update in lm-sensors package to which it is linked against. Additional info: * package version(s): gkrellm-2.3.0-1 * config and/or log files etc: $ gkrellm gkrellm: error while loading shared libraries: libsensors.so.3: cannot open shared object file: No such file or directory Steps to reproduce: Execute gkrellm, it won't find libsensors.so.3 (Currently, lm-sensors 3 installs libsensors.so.4). |
This task depends upon
sysdeps/linux.c: In function ‘libsensors_init’:
sysdeps/linux.c:2060: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
sysdeps/linux.c:2060: error: ‘feature’ undeclared (first use in this function)
sysdeps/linux.c:2060: error: (Each undeclared identifier is reported only once
sysdeps/linux.c:2060: error: for each function it appears in.)
sysdeps/linux.c:2088: warning: passing argument 1 of ‘sensors_get_detected_chips’ from incompatible pointer type
sysdeps/linux.c:2088: error: too few arguments to function ‘sensors_get_detected_chips’
I'd like to point out that a simple ln -s libsensors.so.4 libsensors.so.3 works fine for me, just some problems with negative voltages being over 2 times the value.
So it seems that the linux.c source file from gtkrellm has to be patched to adapt to it.
Before that, the gkrellm can be compiled with :
make LOCALEDIR=/usr/share/locale without-libsensors=yes || return 1
in the PKGBUILD.
http://people.atrpms.net/~hdegoede/gkrellm-2.3.0-libsensors4.patch
I've tested the patch posted here by funkyou (lol?) and compiled successfully gkrellm 2.3.0 using arch's pkgbuild + patch.
Cheers
$ gkrellm
gkrellm: error while loading shared libraries: libsensors.so.3: cannot open shared object file: No such file or directory
$ pacman -Ql lm_sensors | grep libsensors.so
lm_sensors /usr/lib/libsensors.so
lm_sensors /usr/lib/libsensors.so.4
lm_sensors /usr/lib/libsensors.so.4.0.0
Is it possible that 2.3.1 was built against old lm_sensors? /me shrugs
And the patch is not necessary, it was incorporated to the 2.3.1 source.
I think the new gkrellm 2.3.1 was inadvertently built against the old lm_sensors.
It needs only a rebuilding.
All updated and should be sorted now.