Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-24-2015, 02:07 PM   #1
LQ Newbie
Registered: Aug 2015
Posts: 1

Rep: Reputation: Disabled
Global variable "sensors_proc_chips" is NULL after installing lm-sensor package .

hi All
I have installed the lm-sensors package on my ubuntu machine , i have also checked that "sensord" daemon is running and Output of command
"sensor" is showing output of "tempreture" and speed of FAN but when i am trying to read the global structure variable "sensors_proc_chips" through API "sensors_get_detected_chips()" but getting global structure variable "sensors_proc_chips" as NULL .

Can any one please help here ?

I am using lm_sensors-3.4.0 .

Vivek srivastva
Old 08-25-2015, 08:33 AM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 & 7
Posts: 3,233

Rep: Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878Reputation: 878
Line 42 of your code is wrong.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can not access Global variable in C "expected expression before ??:?? token" golden_boy615 Programming 1 11-16-2011 03:30 PM
Global symbol "$psid" requires explicit package name at line 16. james2009 Programming 1 07-04-2011 05:43 PM
how can i create a global variable called "dogpatch" with a value of "woof" earthdog Linux - Newbie 9 12-15-2009 02:03 AM
c++ - "index" is a global scope variable in <string>???? BrianK Programming 2 03-18-2008 09:05 PM
Module usage :Global symbol "$ref" requires explicit package name rajatgarg Programming 2 12-17-2003 02:55 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:09 PM.

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