[Bug 1348945] [NEW] -lsensors doesn't link to libsensors
B. Joshua Rosen
bjrosen at polybus.com
Sat Jul 26 15:45:27 UTC 2014
Public bug reported:
I have libsensors4-dev installed however gcc is getting link errors,
gcc -O2 -Wuninitialized -Wall -D_FORTIFY_SOURCE=2 -Wformat -Wno-multichar -Wreturn-type -Wswitch -Wunused-variable -g -lm -pthread -lsensors -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 -lsensors sys_sensors3.o
sys_sensors3.o: In function `getTemps':
/home/bjrosen/projects/sys_basher/sys_sensors3.c:52: undefined reference to `sensors_init'
/home/bjrosen/projects/sys_basher/sys_sensors3.c:65: undefined reference to `sensors_get_detected_chips'
/home/bjrosen/projects/sys_basher/sys_sensors3.c:72: undefined reference to `sensors_get_features'
/home/bjrosen/projects/sys_basher/sys_sensors3.c:110: undefined reference to `sensors_get_features'
/home/bjrosen/projects/sys_basher/sys_sensors3.c:75: undefined reference to `sensors_get_label'
/home/bjrosen/projects/sys_basher/sys_sensors3.c:94: undefined reference to `sensors_get_value'
/home/bjrosen/projects/sys_basher/sys_sensors3.c:114: undefined reference to `sensors_get_detected_chips'
/home/bjrosen/projects/sys_basher/sys_sensors3.c:117: undefined reference to `sensors_cleanup'
/home/bjrosen/projects/sys_basher/sys_sensors3.c:100: undefined reference to `sensors_cleanup'
collect2: error: ld returned 1 exit status
I'm trying to build by sys_basher program for Ubuntu. I have it in the
Fedora and EPEL repositories for RPM systems where it builds without any
errors or warnings.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: libsensors4-dev 1:3.3.4-2ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
Date: Sat Jul 26 11:38:49 2014
Dependencies:
gcc-4.9-base 4.9-20140406-0ubuntu1
libc6 2.19-0ubuntu6
libgcc1 1:4.9-20140406-0ubuntu1
libsensors4 1:3.3.4-2ubuntu1
multiarch-support 2.19-0ubuntu6
InstallationDate: Installed on 2014-07-22 (4 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
ProcEnviron:
TERM=dumb
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/tcsh
SourcePackage: lm-sensors
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: lm-sensors (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug trusty
--
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