Error make net-Snmp 5.5 on solaris2

2010-05-12 Thread Samir BEN SAOUD
- Net-SNMP configuration summary: - SNMP Versions Supported:1 2c 3 Building for: solaris2 Net-SNMP Version: 5.5 Network t

Re: Problem with compiling simple application on FreeBSD 7.2

2010-05-12 Thread Tomas Macek
You don't have problems with snmp-lib, but with basic codings: you don't have main() defined at all (certainly if this is all your code!). Or if you have this as a module, you have to compile it with "-c" option, see gcc manual for details on options. Tomas On Wed, 12 May 2010, Alexander Shiko

Problem with compiling simple application on FreeBSD 7.2

2010-05-12 Thread Alexander Shikoff
Hello, I started to learn C API of net-snmp package, and I have a problem with compiling simple application on FreeBSD 7.2 with net-snmp 5.4.2: # cc -O2 -fno-strict-aliasing -pipe -march=athlon-mp -g -I/usr/local/include -I. -L /usr/local/lib -o mib.o -lnetsnmp mib.c /usr/lib/crt1.o(.text+0x7b):

working with counter64

2010-05-12 Thread Tomas Macek
I'm developing an app using net-snmp library version 5.5 on 64bit Linux. The reading is asynchronous. I have this piece of code: if (pdu->errstat == SNMP_ERR_NOERROR) { while (vp) { snprint_variable(buf, sizeof(buf), vp->name, vp->name_length, v