[Bug 1348945] Re: -lsensors doesn't link to libsensors

Robie Basak 1348945 at bugs.launchpad.net
Tue Jul 29 09:44:18 UTC 2014


You must put libraries after the objects that need them. See:
https://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries

So you probably want: gcc -O2 -Wuninitialized -Wall -D_FORTIFY_SOURCE=2
-Wformat -Wno-multichar -Wreturn-type -Wswitch -Wunused-variable -g
-pthread -o sys_basher sys_main.o sys_utils.o sys_disk.o sys_kernel.o
sys_fp.o sys_int.o sys_mem.o lin_utils.o sys_sensors3.o -lsensors -lm

Since this is not a bug in Ubuntu, I'm marking this as Invalid. If you
disagree, please explain and set back to New.

See http://www.ubuntu.com/support/community if you need further
community support.

** Changed in: lm-sensors (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lm-sensors in Ubuntu.
https://bugs.launchpad.net/bugs/1348945

Title:
  -lsensors doesn't link to libsensors

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lm-sensors/+bug/1348945/+subscriptions



More information about the Ubuntu-server-bugs mailing list