Thanx for the reply Dave. I made a file on the basis of example.c and .h
and compiled it directly into the master agent. Its working fine. But when I
try to make a subagent out of it using "net-snmp-config --compile-subagent
myfile myfile.c" then after making executable, when I try to run it, it
throws "SEGMENTATION FAULT".

  Are there any changes required to be done while making the same file work
as subagent? (I can send you the C source file, in case you might want to
have a look at it.)

  Regards!
  Tina
  ----- Original Message ----- 
  From: "Dave Shield" <[EMAIL PROTECTED]>
  To: "Tina Agarwal" <[EMAIL PROTECTED]>
  Cc: "net-snmp-users" <[EMAIL PROTECTED]>
  Sent: Thursday, September 23, 2004 2:33 PM
  Subject: Re: subagent code based on example.c


  > > Can't I make a subagent with a C source file made on the basis of
  > > example.c and H file made on the basis of example.h.
  >
  > Yes.
  >
  > > Is it necessary to make a C module using mib2c utility for making a
  > > subagent??
  >
  > No.
  >
  > All that mib2c does is spit out code (or code templates).
  > If you generate similar code via a different route (copying from
  > another example file, or writing things from scratch) - that's
  > fine.    The agent won't care.
  >
  > There's nothing magical about 'mib2c' - it simply generates code.
  > There isn't any special "hidden passwords" or anything, to try and
  > force you to use mib2c.
  >
  > Code is code is code.
  >
  > Dave
  >
  > PS: Please - no HTML mail.  Thanks
  >



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to