Hello Qiang,

There are no "sensors_get_all_features" and "sensors_get_feature"  
functions in subagent source code.
And neither in OpenHPI source code.
Googling shows they are functions from lm-sensor package.
I suspect that net-snmp package on your system is the issue cause.

        Anton Pak

On Tue, 10 May 2011 10:57:14 +0400, Qiang Li <[email protected]> wrote:

> Hi,
> I failed to make the openhpi-subagent, and give some error information:
>
> gcc -g -O2 -pthread -I/usr/include/glib-2.0  
> -I/usr/lib/glib-2.0/include   -I/usr/include/rpm -DINET6 -O2 -g -pipe  
> -m32 -march=i386 -mtune=pentium4 -Dlinux -I/usr/include/rpm -I.  
> -I/usr/include/net-snmp -I/usr/local/include/openhpi  
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -Wall  
> -Wmissing-prototypes        -Wmissing-declarations   
> -Wstrict-prototypes     -Wpointer-arith         -Werror  -g -O2 -pthread  
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/rpm  
> -DINET6 -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Dlinux  
> -I/usr/include/rpm -I. -I/usr/include/net-snmp  
> -I/usr/local/include/openhpi -I/usr/include/glib-2.0  
> -I/usr/lib/glib-2.0/include    -Wall -Wmissing-prototypes    
> -Wmissing-declarations  -Wstrict-prototypes     -Wpointer-arith          
> -Werror    -o hpiSubagent  alarm.o hpiCheckIndice.o session_info.o  
> hash_utils.o hpiSubagent.o hpiAnnunciatorMapping.o  
> hpiDomainAlarmMapping.o hpiEventThread.o saHpiDomainInfoTable.o  
> saHpiDomainReferenceTable.o saHpiResourceTable.o saHpiRdrTable.o  
> saHpiCtrlDigitalTable.o saHpiCtrlDiscreteTable.o saHpiCtrlAnalogTable.o  
> saHpiCtrlStreamTable.o saHpiCtrlTextTable.o saHpiCtrlOemTable.o  
> saHpiSensorTable.o saHpiCurrentSensorStateTable.o  
> saHpiSensorReadingMaxTable.o saHpiSensorReadingMinTable.o  
> saHpiSensorReadingNominalTable.o saHpiSensorReadingNormalMaxTable.o  
> saHpiSensorReadingNormalMinTable.o saHpiSensorThdLowCriticalTable.o  
> saHpiSensorThdLowMajorTable.o saHpiSensorThdLowMinorTable.o  
> saHpiSensorThdUpCriticalTable.o saHpiSensorThdUpMajorTable.o  
> saHpiSensorThdUpMinorTable.o saHpiSensorThdPosHysteresisTable.o  
> saHpiSensorThdNegHysteresisTable.o saHpiInventoryTable.o  
> saHpiWatchdogTable.o saHpiAnnunciatorTable.o saHpiAreaTable.o  
> saHpiFieldTable.o saHpiEventTable.o saHpiResourceEventTable.o  
> saHpiDomainEventTable.o saHpiEventLogInfoTable.o saHpiEventLogTable.o  
> saHpiResourceEventLogTable.o saHpiSensorEventLogTable.o  
> saHpiSensorEventTable.o saHpiOemEventTable.o saHpiHotSwapEventTable.o  
> saHpiWatchdogEventTable.o saHpiSoftwareEventTable.o  
> saHpiSensorEnableChangeEventTable.o saHpiUserEventTable.o  
> saHpiHotSwapEventLogTable.o saHpiWatchdogEventLogTable.o  
> saHpiSoftwareEventLogTable.o saHpiOemEventLogTable.o  
> saHpiUserEventLogTable.o saHpiSensorEnableChangeEventLogTable.o  
> saHpiDomainEventLogTable.o saHpiHotSwapTable.o saHpiDomainAlarmTable.o  
> saHpiAutoInsertTimeoutTable.o saHpiAnnouncementTable.o  
> saHpiAnnouncementEventLogTable.o saHpiAdministration.o hpiLock.o   
> -L/usr/local/lib -lopenhpi -lglib-2.0   -pthread -lgthread-2.0  
> -lglib-2.0   -L/usr/lib -lnetsnmpagent -lnetsnmpmibs -lnetsnmphelpers  
> -lnetsnmp -lsensors -ldl -lrpm -lrpmio -lpopt -lbz2 -lz -lcrypto -lelf  
> -lm -L/usr/lib/lib -lwrap -L/usr/local/lib -lopenhpi -lglib-2.0    -lm
> /usr/lib/libnetsnmpmibs.so: undefined reference to `sensors_get_feature'
> /usr/lib/libnetsnmpmibs.so: undefined reference to  
> `sensors_get_all_features'
> collect2: ld returned 1 exit status
> make[3]: *** [hpiSubagent] Error 1
> make[3]: Leaving directory `/home/qiang/openhpi-subagent-2.3.4/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/qiang/openhpi-subagent-2.3.4/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/qiang/openhpi-subagent-2.3.4'
> make: *** [all] Error 2
>
> And can you give me some suggestion?
>
> Best regards,
> Qiang Li

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel

Reply via email to