error while loading shared libraries: libnetsnmpmibs.so.14
"Awadhesh Kumar" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am using net-snmp 5.4 for net-snmp sub agent development. When i execute my subagent application(developed using mib2c etc..) at Linux machine, it is giving following error $ ./snmpSubAgent ./snmpSubAgent: error while loading shared libraries: libnetsnmpmibs.so.14: cannot open shared object file: No such file or directory This file is also available at lovation /usr/local/lib The linux machine info is [ggne0147@ggns1bfx02 subagent]$ uname -a Linux ggns1bfx02.hsc.com 2.6.15-1.2054_FC5 #1 SMP Tue Mar 14 15:48:20 EST 2006 x86_64 x86_64 x86_64 GNU/Linux I am linking my application with following -L/usr/local/lib -lnetsnmpmibs -lnetsnmpagent -lnetsnmphelpers -lnetsnmp -ldl -lz -lcrypto -lm -Wl,-E -Wl,-rpath,/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc Could you please see the error. When i try to link the libnetsnmpmibs.so.14file as [root@ggns1bfx02 lib]# ld libnetsnmpmibs.so.14 it gives the following error libnetsnmpmibs.so.14: undefined reference to `atime_newMarker' libnetsnmpmibs.so.14: undefined reference to `get_logh_head' libnetsnmpmibs.so.14: undefined reference to `netsnmp_container_find' libnetsnmpmibs.so.14: undefined reference to `snmp_save_persistent' libnetsnmpmibs.so.14: undefined reference to `snmp_set_var_objid' libnetsnmpmibs.so.14: undefined reference to `usmHMACMD5AuthProtocol' libnetsnmpmibs.so.14: undefined reference to `netsnmp_free_delegated_cache' [root@ggns1bfx02 lib]# ld libnetsnmpmibs.so.14 ld: warning: cannot find entry symbol _start; not setting start address libnetsnmpmibs.so.14: undefined reference to `netsnmp_data_list_add_node' libnetsnmpmibs.so.14: undefined reference to `netsnmp_table_dataset_add_row' libnetsnmpmibs.so.14: undefined reference to `read_config_read_octet_string' libnetsnmpmibs.so.14: undefined reference to `debugmsgtoken' libnetsnmpmibs.so.14: undefined reference to `snmpd_register_config_handler' libnetsnmpmibs.so.14: undefined reference to `usmHMACSHA1AuthProtocol' libnetsnmpmibs.so.14: undefined reference to `netsnmpUDPDomain' libnetsnmpmibs.so.14: undefined reference to `read_config_read_memory' libnetsnmpmibs.so.14: undefined reference to `vacm_getGroupEntry' libnetsnmpmibs.so.14: undefined reference to `snmp_shutdown' libnetsnmpmibs.so.14: undefined reference to `netsnmp_cache_check_and_reload' etc...... Could you please suggest me the solution of this problem. Thanks Awadhesh. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users