LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-24-2010, 07:42 PM   #1
posix_memalign
Member
 
Registered: Aug 2008
Posts: 81

Rep: Reputation: 15
lm_sensors with XFCE


I have lm_sensors installed and working, I can type "sensors" from the console and I will get a nice list of the CPU temperatures as I want them.

However I would also like to have the xfce4-sensors-plugin working so that I can have a more convenient manner of observing the temperature.

I get the following errors upon compilation:

Code:
../lib/.libs/libxfce4sensors.so: undefined reference to `sensors_get_feature'
../lib/.libs/libxfce4sensors.so: undefined reference to `sensors_get_all_features'
../lib/.libs/libxfce4sensors.so: undefined reference to `sensors_get_ignored'
collect2: ld returned 1 exit status
make[2]: *** [xfce4-sensors-plugin] Error 1
make[2]: Leaving directory `/tmp/SBo/xfce4-sensors-plugin-0.10.99.6/panel-plugin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/xfce4-sensors-plugin-0.10.99.6'
make: *** [all] Error 2
This is the output from the Slackware package from slackbuilds.org for version 0.1.

I have also tried version 0.9 and 1.0 (compile directly from source, no package) -- to no avail.

I tried looking at the source to identify where these functions missing are, I couldn't find them in the source, which makes me believe this is a library that I'm missing. However, which library? When I search on e.g. Freshmeat.net I only find one applicable entry for "sensors", and on Slackbuilds.org I only find the 0.1 version of this plugin -- not even anything lm_sensors related at all besides that one.

My system is a plain x86 with Slackware 13.1.

Any thoughts?
 
Old 06-24-2010, 08:05 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
The error message should tell you farther up what file is actually missing. The part you posted is where it finally fails completely, but at some earlier point it would give you a warning message about some file not being found.
 
Old 06-25-2010, 02:00 PM   #3
posix_memalign
Member
 
Registered: Aug 2008
Posts: 81

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by MS3FGX View Post
The error message should tell you farther up what file is actually missing. The part you posted is where it finally fails completely, but at some earlier point it would give you a warning message about some file not being found.
I believe you are mistaken,
if the source code included some other source file, or header file, then there would be a compiler error about a missing file.

However if I simply try to dereference some symbol as such:

Code:
#include <stdio.h>

int main(int argc, char **argv)
{
    sensors_get_feature(NULL);

    return 0;
}
This will then fail upon compilation with no missing file, simply undefined references as such:

Code:
/tmp/cca2ioDc.o: In function `main':
test.c:(.text+0x17): undefined reference to `sensors_get_feature'
collect2: ld returned 1 exit status
If you forget to link against a library, e.g. if you are using some libm functions and forget to link against the math library you also get a similar fault, it is a common compiler error and there will not be any reference to missing files.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install xfce 4.6 at /opt/xfce? josealexandre Linux - General 2 03-01-2009 12:31 PM
XFce and Compiz : xfce doesn't manage the desktop naaman Linux - Desktop 0 07-16-2008 01:39 AM
Xfce problems with task bar and xfce-panel aeruzcar Linux - Software 4 06-26-2006 05:29 AM
How do I use lm_sensors? Kramer Linux - Hardware 13 11-15-2003 08:05 PM
lm_sensors CanadianPenguin Linux - Software 5 10-26-2003 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration