On Sat, 2009-08-15 at 21:45 -0700, Huang, Jack wrote:
> I think you are asking me to compile it. There are quite a few
> makefiles. Which one should I use? I have only cygwin environment.

Well, yes.
I would expect that you end up using just about all of the makefiles.

On linux I would do:

./configure <lots of options>
make
MIBS=ALL MIBDIRS=./mibs ./apps/snmptranslate -Ib -Tp agentxRegIndex
patch -i print_range_value.diff -p0
make
MIBS=ALL MIBDIRS=./mibs ./apps/snmptranslate -Ib -Tp agentxRegIndex

In order to know what <lots of options> is I would run net-snmp-config
--configure-options for inspiration.

(Well, in reality I would build in another directory and read the output
of ./configure --help to get inspiration on the options but that is a
personal quirk)

> hua...@huangj2 [/cygdrive/c/SNMP/net-snmp-5.4.2.1]
> {1214} $ find  -iname '*makefile*'
> ./agent/helpers/Makefile.depend
> ...
> ________________________________________
> From: Magnus Fromreide [[email protected]]
> Sent: Saturday, August 15, 2009 9:16 PM
> To: Huang, Jack
> Cc: [email protected]
> Subject: RE: snmptranslate: range of unsigned32
> 
> On Sat, 2009-08-15 at 20:44 -0700, Huang, Jack wrote:
> > It is 5.4.2.1. I can not find the function you mentioned.
> >
> > By the way, I found a way to install the SNMP Perl module.
> >
> > hua...@huangj2 [/cygdrive/c/SNMP/net-snmp-5.4.2.1/snmplib]
> > {1203} $ grep -i print_range_value parse.c
> 
> print_range_value is the function the patch added so this is no
> surprise.
> 
> Could you not try to just apply the patch? If you are extra cautious
> then copy parse.c to a safe place first.
> 
> /MF
> 
> > hua...@huangj2 [/cygdrive/c/SNMP/net-snmp-5.4.2.1/snmplib]
> >
> > ________________________________________
> > From: Magnus Fromreide [[email protected]]
> > Sent: Saturday, August 15, 2009 8:32 PM
> > To: Huang, Jack
> > Subject: RE: snmptranslate: range of unsigned32
> >
> > [Please keep the discussion on the mailing list]
> >
> > On Sat, 2009-08-15 at 15:56 -0700, Huang, Jack wrote:
> > > I am sorry we have different source code so I can't tell if that would 
> > > fix it.
> >
> > Well, what version do you have?
> >
> > /MF
> >
> > > -----Original Message-----
> > > From: Magnus Fromreide [mailto:[email protected]]
> > > Sent: Saturday, August 15, 2009 12:05 PM
> > > To: Huang, Jack
> > > Cc: [email protected]
> > > Subject: Re: snmptranslate: range of unsigned32
> > >
> > > On Sat, 2009-08-15 at 18:53 +0200, Magnus Fromreide wrote:
> > > > On Fri, 2009-08-14 at 15:25 -0700, Huang, Jack wrote:
> > > > > Hello,
> > > > >
> > > > > It looks like there is an issue with the range of unsigned32 in the
> > > > > snmptranslate program. The range of unsigned32 is reported as 0 ..
> > > > > 2147483647, instead of 0..4294967295.
> > > > >
> > > > > Please let me know if you need more information.
> > > >
> > > > Thanks, this is quite correct. That code assumes that it is printing a
> > > > signed integer.
> > >
> > > Does the attached patch solve the problem you see?
> > >
> > > /MF
> > >


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to