Shared Library Problem....

maksud <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,
This is rather a peculiar problem. I had installed NetSNMP 5.3.1 without any
problem in my Fedora Core 8 distribution and used it. I had implemented many
tables using mib2c -c mib2c.mfd.conf files. So far no problem.

But, in the past two days I couldn't install it on my other PC's which also
features Fedora Core 8.
First I get the following errors when I install 5.4.1

[root@localhost SNMPAgent]# ./my_snmp_agent -f
> netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
> netsnmp_subtree_load()
> netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
> netsnmp_subtree_load()
> netsnmp_assert !"registration != duplicate" failed agent_registry.c:535
> netsnmp_subtree_load()
> Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
> Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
> Cannot find module (UCD-DISKIO-MIB): At line 0 in (none)
> Cannot find module (TCP-MIB): At line 0 in (none)
> Cannot find module (UDP-MIB): At line 0 in (none)
> Cannot find module (MTA-MIB): At line 0 in (none)
> Cannot find module (NETWORK-SERVICES-MIB): At line 0 in (none)
> Cannot find module (LM-SENSORS-MIB): At line 0 in (none)
> Cannot find module (IP-MIB): At line 0 in (none)
> Cannot find module (IF-MIB): At line 0 in (none)
> Cannot find module (SNMPv2-MIB): At line 0 in (none)
> Cannot find module (SNMPv2-SMI): At line 0 in (none)
> Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
> Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
> Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
> Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
> Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
> Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
> Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
> Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
> Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
> Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
> Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
> Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
> Cannot find module (IPV6-ICMP-MIB): At line 0 in (none)
> Cannot find module (IPV6-MIB): At line 0 in (none)
> Cannot find module (IPV6-TCP-MIB): At line 0 in (none)
> Cannot find module (IPV6-UDP-MIB): At line 0 in (none)
> Cannot find module (IP-FORWARD-MIB): At line 0 in (none)
> Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
> Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
> Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
> Cannot find module (SNMPv2-TM): At line 0 in (none)
> Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
> *Warning: Failed to connect to the agentx master agent ([NIL]): *
> Successfully created container
> In Container Load...
>

Then I uninstalled the version and installed 5.3.1 instead. At the beginning
it was working well. But now it stopped working and I get

[root@localhost ~]# cd workspace/SNMP_Agent/
> [root@localhost SNMP_Agent]# ./my_snmp_agent -f
> *./my_snmp_agent: error while loading shared libraries:
> libnetsnmpagent.so.10: cannot open shared object file: No such file or
> directory*
> [root@localhost SNMP_Agent]#
>

That is I can not start my subagent. I can run the agent *snmpd* and could
see the valuse of *ifTable* and get proper result. But I just can not start
my subagent. It compiles well but can't start.

I have seen the librarys in */usr/local/lib* but I can't understant why they
are not loaded.

Hope you could help me with the problem.

Maksud

------------------------------------------------------------------------------

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.