Hi!
Some feedback I got from someone running Debian GNU/Linux on PARISC...
instead of me updating the 'local' config.{guess,sub} files I guess it
would be better if Frank or Juergen could do that if they want to...
cheers,
Remco.
----- Forwarded message from LaMont Jones <lamont(a)smallone.fc.hp.com> -----
Subject: Bug#95079: libsmi2: Build failure on PARISC
From: LaMont Jones <lamont(a)smallone.fc.hp.com>
To: submit(a)bugs.debian.org
Date: Tue, 24 Apr 2001 00:21:38 -0600 (MDT)
Package: libsmi2
Version: 0.2.16-1
Severity: normal
The config.guess and config.sub files in the source need to be updated
to the current ones (at http://subversions.gnu.org/cgi-bin/cvsweb/config).
Once this is done, the package builds.
lamont
-- System Information
Debian Release: testing/unstable
Kernel Version: Linux smallone 2.4.0 #36 Mon Apr 23 23:15:58 MDT 2001 parisc64 unknown
Versions of the packages libsmi2 depends on:
ii libc6 2.2.1-1 GNU C Library: Shared libraries and Timezone
----- End forwarded message -----
--
!! This message is brought to you via the `libsmi' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <libsmi-request(a)ibr.cs.tu-bs.de>.
!! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.
Hi!
I'm getting a segmentation fault in smiLoadModule when the mibs imported by
the mib I load cannot be found. Also, the error comes *not* while loading
the errant module, but when I call smiLoadModule for the next mib. (I get
the error messages on screen for the first mib saying such and such modules
could not be loaded).
The debugger tells me that smiLoadModule calls loadModule on line (415)in
smi.c which then calls a parse function on line (3461) in data.c, which then
goes to parser-smi.y in line (2107), where the segmentation fault occurs in
structure referred to as $6.
Thanks,
Mayank.
--
!! This message is brought to you via the `libsmi' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <libsmi-request(a)ibr.cs.tu-bs.de>.
!! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.
Hi!
There is a new release 0.2.15 is on the FTP server. It fixes some
bugs and aligns with recent stools and jax releases.
http://www.ibr.cs.tu-bs.de/projects/libsmi/
ftp://ftp.ibr.cs.tu-bs.de/pub/local/libsmi/
Enjoy,
-frank
--
!! This message is brought to you via the `libsmi' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <libsmi-request(a)ibr.cs.tu-bs.de>.
!! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.
Hi!
Is there any specific cleanup function in the library that removes the nodes
that are returned to me? Or do I simple call free() when I no longer need the
node?
Mayank.
--
!! This message is brought to you via the `libsmi' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <libsmi-request(a)ibr.cs.tu-bs.de>.
!! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.
Hi!
I've got the solution now; it was a problem in the mib. I had not imported
"enterprises".
Thanks,
Mayank.
Frank Strauss <strauss(a)ibr.cs.tu-bs.de> on 04/13/2001 07:31:59 PM
To: Mayank Agarwal/HSS@HSS
cc:
Subject: Re: [libsmi] problem with smiGetNodeByOid
Hi!
sndtrn4> Sorry for the confusion. What I wanted to highlight was that
sndtrn4> though I can get a node correctly by name, I cannot get it by
sndtrn4> oid (fully qualified or partial), if the mib contains an
sndtrn4> imported mib. That is, if a.my imports SNMPv2-SMI and has the
sndtrn4> first object id as ------- me OBJECT IDENTIFIER ::= {
sndtrn4> enterprises 4 } , I cannot get "me" by oid.
Please give a detailed example with all required data so that I can
reconstruct your problem.
In my recent mail I gave you I piece of code that works fine for me
and I suggest to check whether your module is valid. Did you try my
code? Did you check your module(s) with smilint?
Please keep posting your messages to the mailinglist.
-frank
--
!! This message is brought to you via the `libsmi' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <libsmi-request(a)ibr.cs.tu-bs.de>.
!! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.
I am compiling some private mibs with libsmi 0.2.14 and am getting
errors. However these mibs compile correctly with another mib compiler
(Epilogue). I am trying to figure out whether these problems are
because the libsmi is less forgiving then Epilogue, or because of a
problem in libsmi. Basically, I try to create a sequence as follows:
ChrComHWEquipmentEntry ::=
SEQUENCE {
a Integer32 (0..65535),
b INTEGER,
c INTEGER (1..3)
}
When compiled, I get the following errors:
test2.mib:24: subtyping not allowed in SEQUENCE
test2.mib:26: subtyping not allowed in SEQUENCE
(in other words, "a" and "c" have do not work, but "b" does)
Basically, it seems like libsmi does not like you to put in range
limitations. When I examined x.680 (the asn.1 spec), I was unable to
prove that the range format is valid in that location. Basically, I
needed to get from the "Constraint section" (ie all of the xxxconstraint
rules) over to SubtypeElements. However, the language rules do not seem
complete, in that I cannot find the definition for "GeneralConstraint".
Does anyone know what the correct syntax is? If so do you know of an
official document discussing this topic?
Thanks,
Andy
gastone(a)lucent.com
PS: Below is my test mib file, my config file, & a dump of the smidump
output:
ChrComHWEquipment-MIB
DEFINITIONS ::= BEGIN
IMPORTS
OBJECT-TYPE,
Integer32 FROM SNMPv2-SMI;
-- chrComHWEquipment Table
chr MODULE-IDENTITY
LAST-UPDATED "9905170000Z"
ORGANIZATION "Cc."
CONTACT-INFO "Cm"
DESCRIPTION "Tis"
REVISION "9905170000Z"
DESCRIPTION "Cka"
::= { 1 3695 }
ChrComHWEquipmentEntry ::=
SEQUENCE {
a Integer32 (0..65535),
b INTEGER,
c INTEGER (1..3)
}
a OBJECT-TYPE
SYNTAX Integer32 (0..65535)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { 1 10 }
b OBJECT-TYPE
SYNTAX Integer32 (0..65535)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { 1 11 }
c OBJECT-TYPE
SYNTAX Integer32 (0..65535)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
""
::= { 1 12 }
END
And my compilation line with errors:
N:\chr_sim\devices\metropolis\mib>/chr_sim/framework/controller\smidump.exe
-f python -c test.cfg -o ChrComHWEquipment.py test2.mib
/chr_sim/framework/controller\smidump.exe -f python -c test.cfg -o
ChrComHWEquipment.py test2.mib
test2.mib:11: macro `MODULE-IDENTITY' has not been imported from module
`SNMPv2-SMI'
test2.mib:24: subtyping not allowed in SEQUENCE
test2.mib:26: subtyping not allowed in SEQUENCE
test2.mib:30: node `a' must be contained in at least one conformance
group
test2.mib:38: node `b' must be contained in at least one conformance
group
test2.mib:46: node `c' must be contained in at least one conformance
group
smidump: module `test2.mib' contains errors, expect flawed output
And finally my cfg file:
path
\chr_emb\mib;\chr_vxworks\target\src\snmpv1\mibs;\chr_sim\framework\controller\libsmi\mibs\ietf\
level 4
load rfc1155-smi
load rfc1213
--
!! This message is brought to you via the `libsmi' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <libsmi-request(a)ibr.cs.tu-bs.de>.
!! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.
Hi!
There was a typo in my last mail, i wrote "child" instead of "node". Here's the
code:
I'm having a problem finding a node by the oid. After loading the mib, I'm using
the following code segment:
scanf("%s", strNode);
node = smiGetNode(NULL, strNode);
node = smiGetNodeByOID(node->oidlen, node->oid);
if (node)
{
printf("Node name: %s\n", node->name);
}
else
{
printf("Node not found");
}
With the input "enterprises", I'm getting the output "ccitt", which isn't even
there in my mib (SNMPv2-SMI). With a mib loaded that imports this one, I can get
correct output till the level of "enterprises", but below this I get the result
"enterprises" for all inputs. I have verified that the node is being found
correctly in the first call smiGetNode().
Thanks in advance,
Mayank.
--
!! This message is brought to you via the `libsmi' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <libsmi-request(a)ibr.cs.tu-bs.de>.
!! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.
Hi!
I'm having a problem finding a node by the oid. After loading the mib, I'm using
the following code segment:
scanf("%s", strNode);
node = smiGetNode(NULL, strNode);
child = smiGetNodeByOID(node->oidlen, node->oid);
if (node)
{
printf("Node name: %s\n", node->name);
}
else
{
printf("Node not found");
}
With the input "enterprises", I'm getting the output "ccitt", which isn't even
there in my mib (SNMPv2-SMI). With a mib loaded that imports this one, I can get
correct output till the level of "enterprises", but below this I get the result
"enterprises" for all inputs. I have verified that the node is being found
correctly in the first call smiGetNode().
Thanks in advance,
Mayank.
--
!! This message is brought to you via the `libsmi' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <libsmi-request(a)ibr.cs.tu-bs.de>.
!! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.