Hi, Per, Thanks a lot for your response and pointers. I'll have a look at the sources.
-Marko 2011/6/8 Per Cederberg <[email protected]> > As far as I understand, transitive imports are incorrect in ASN.1. > Which is the reason that Mibble reports them as an error. > > The Mibble parser was originally written to be a strict, validating > parser. So that it can be used to check MIB files when authoring them. > But these days, I guess Mibble is more used for reading MIB files from > various sources. And the strict error checking is more of an > annoyance. > > I guess this type of error should definitely become a warning instead. > I'll be sure to look into it more in detail next time I revise the > library. Meanwhile, you might try to adjust the code yourself (since > the source code is available). Check out the implementation of this > method in various classes (MibImport, MibContext, etc): > > public MibSymbol findSymbol(String name, boolean expanded); > > Cheers, > > /Per > > 2011/6/2 Marko Miettinen <[email protected]>: > > Hi, > > > > When using Mibble library, version 2.9.2, I've encountered following > issue. > > When loading following MIB: > > > > http://www.mibsearch.com/mibview/CISCO-ADSL-DMT-LINE-MIB > > > > loading gives an error [1] because the MIB in question imports Unsigned32 > > transitively through CISCO-TC MIB. Which in turn only imports it like: > > > > IMPORTS > > MODULE-IDENTITY, > > Gauge32, > > Integer32, > > Unsigned32, > > Counter64 > > FROM SNMPv2-SMI > > > > So I have two questions related to this: > > > > Is this kind of transitive import legal? I have not found any evidence > > saying that it wasn't. > > Of course I can get rid of this by patching the problematic MIB to import > > Unsigned32 directly. But should Mibble be able to do handle transitive > > imports? E.g. ireasoning and MFSOFT MIB browsers are able to handle this > > scenario. > > > > There seems to be a bug opened for this: > > http://savannah.nongnu.org/bugs/?33443 > > > > Thanks in advance for any answers, > > > > -Marko > > > > > > [1]: Error message: "couldn't find imported symbol 'Unsigned32' in MIB > > 'CISCO-TC'" > > > > _______________________________________________ > > Mibble-users mailing list > > [email protected] > > https://lists.nongnu.org/mailman/listinfo/mibble-users > > > > > > _______________________________________________ > Mibble-users mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/mibble-users >
_______________________________________________ Mibble-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/mibble-users
