Re: statically linking netsnmplib

2010-02-22 Thread anand prasad
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 thomas.and...@blue-cable.dewrote: anand prasad worte: Now, I am trying to use snmptrap command: sudo ./snmptrap -v 2c -Ci -c public 192.168.1.137 NET-SNMP

statically linking netsnmplib

2010-02-20 Thread anand prasad
Hi All, I am trying to statically link netsnmplib (i.e. .a lib) library to snmptrap.c application with the bellow command gcc snmptrap.c -g -static -I ../include -L../snmplib/.libs -lnetsnmp -o snmptrap Note: I have build the net-snmp with ./configure --with-ldflags=-Bstatic snmptrap is built