[CentOS-devel] heartbeat srpm compile problem

Thu Sep 28 10:43:27 UTC 2006
Johnny Hughes <mailing-lists at hughesjr.com>

On Thu, 2006-09-28 at 10:26 +0100, Dan Track wrote:
> Hi
> I'm trying to compile the heartbeat 2.0.7 srpm from the .dev.centos
> site on rhel 4 es. But I'm getting the following error:
> checking for ucd-snmp/snmp.h... no
> checking net-snmp/net-snmp-config.h usability... yes
> checking net-snmp/net-snmp-config.h presence... yes
> checking for net-snmp/net-snmp-config.h... yes
> checking for net-snmp-config... /usr/bin/net-snmp-config
> checking for special snmp libraries... -L/usr/lib -lnetsnmp -lcrypto -lelf -lm
> checking snmp libraries: -lxml2 -lc -luuid -lrt -ldl -L/usr/lib
> -lnetsnmp -lcrypto -lelf -lm... ok
> checking snmp libraries: -lxml2 -lc -luuid -lrt -ldl -L/usr/lib
> -lnetsnmpagent -lnetsnmpmibs -lnetsnmphelpers -lnetsnmp -lsensors -ldl
> -lrpm -lrpmio -lpopt -lbz2 -lz -lcrypto -lelf -lm -L/usr/lib/lib
> -lwrap... configure: error: cannot link with requested libraries
> (-lxml2 -lc -luuid -lrt -ldl -L/usr/lib -lnetsnmpagent -lnetsnmpmibs
> -lnetsnmphelpers -lnetsnmp -lsensors -ldl -lrpm -lrpmio -lpopt -lbz2
> -lz -lcrypto -lelf -lm -L/usr/lib/lib -lwrap). Reported errors follow:
> /usr/bin/ld: cannot find -lsensors
> collect2: ld returned 1 exit status
> error: Bad exit status from /var/tmp/rpm-tmp.69680 (%build)
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.69680 (%build)
> [root at ha1 SPECS]# vi heartbeat.spec
> Can anyone please tell me whats wrong with this, and if I'm missing
> any packages. I've installed all the net-snmp packages except
> php-snmp.

Looks like you are missing the sensors library (-lsensors) which would
be the file named:


(whenever you see -l***** in a gcc statment then it means look for a
file named lib*****.so ... that is, add lib to the front and .so to the
end of the name that follows -l and that is the library. Then search for
that file)

This RPM owns the file /usr/lib/libsensors.so:


SO ... it seems that there is a requirement for lm_sensors-devel that is
not stated in the SRPM.

Install the latest version of lm_sensors-devel and start the build

Johnny Hughes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20060928/e42abe44/attachment-0005.sig>