Re: statically linking netsnmplib

anand prasad <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Thomas,
  Yes, you are correct!. The problem it reported was with mib files and I
had not made 'make install'
Through 'net-snmp-config --default-mibdirs' I came to know that, we need to
copy the mib files to

/usr/local/share/snmp/mibs [but, the mib files were in /usr/share/snmp/mibs]

just copied all mib files to /usr/local/share/snmp/mibs and got it
working!!!

Thanks alot!
PAN.

On Mon, Feb 22, 2010 at 4:25 AM, Thomas Anders
<[email protected]>wrote:

> anand prasad worte:
> > Now, I am trying to use snmptrap command:
> > sudo ./snmptrap -v 2c -Ci -c public 192.168.1.137 ""
> > NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification
> > netSnmpExampleHeartbeatRate i 1234561
> > I am getting the follwing error:
> > Cannot find module (IP-MIB): At line 0 in (none)
> [...]
> > NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification: Unknown
> > Object Identifier
> > If I build snmptrap without -static, then it works fine i.e I am able to
> > send/receive informReqeust and get-response.
> > But, I need to build my application by linking netsnmplib statically.
>
> net-snmp warns about missing MIB files, not libraries. If you didn't use
> "make install", you may need to copy them manually. See "net-snmp-config
> --default-mibdirs" for where your build expects them.
>
>
> +Thomas
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> 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
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
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.