Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256847 - dev-perl/SNMP_Session-0.92-r1 has typo in BER.pm
Summary: dev-perl/SNMP_Session-0.92-r1 has typo in BER.pm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-29 20:58 UTC by Dan Thorson
Modified: 2009-01-30 20:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Thorson 2009-01-29 20:58:06 UTC
I suspect the "upstream" coders should fix this, but I don't know if this code is being actively maintained....

anyway:

When using BER.pm (part of dev-perl/SNMP_Session-0.92-r1) I get the following:
Possible precedence problem on bitwise | operator at /usr/lib/perl5/vendor_perl/5.8.8/BER.pm line 611.

Reproducible: Always

Steps to Reproduce:
1. use SNMP_util in perl code
2. get warning





The fix is well published on TheGoogleNet... change line 611 in BER.pm as follows:

$ diff BER.pm.orig BER.pm.new
611c611
<     return error ("Sequence expected") unless $result == sequence_tag | constructor_flag;
---
>     return error ("Sequence expected") unless $result == sequence_tag or constructor_flag;
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2009-01-30 08:07:54 UTC
(In reply to comment #0)
> I suspect the "upstream" coders should fix this, but I don't know if this code
> is being actively maintained....

It was fixed in a later version.
Latest version (1.12) is in the tree now.

Thanks for the report.
Comment 2 Dan Thorson 2009-01-30 14:37:25 UTC
Thanks for the quick response on this bug.  Question for you: you said that the latest version of SNMP_Session (1.12) is now in the tree, but I'm not seeing it after I do an "emerge --sync".  How long does it typically take for your change to replicate to the misc mirrors?
Comment 3 Torsten Veller (RETIRED) gentoo-dev 2009-01-30 15:25:19 UTC
(In reply to comment #2)
> Thanks for the quick response on this bug.  Question for you: you said that the
> latest version of SNMP_Session (1.12) is now in the tree, but I'm not seeing it
> after I do an "emerge --sync".  How long does it typically take for your change
> to replicate to the misc mirrors?

Typically it takes an hour. Maybe your mirror was out of sync?

http://mirrorstats.gentoo.org/rsync/
http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/SNMP_Session/
Comment 4 Dan Thorson 2009-01-30 16:01:54 UTC
Hmm, had sync'd before... must have just missed the replication, as the new code is now availble on my system.

Thanks again.
Comment 5 Dan Thorson 2009-01-30 16:12:16 UTC
Release 1.12 tested OK for me on x86.  Do we need to open a new bug request that it marked stable on x86?
Comment 6 Dan Thorson 2009-01-30 20:16:59 UTC
Ahh, I revoke my request for stable on x86.  There is an issue in v1.12 in the SNMP_util.pm file.  Parsing of comments in "sub snmpMIB_to_OID" is incorrect, which leads to issues with parsing of the latest CISCO-PRODUCTS-MIB.my file.  I am reporting that bug to the upstream coders (Mike.Mitchell@sas.com).