
Hi all! During working with libsmi library (0.4.1) I detect some problems. There is a CheckImport() function in data.c file, which returns a integer value. This value is equal to number of not imported items. This function is using in parser-smi.y file. I add some code and functions to libsmi to control this returned value and it works ok (my code return names of items which can't be imported or names of not existing modules). It allowed me to detect import error during importing ObjectSyntax item from SNMPv2-SMI module. I don't know why this error appears. I need some sugestions how can I repair this error. When I use oryginal code of 0.4.1 library and when in my lib file is :
IMPORTS ObjectSyntax FROM SNMPv2-SMI
the "n" variable in CheckImport() function equals 1, but normally there is no checking this returned value in parser-smi.y file.
Please help me. Regards Tom Styczynski

HI,
First, would you explain why you are importing "ObjectSyntax"?
Regasrds, /david t. perkins
On Mon, 20 Dec 2004, miksiu wrote:
Hi all! During working with libsmi library (0.4.1) I detect some problems. There is a CheckImport() function in data.c file, which returns a integer value. This value is equal to number of not imported items. This function is using in parser-smi.y file. I add some code and functions to libsmi to control this returned value and it works ok (my code return names of items which can't be imported or names of not existing modules). It allowed me to detect import error during importing ObjectSyntax item from SNMPv2-SMI module. I don't know why this error appears. I need some sugestions how can I repair this error. When I use oryginal code of 0.4.1 library and when in my lib file is :
IMPORTS ObjectSyntax FROM SNMPv2-SMI
the "n" variable in CheckImport() function equals 1, but normally there is no checking this returned value in parser-smi.y file.
Please help me. Regards Tom Styczynski
-- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to libsmi-request@ibr.cs.tu-bs.de !! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/libsmi.
participants (2)
-
David T. Perkins
-
miksiu