[CentOS-devel] heartbeat srpm compile problem

Dan Track

dan.track at gmail.com
Thu Sep 28 09:26:23 UTC 2006


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.

Thanks in advance
Dan



More information about the CentOS-devel mailing list