From: PoWah W. <won...@ya...> - 2008-10-27 22:52:11
|
I compiled my source code with net-snmp-5.0.9 on FC6 and got the following compile errors. Please help to fix them. Thanks. $ make ... gcc -I../include -I../include -I.. -I./.. -I./../snmplib -I. -I. -I./mibgroup -Imibgroup -g -O2 -Dlinux -c snmpd.c -fPIC -DPIC -o .libs/snmpd.lo gcc -I../include -I../include -I.. -I./.. -I./../snmplib -I. -I. -I./mibgroup -Imibgroup -g -O2 -Dlinux -c snmpd.c -o snmpd.o >/dev/null 2>&1 mv -f .libs/snmpd.lo snmpd.lo /bin/sh ../libtool --mode=link gcc -g -O2 -Dlinux -o snmpd snmpd.lo -L//lib libnetsnmpagent.la libnetsnmpmibs.la helpers/libnetsnmphelpers.la ../snmplib/libnetsnmp.la -ldl -lcrypto -lelf -lm /usr/local/lib/libsensors.a gcc -g -O2 -Dlinux -o .libs/snmpd snmpd.o -L//lib ./.libs/libnetsnmpagent.so ./.libs/libnetsnmpmibs.so helpers/.libs/libnetsnmphelpers.so ../snmplib/.libs/libnetsnmp.so -ldl -lcrypto -lelf -lm /usr/local/lib/libsensors.a -Wl,--rpath -Wl,/usr/local/lib /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_one_sysfs_chip': (.text+0x2f): undefined reference to `sysfs_get_device_attr' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_one_sysfs_chip': (.text+0x16c): undefined reference to `sysfs_open_attribute' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_one_sysfs_chip': (.text+0x214): undefined reference to `sysfs_read_attribute' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_one_sysfs_chip': (.text+0x24f): undefined reference to `sysfs_close_attribute' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_chips': (.text+0x281): undefined reference to `sysfs_open_class' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_chips': (.text+0x28f): undefined reference to `sysfs_get_class_devices' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_chips': (.text+0x29f): undefined reference to `dlist_start' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_chips': (.text+0x2af): undefined reference to `_dlist_mark_move' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_chips': (.text+0x2d7): undefined reference to `_dlist_mark_move' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_chips': (.text+0x2e8): undefined reference to `sysfs_get_classdev_device' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_chips': (.text+0x2f9): undefined reference to `sysfs_close_class' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_chips': (.text+0x314): undefined reference to `sysfs_open_bus' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_chips': (.text+0x322): undefined reference to `sysfs_get_bus_devices' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_chips': (.text+0x332): undefined reference to `dlist_start' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_chips': (.text+0x342): undefined reference to `_dlist_mark_move' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_chips': (.text+0x35d): undefined reference to `_dlist_mark_move' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_chips': (.text+0x37b): undefined reference to `sysfs_close_bus' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_init_sysfs': (.text+0x3a6): undefined reference to `sysfs_get_mnt_path' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_bus': (.text+0x3d6): undefined reference to `sysfs_open_class' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_bus': (.text+0x3e9): undefined reference to `sysfs_get_class_devices' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_bus': (.text+0x3fc): undefined reference to `dlist_start' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_bus': (.text+0x40f): undefined reference to `_dlist_mark_move' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_bus': (.text+0x429): undefined reference to `sysfs_get_classdev_device' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_bus': (.text+0x43d): undefined reference to `sysfs_get_device_attr' /usr/local/lib/libsensors.a(sysfs.ao): In function `sensors_read_sysfs_bus': (.text+0x4f9): undefined reference to `sysfs_close_class' collect2: ld returned 1 exit status make[2]: *** [snmpd] Error 1 make[2]: Leaving directory `/home/powah/my_sw_native/viper_vob/snmp/net-snmp-5.0.9/agent' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/home/powah/my_sw_native/viper_vob/snmp/net-snmp-5.0.9' make: *** [all] Error 2 __________________________________________________________________ Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca |