I've came accross net-snmp-tcl at sourceforge a few years ago, that
worked well in Windows for a while (using ucd-snmp 4.2.6).  But now I
need to port my TCL scripts to Linux and I need to build net-snmp for
Tcl.

I've done a fairly good job doing so far, but I've hit some major road
block and they have to do with loading a shared object and the global
variable being used by getopt.c.

I'm not that confortable with C and will be hard to explain what I'm
going through.  The biggest problem I have is with the arguments
calling the apps program when the shared object is loaded in memory. 
There is some functions which does a memset on optarg with Nulls in
snmp_parse_args.c.

The other problems are the "exit" instead of return values in the apps
(snmpget, snmpwalk, etc...).  Those are easy to fix.  Also the current
print functions don't use stdout easy to capture by the Tcl
Interpreter.  Seems like I have to change all the FILE *char
definition with char * and also change all printf with an sprintf.

I'm so close to make it work, I would just need somebody to review
what I'm doing and helping solve the args problem...

For example, if I call snmp_get twice inside a Tcl script, I'll get
all the options from the previous call carried over to the new call.

Steve M.


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to