Frances Lung writes:
Frances> I'm new to libsmi and just download libsmi 0.2.12. Does
Frances> libsmi can read in a mib file at run time and build a tree
Frances> structure internally (I mean in memory)? Does
Frances> smiLoadModule(...) will do the job?
Yes. smiLoadModule() loads a module (and all modules imported by that
module) into internal data structures. A module can be specified by a
pathname to read a concrete file or by module name to read the module
from the libsmi module repository. The structures can then be
traversed by a number of smiGet...() functions. See the man pages for
more details.
--
!! 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 All,
I'm new to libsmi and just download libsmi 0.2.12. Does libsmi can read in a
mib file at run time and build a tree structure internally (I mean in
memory)? Does smiLoadModule(...) will do the job?
Thanks a bunch.
Frances
--
!! 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.
Can anyone tell me if the libsmi, smiquery netsnmp output format is
compatable
with the UCD 4.2 release requirements. I've taken a quick look at the
netsnmp sample agent which is mib2c generated versus what
libsmi generates for the same mib and they appear to differ . Im new to
both of these toolkits so I appreciate any help.
Thanks
Bill
--
Bill Anderson wda(a)ironstream.com
IronStream, Inc. Phone: (978) 275-9555 x23
150 Industrial Ave. East http://www.ironstream.com
Lowell, MA 01852 fax: (978) 275-9994
>/bin/sh ../libtool --mode=compile /usr/vac/bin/cc -DHAVE_CONFIG_H -I.
>-I. -I.. -c parser-smi.tab.c
>/usr/vac/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -c parser-smi.tab.c -DPIC
>1506-507 (W) No licenses available. Contact your program supplier to add
>additional users. Compilation will proceed shortly.
>mv -f parser-smi.o parser-smi.tab.lo
>mv: cannot rename parser-smi.o to parser-smi.tab.lo:
>No such file or directory
Assuming that the license warning meant what it said about compilation
proceeding when a license became available, is there a "parser-smi.tab.o"
in that directory? It looks to me like cc should have compiled
parser-smi.tab.c into parser-smi.tab.o, but libtool for some reason
thinks it will be parser-smi.o .
If so, this does look like a libtool problem. You could try configuring
libsmi to not try to built a shared library with "./configure --disable-shared",
since it at least seems to be the shared library that it's having trouble
building. (I can't say that it won't have trouble building a static-only
library, but it's at least worth a shot).
Bill
--
!! 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 was wondering if someone else have had this problem
and what the soultion is.
System: AIX 4.3
libtool version: 1.3.5
libsmi version 0.2.5
bison: GNU Bison version 1.28
/bin/sh ../libtool --mode=compile /usr/vac/bin/cc -DHAVE_CONFIG_H -I.
-I. -I.. -c parser-smi.tab.c
/usr/vac/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -c parser-smi.tab.c -DPIC
1506-507 (W) No licenses available. Contact your program supplier to add
additional users. Compilation will proceed shortly.
mv -f parser-smi.o parser-smi.tab.lo
mv: cannot rename parser-smi.o to parser-smi.tab.lo:
No such file or directory
make[2]: *** [parser-smi.tab.lo] Error 1
make[2]: Leaving directory
`/raid/harrie/ConductorSNMP/obj/powerpc-ibm-aix-4.3.x/libsmi/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/raid/harrie/ConductorSNMP/obj/powerpc-ibm-aix-4.3.x/libsmi'
make: *** [all-recursive-am] Error 2
harrie@purple$
I have the idea 'libtool' screws up. In perticular the line below.
output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e
's%\..*$%%'`.${objext}
Unfortenate this is libtool and libsmi makes use of it.
Cheers,
Harrie
--
!! 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.