Find the answer to your Linux question:
Results 1 to 4 of 4
I'm trying to compile lm-sensors but I'm getting an error i'm not sure what to do with... k-dawg@k-dawg-desktop:~/lm_sensors-3.1.1$ make gcc -Wl,-rpath,/usr/local/lib -o prog/sensors/sensors prog/sensors/main.ro prog/sensors/chips.ro -Llib -lsensors lib/libsensors.so: undefined reference ...
  1. #1
    Just Joined! Frylock2009's Avatar
    Join Date
    Apr 2009
    Posts
    32

    lm-sensors compiling error

    I'm trying to compile lm-sensors but I'm getting an error i'm not sure what to do with...

    k-dawg@k-dawg-desktop:~/lm_sensors-3.1.1$ make
    gcc -Wl,-rpath,/usr/local/lib -o prog/sensors/sensors prog/sensors/main.ro prog/sensors/chips.ro -Llib -lsensors
    lib/libsensors.so: undefined reference to `sensors_yylex'
    lib/libsensors.so: undefined reference to `sensors_lex_error'
    lib/libsensors.so: undefined reference to `sensors_yylineno'
    lib/libsensors.so: undefined reference to `sensors_scanner_exit'
    lib/libsensors.so: undefined reference to `sensors_scanner_init'
    lib/libsensors.so: undefined reference to `sensors_yyfilename'
    collect2: ld returned 1 exit status
    make: *** [prog/sensors/sensors] Error 1

    A lil help on what this means would be appreciated.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,975
    Either you are missing a library that contains the symbols specified in the error messages, or the library needs to be reindexed. To check the latter, cd to the lib directory and execute the command "ranlib libsensors.a", assuming you aren't linking with a shared library version of libsensors.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined! Frylock2009's Avatar
    Join Date
    Apr 2009
    Posts
    32
    Well after some searching I found "make clean" took care of the compiling error. But still cant get sensors to work. I've heard conky will display temp's where lm-sensors will not work?

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,975
    Quote Originally Posted by Frylock2009 View Post
    Well after some searching I found "make clean" took care of the compiling error. But still cant get sensors to work. I've heard conky will display temp's where lm-sensors will not work?
    Don't know. I haven't used these tools, though I probably should.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...