Thomas Anders wrote:
> Thomas Anders wrote:
>> t/mib.........dubious
> 
> Here's the offending call that fails on 64-bit:
> 
> SNMP::translateObj('.iso.org.dod.internet.mgmt.mib-2.system.sysDescr');

Here's the one-line patch that fixes this bug. Somewhat of a no-brainer given
that on 64-bit platforms "make perltest" fails without it and succeeds once it's
applied.

Incidentally, this fixes some of the compiler warnings that we've been
discussing in the "5.4 open issues" context and that were believed to be
somewhat "harmless". Harmless? YMMV.

I'm calling for votes to include this in 5.4.


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)
Index: perl/SNMP/SNMP.xs
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/perl/SNMP/SNMP.xs,v
retrieving revision 5.69
diff -u -p -r5.69 SNMP.xs
--- perl/SNMP/SNMP.xs	25 Oct 2006 16:16:24 -0000	5.69
+++ perl/SNMP/SNMP.xs	11 Nov 2006 22:55:18 -0000
@@ -883,7 +883,7 @@ int    best_guess;
    struct tree *tp = NULL;
    struct tree *rtp = NULL;
    oid newname[MAX_OID_LEN], *op;
-   int newname_len = 0;
+   size_t newname_len = 0;
    const char *cp = NULL;
    char *module = NULL;
 
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to