Re: segmentation fault (LEAF MIB)

2008-04-07 Thread Dave Shield
On 4 Apr 2008 05:39:01 -, [EMAIL PROTECTED] wrote:
  i used env option in mib2c and mib2c.scalar.conf to create leaf.c and leaf.h 
 files.
 then i put these files in /agent/mibgroup

  i did
  net-snmp5.4.1make clean
  net-snmp5.4.1./configure --with-MIB-modules=path of leaf.txt/leaf

Is that the exact text of the configure command you used?

Because if you've got files 'leaf.c' and 'leaf.h', installed in the
'agent/mibgroup'
directory, then I'd expect this to read

configure  --with-mib-modules=leaf

Note that configure options seem to be case-sensitive (and silently
ignore unrecognised options).   So make sure you use
   --with-mib-modules   and NOT   --with-MIB-modules

Dave

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


segmentation fault (LEAF MIB)

2008-04-03 Thread yogesh marathe
  
i created new mib LEAF.txt specified leaf in experimental branch of hierarchy 
and loaded is as shown in documentation 

http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_MIB_Module

i used env option in mib2c and mib2c.scalar.conf to create leaf.c and leaf.h 
files. then i put these files in /agent/mibgroup

i did 
net-snmp5.4.1make clean
net-snmp5.4.1./configure --with-MIB-modules=path of leaf.txt/leaf
net-snmp5.4.1make
net-snmp5.4.1make install

when i did snmpget for objects (e.g. leafHostName written in my MIB)
it is saying no instance of such object found.

similarly, when i started snmpd with -f option and then tried snmpget it ended 
in segmentation fault

is it related with leaf.c file? how to make newly created .c file compatible 
with net-snmp package(or agent)? 
please help me out..

thank you.-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users