Re: CFV: dskAvail and negative values (FreeBSD ufs) (bug 3487953)

2012-09-04 Thread Thomas Anders
Niels Baggesen wrote: The attached patch is a simple fix for this bug, just zeroing the avail field when it would go negative. A better fix, after 5.7.2, would be to allow the negative value to pass through by changing the avail field from unsigned to signed. The MIB declares the object

Mib2C generated code error..

2012-09-04 Thread Jatin Bodarya
Hello DEVs, Please help me In my mib2c generated code I cannot write any function which returns a value For examples some of the warning are given below.. Please help me, How can I resolve it ?? Thanks in advance.. ionline.c: In function 'handle_memory': ionline.c:869:8: warning: ignoring

Re: 5.7.1 AIX agent link fails on Undefined sysmbols

2012-09-04 Thread Nathan, Mukund
Hi Niels Baggesen: Thanks for responding. Yes, I will try 5.7.2.rc2 and update you. Regarding the availability of Symbols CMSG_SPACE and CMSG_LEN, here are some details. Here are my configuration options. LDFLAGS=-rpath=\$$ORIGIN:/usr/lib:/usr/local/lib:/lib LIBS=-lz -lcrypto -lpthread

Re: 5.7.1 AIX agent link fails on Undefined sysmbols

2012-09-04 Thread Nathan, Mukund
Hi Neils Baggesen: I tried the 5.7.2.rc2. The configure options are as follows LIBS=-lpthread ./configure --prefix=/home/build/mnathan/netsnmp_staging --exec-prefix=/home/build/mnathan/netsnmp_exec --libdir=/home/build/mnathan/netsnmp_exec/lib

Re: 5.7.1 AIX agent link fails on Undefined sysmbols

2012-09-04 Thread Niels Baggesen
Den 04-09-2012 15:43, Nathan, Mukund skrev: So, it seems to indicate the need for the Linux compatibility flag to be included in CFLAGS. One of the configure option is --oldincludedir and the fact that it is oldincludedir raises some concern. Even including that did not resolve it. I

Re: Large file support

2012-09-04 Thread Niels Baggesen
Den 02-09-2012 18:44, Albert Chin skrev: Added AC_SYS_LARGEFILE to configure.ac and ran autoconf/autoheader. Ah, it seems to be a wellknown problem on the net, that you will get in trouble with swapctl and procfs ... The following seems to fix the compilation. Could you try if it also fixes

Re: Mib2C generated code error..

2012-09-04 Thread Magnus Fromreide
On Tue, 2012-09-04 at 17:08 +0530, Jatin Bodarya wrote: Hello DEVs, Please help me In my mib2c generated code I cannot write any function which returns a value For examples some of the warning are given below.. Please help me, How can I resolve it ?? Thanks in advance..

Re: CFV: dskAvail and negative values (FreeBSD ufs) (bug 3487953)

2012-09-04 Thread Niels Baggesen
On Tue, Sep 04, 2012 at 10:13:06AM +0200, Thomas Anders wrote: I'd argue for an additional comment in the code similar to the explanation in your mail. Extended version attached /Niels -- Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net The purpose of computing is

RE: Mib2C generated code error..

2012-09-04 Thread Jatin Bodarya
-Original Message- From: Magnus Fromreide [mailto:ma...@lysator.liu.se] Sent: 05 September 2012 02:36 To: Jatin Bodarya Cc: net-snmp-coders@lists.sourceforge.net Subject: Re: Mib2C generated code error.. On Tue, 2012-09-04 at 17:08 +0530, Jatin Bodarya wrote: Hello DEVs, Please help

RE: Mib2C generated code error..

2012-09-04 Thread Jatin Bodarya
Below is my code which is showing warning of ionline.c: In function 'handle_memory': ionline.c: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] ionline.c: warning: ignoring return value of 'fscanf', declared with attribute