NetSNMP v5.2.1 fails to compile on HP-UX 11.31 IA64

2011-02-23 Thread Logeswari Viswanath
Hi all,

We encountered below error when compiling NetSNMP v5.2.1 on HP-UX
11.31 IA system.

==
/bin/sh ../../libtool  --mode=compile cc -I../../include -I.
-I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/opens
sl/include   +Z +DD32  -Dhpux11  -c -o mibII/route_write.lo mibII/route_write.c
rm -f mibII/.libs/route_write.lo
cc -I../../include -I. -I../../agent -I../../agent/mibgroup
-I../../snmplib -I/opt/openssl/include +Z +DD32 -Dhpux11 -c mibII/
route_write.c  +Z -DPIC -o mibII/.libs/route_write.lo
mibII/route_write.c, line 127: error #2136: struct radix_node has
no field rn_key
  memcpy(route.rt_dst, dst, sizeof(struct sockaddr_in));
^

mibII/route_write.c, line 192: error #2136: struct radix_node has
no field rn_key
  memcpy(route.rt_dst, dst, sizeof(struct sockaddr_in));
^

2 errors detected in the compilation of mibII/route_write.c.

Net-SNMP gmake failed!


Some interesting items from configure log :

=
checking for rtentry.rt_dst... no
checking type of rtentry structure... Unknown
unknown
checking for struct rtentry... rtentry
checking for rtentry.rt_unit... no
checking for rtentry.rt_refcnt... no
checking for rtentry.rt_hash... no
checking for rtentry.rt_use... No
==


Is this a known issue? If so, can anyone let me know the fix for this issue?

Regards,
Logeswari

--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: NetSNMP v5.2.1 fails to compile on HP-UX 11.31 IA64

2011-02-23 Thread Wes Hardaker
 On Wed, 23 Feb 2011 13:58:45 +0530, Logeswari Viswanath 
 log...@gmail.com said:

LV We encountered below error when compiling NetSNMP v5.2.1 on HP-UX
LV 11.31 IA system.

5.2.1 is an extremely old release that is no longer in our supported set
of releases.  Can you try a more recent one, like 5.6.1?
-- 
Wes Hardaker
Please mail all replies to net-snmp-coders@lists.sourceforge.net

--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


memory leak calling snmp_send()

2011-02-23 Thread Adam Mendlik
I've written a Windows service which consumes an inbound data stream and
sends out SNMP traps using netsnmp.lib.

During service initialization I call:
snmp_sess_init(session);
session.version = SNMP_VERSION_1;
init_snmp(snmpapp);
... and set session.peername, session.community, and session.community_len
SOCK_STARTUP;
setup_engineID(NULL, NULL);
snmpv3_generate_engineID(session.contextEngineIDLen);
ss = snmp_add(session, netsnmp_transport_open_client(snmptrap,
session.peername), NULL, NULL);

At service termination I call:
snmp_close(ss);
snmp_shutdown(snmpapp);
SOCK_CLEANUP;


But while the service is running, it is constantly building new PDU's and
calling snmp_send(ss, pdu) passing the same session pointer created at
initialization. I have found that every call to snmp_send() allocates a
little more memory and never releases it. I confirmed this by commenting out
the call to snmp_send() and adding a call to snmp_free_pdu(pdu). In other
words, my program just builds PDU's and then throws them away. In this setup
(obviously just for testing) memory use stays perfectly flat.

My question is: is there a reason why snmp_send() is leaking memory, how do
I fix it, or should I be using a different function in this scenario?

Thanks in advance,
Adam
--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev ___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: massive feature/minimalist patch being checked in right now

2011-02-23 Thread Magnus Fromreide
On Tue, 2011-02-22 at 16:06 -0800, Wes Hardaker wrote:

I get a couple of warnings from gcc (4.6.0 prerelease):

../../../clean/local/minimalist/feature-check --feature-global 
../../../clean/include/net-snmp/feature-details.h 
../../../clean/apps/snmpnetstat/inet.c inet.ft /usr/local/gcc-head/bin/gcc -E 
-I../../include -I../../../clean/include   -fno-strict-aliasing -Os 
-ffunction-sections -ggdb3 -Ulinux -Dlinux=linux -Wall -Wstrict-prototypes 
-Wwrite-strings -Wcast-qual -c
In file included from ../../../clean/include/net-snmp/net-snmp-features.h:7:0,
 from ../../../clean/include/net-snmp/library/snmp_api.h:33,
 from ../../../clean/include/net-snmp/types.h:421,
 from ../../../clean/include/net-snmp/definitions.h:22,
 from ../../../clean/include/net-snmp/net-snmp-includes.h:67,
 from ../../../clean/apps/snmpnetstat/inet.c:64:
../../../clean/include/net-snmp/feature-details.h:3:33: warning: missing 
whitespace after the macro name [enabled by default]
../../../clean/include/net-snmp/feature-details.h:8:33: warning: missing 
whitespace after the macro name [enabled by default]
../../../clean/include/net-snmp/feature-details.h:13:25: warning: missing 
whitespace after the macro name [enabled by default]
../../../clean/include/net-snmp/feature-details.h:14:33: warning: missing 
whitespace after the macro name [enabled by default]
../../../clean/include/net-snmp/feature-details.h:16:60: error: 1 may not 
appear in macro parameter list

and then this repeats for almost every line in feature-details.h
For reference, here are the first 17 lines of feature-details.h:

  1 
  2 /* required by ../../../clean/apps/snmpnetstat/inet.c */
  3 #define NETSNMP_FEATURE_REQUIRE_#DEFINE 1
  4 #define NETSNMP_FEATURE_REQUIRE_NETSNMP_FEATURE_REQUIRE(X) 1
  5 #define NETSNMP_FEATURE_REQUIRE_X 1
  6 
  7 /* features provided by ../../../clean/apps/snmpnetstat/inet.c */
  8 #define NETSNMP_FEATURE_PROVIDE_#DEFINE 1
  9 #define NETSNMP_FEATURE_PROVIDE_NETSNMP_FEATURE_PROVIDE(X) 1
 10 #define NETSNMP_FEATURE_PROVIDE_X 1
 11 
 12 /* features provided by ../../../clean/apps/snmpnetstat/inet.c */
 13 #define NETSNMP_FEATURE_#DEFINE_CHILD_OF_#DEFINE 1
 14 #define NETSNMP_FEATURE_PROVIDE_#DEFINE 1
 15 #define NETSNMP_FEATURE_NETSNMP_FEATURE_CHILD_OF(X_CHILD_OF_Y) 1
 16 #define NETSNMP_FEATURE_PROVIDE_NETSNMP_FEATURE_CHILD_OF(X 1
 17 #define NETSNMP_FEATURE_X_CHILD_OF_Y 1

and I have to admit that this doesn't look like C to me...

/MF


--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Fixing warnings in snmplib/snmpksm.c

2011-02-23 Thread Niels Baggesen
In my eternal quest for warnings I now hit snmpksm, which did not even 
compile on my standard CentOS setups :-(


I would like to solicit some input on the changes that I made to get it 
to compile and quell warnings, so would some of you who has a Kerberos 
setup please look at the attached dif? The important point is the first 
ten lines or so that tweaks the includes.


/Niels

--
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming


snmpksm.dif
Description: video/dv
--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev ___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Fixing warnings in snmplib/snmpksm.c

2011-02-23 Thread Magnus Fromreide
On Wed, 2011-02-23 at 22:38 +0100, Niels Baggesen wrote:
 In my eternal quest for warnings I now hit snmpksm, which did not even 
 compile on my standard CentOS setups :-(
 
 I would like to solicit some input on the changes that I made to get it 
 to compile and quell warnings, so would some of you who has a Kerberos 
 setup please look at the attached dif? The important point is the first 
 ten lines or so that tweaks the includes.

No comment on chunk 1 and that is bad as that is what you asked for.
Chunk 2 and 3 looks good.
Chunk 4 looks marvelous. How did this ever compile?
Chunk 5-12: Why print lengths as signed integers?

/MF


--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Fixing warnings in snmplib/snmpksm.c

2011-02-23 Thread Niels Baggesen
On Wed, Feb 23, 2011 at 11:22:16PM +0100, Magnus Fromreide wrote:
 Chunk 4 looks marvelous. How did this ever compile?

I have no idea if this ever compiled :-) It is certainly some years
ago last time

 Chunk 5-12: Why print lengths as signed integers?

Lazyness. Then you only have to change one thing.

When it says
%d, LENGTH_something
where LENGTH_something is a size_t you can either make it
%d, (int)LENGTH_something
or
%u, (unsigned int)LENGTH_something

:-)

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Fixing warnings in snmplib/snmpksm.c

2011-02-23 Thread Magnus Fromreide
On Wed, 2011-02-23 at 23:31 +0100, Niels Baggesen wrote:
 On Wed, Feb 23, 2011 at 11:22:16PM +0100, Magnus Fromreide wrote:
  Chunk 4 looks marvelous. How did this ever compile?
 
 I have no idea if this ever compiled :-) It is certainly some years
 ago last time

:-)

  Chunk 5-12: Why print lengths as signed integers?
 
 Lazyness. Then you only have to change one thing.
 
 When it says
   %d, LENGTH_something
 where LENGTH_something is a size_t you can either make it
   %d, (int)LENGTH_something
 or
   %u, (unsigned int)LENGTH_something

There is the third option as well:

  % NETSNMP_PRIz u, LENGTH_something

The drawback is that it is even longer but the advantage is that it is
correct on both 32 and 64-bit platforms, but then, so are the other two
versions if LENGTH_something is sufficiently small.

 :-)
 
 /Niels
 



--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Fixing warnings in snmplib/snmpksm.c

2011-02-23 Thread Niels Baggesen
On Thu, Feb 24, 2011 at 12:01:32AM +0100, Magnus Fromreide wrote:
 There is the third option as well:
 
   % NETSNMP_PRIz u, LENGTH_something
 
 The drawback is that it is even longer but the advantage is that it is
 correct on both 32 and 64-bit platforms, but then, so are the other two
 versions if LENGTH_something is sufficiently small.

I probably still suffer from old times where you never could be sure
whether size_t was signed or unsigned (that was before they invented
ssize_t)

char still suffers from that problem.

I think the gcc 2.95.3 I still have on a Solaris 8 system has it as
a signed :-(

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: [PATCH] AGENT: fix no interface statistics available

2011-02-23 Thread Robert Story
On Tue, 08 Feb 2011 09:36:47 -0800 Wes wrote:
WH Actually, the patch didn't apply cleanly for some reason.  So in the
WH process of creating a new one I changed it from sizeof(foo)-1 to
WH strlen(foo) which I think is the true way to do it.

running strlen on a static string every time? blech.

--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Constant polling of the interface stats in if-mib

2011-02-23 Thread Robert Story
On Wed, 16 Feb 2011 10:44:59 -0800 (PST) Eivind wrote:
EN Sorry for sending this email again, but I cannot seem to be able to access 
the 
EN sourceforge page to submit my patch. Does you or anyone else have problem 
EN accessing the patch tracker and click Add New? I get a HTTP 500 error 
response 
EN back...

Eek... I just tried this and I get a blank page when trying to add a new
bug/patch, but only if I'm not logged in to SF. When I'm logged in, it works
as expected...


--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Fixing warnings in snmplib/snmpksm.c

2011-02-23 Thread Wes Hardaker
 On Wed, 23 Feb 2011 23:31:11 +0100, Niels Baggesen 
 n...@users.sourceforge.net said:

NB On Wed, Feb 23, 2011 at 11:22:16PM +0100, Magnus Fromreide wrote:
 Chunk 4 looks marvelous. How did this ever compile?

NB I have no idea if this ever compiled :-) It is certainly some years
NB ago last time

It was definitely many many moons ago.  The KSM stuff was done probably
10 years ago and I doubt has been used much recently.

Interestingly, there has recently been renewed desire to get it
standardized, so it may pop up again soon.
-- 
Wes Hardaker
Please mail all replies to net-snmp-coders@lists.sourceforge.net

--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: massive feature/minimalist patch being checked in right now

2011-02-23 Thread Wes Hardaker
 On Wed, 23 Feb 2011 22:36:20 +0100, Magnus Fromreide 
 ma...@lysator.liu.se said:

MF 3 #define NETSNMP_FEATURE_REQUIRE_#DEFINE 1
...
MF and I have to admit that this doesn't look like C to me...

No...  it looks like there must be some issue with the script that
generates the file.  I suspect an issue with sed/grep/tr/etc or
something in local/minimalist/feature-check.

Can you show me what the apps/snmpnetstat/inet.ft file looks like?

I also note you're building it outside the source tree?  I haven't tried
that yet, though I thought I coded it so it should work.

Which platform is this on?  Hmm...  says linux on the command line but
seems strange it is so different from mine.

-- 
Wes Hardaker
Please mail all replies to net-snmp-coders@lists.sourceforge.net

--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: Constant polling of the interface stats in if-mib

2011-02-23 Thread Eivind Naess
Thank you for your response Wes! And sorry for not replying my findings. Yes, I 
did figure out that you needed to be logged in first to be able to submit. I 
did 
not expect to receive a blank page with nothing in it, even if I wasn't logged 
in. 


I did get my patch submitted. Hopefully somebody will review, and commit.

Regards,
- Eivind



- Original Message 
From: Robert Story rst...@freesnmp.com
To: Eivind Naess eivn...@yahoo.com
Cc: net-snmp-coders@lists.sourceforge.net; Dave Shield 
d.t.shi...@liverpool.ac.uk; Wes harda...@users.sourceforge.net
Sent: Wed, February 23, 2011 6:03:43 PM
Subject: Re: Constant polling of the interface stats in if-mib

On Wed, 16 Feb 2011 10:44:59 -0800 (PST) Eivind wrote:
EN Sorry for sending this email again, but I cannot seem to be able to access 
the 

EN sourceforge page to submit my patch. Does you or anyone else have problem 
EN accessing the patch tracker and click Add New? I get a HTTP 500 error 
response 

EN back...

Eek... I just tried this and I get a blank page when trying to add a new
bug/patch, but only if I'm not logged in to SF. When I'm logged in, it works
as expected...


  

--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Transient Data ?

2011-02-23 Thread sujata patra
I  have just gone through the link 
http://www.net-snmp.org/wiki/index.php/Table_iterator

 If you are concerned thatthe data you are iterating over will change  or 
vanish between the time the iterator functions are called and the  time the 
handler is called to process a request, but you don't want to  cache all your 
data, then there is an itermediate option. 

If I use cache , is it a concern? The time handler is processing a request and 
expiry of cahe can free the data at the same time . right ?
In that case it will crash . How to avoid this situation.

is there any kind of lock so that this situation does not arise ?

Thanks
Sujata


  --
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev ___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: massive feature/minimalist patch being checked in right now

2011-02-23 Thread Magnus Fromreide
On Wed, 2011-02-23 at 18:29 -0800, Wes Hardaker wrote:
  On Wed, 23 Feb 2011 22:36:20 +0100, Magnus Fromreide 
  ma...@lysator.liu.se said:
 
 MF 3 #define NETSNMP_FEATURE_REQUIRE_#DEFINE 1
 ...
 MF and I have to admit that this doesn't look like C to me...
 
 No...  it looks like there must be some issue with the script that
 generates the file.  I suspect an issue with sed/grep/tr/etc or
 something in local/minimalist/feature-check.
 
 Can you show me what the apps/snmpnetstat/inet.ft file looks like?
 
 I also note you're building it outside the source tree?

Yes. I usually does that, save for the perl tree.

 I haven't tried that yet, though I thought I coded it so it should work.
 
 Which platform is this on?

debian/testing on x86_64 with gcc 4.6.0 20110207 (experimental)

Looking further it seems that the issue is -ggdb3.

Consider the output of

echo 'a(b)' | gcc -E - '-Da(x) x b'

as opposed to the output of

echo 'a(b)' | gcc -E - '-Da(x) x b' -ggdb3

Thus the patch in fc.diff seems to do the trick.

The build stil dies but there are other reasons for that now...

/MF

(and for the record this is how I invoke configure:

../clean/configure --enable-mini-agent --without-rpm --without-kmem-usage 
--without-root-access --with-defaults --prefix=/tmp/net-snmp-install 
--disable-debugging --disable-mib-loading --disable-manuals --disable-privacy 
--disable-md5 --disable-shared 
--with-out-transports=UDPIPv6,TCP,Unix,Callback,Alias,TCPIPv6 --without-openssl 
--disable-snmp --enable-snmpv2 --disable-snmpv1 --without-opaque-special-types 
--disable-deprecated --with-out-mib-modules=default_modules 
--with-mib-modules=ucd-snmp/dlmod,mibII/system_mib CFLAGS='-Os 
-ffunction-sections -ggdb3' LDFLAGS='-Wl,--gc-sections -Os -ggdb3' 
CC=/usr/local/gcc-head/bin/gcc --disable-ipv6 --enable-minimalist

where ../clean contains trunk/net-snmp/

/* required by ../../../clean/apps/snmpnetstat/inet.c */
#define NETSNMP_FEATURE_REQUIRE_#DEFINE 1
#define NETSNMP_FEATURE_REQUIRE_NETSNMP_FEATURE_REQUIRE(X) 1
#define NETSNMP_FEATURE_REQUIRE_X 1

/* features provided by ../../../clean/apps/snmpnetstat/inet.c */
#define NETSNMP_FEATURE_PROVIDE_#DEFINE 1
#define NETSNMP_FEATURE_PROVIDE_NETSNMP_FEATURE_PROVIDE(X) 1
#define NETSNMP_FEATURE_PROVIDE_X 1

/* features provided by ../../../clean/apps/snmpnetstat/inet.c */
#define NETSNMP_FEATURE_#DEFINE_CHILD_OF_#DEFINE 1
#define NETSNMP_FEATURE_PROVIDE_#DEFINE 1
#define NETSNMP_FEATURE_NETSNMP_FEATURE_CHILD_OF(X_CHILD_OF_Y) 1
#define NETSNMP_FEATURE_PROVIDE_NETSNMP_FEATURE_CHILD_OF(X 1
#define NETSNMP_FEATURE_X_CHILD_OF_Y 1
#define NETSNMP_FEATURE_PROVIDE_X 1

/* features wanted by ../../../clean/apps/snmpnetstat/inet.c */
#define NETSNMP_FEATURE_WANT_#DEFINE 1
#define NETSNMP_FEATURE_WANT_NETSNMP_FEATURE_WANT(X) 1
#define NETSNMP_FEATURE_WANT_X 1
#define netsnmp_feature_require(X) X NSF_RR
#define netsnmp_feature_provide(X) X NSF_PP
#define netsnmp_feature_child_of(X,Y) X,Y NSF_CO
#define netsnmp_feature_want(X) X NSF_WW
Index: local/minimalist/feature-check
===
--- local/minimalist/feature-check	(revision 19988)
+++ local/minimalist/feature-check	(working copy)
@@ -56,7 +56,8 @@
  '-Dnetsnmp_feature_require(X)=X NSF_RR' \
  '-Dnetsnmp_feature_provide(X)=X NSF_PP' \
  '-Dnetsnmp_feature_child_of(X,Y)=X,Y NSF_CO' \
- '-Dnetsnmp_feature_want(X)=X NSF_WW' $source | $GREP NSF_  $tmpf
+ '-Dnetsnmp_feature_want(X)=X NSF_WW' $source | \
+$GREP NSF_ | $GREP -v netsnmp_feature_  $tmpf
 
 $RM -f $destination;
 touch $destination;
--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev ___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders