Thank you again: About mib2c.table_data.conf there are more errors, it is easy to find them compiling the *.c and *.h file generated. Anycase I could progress.
A new question, I have the module volumeOccupancyTable, so after I develop and modify in file net-snmp-5.4.2.1/agent/mibgroup/volumeOccupancyTable.c, I do "make" (only 2 seconds) and "make install". This command last a minute, how can I do? I mean options in the4 Makefile like installlocalheaders, etc Thank you -----Mensaje original----- De: Dave Shield [mailto:[email protected]] Enviado el: martes, 31 de marzo de 2009 17:18 Para: Gómez González, Enrique CC: [email protected] Asunto: Re: I obtain that with make install 2009/3/31 "Gómez González, Enrique" <[email protected]>: > I have started with > > mib2c -S cache=1 -c mib2c.table_data.conf tableName > > Unfortunately I get errors, some errors are easy > (comments with # and not with // Oops! OK - that one is easy to fix. (assuming you mean the "Determine the first/last column names" comment) Though actually, I'm not sure that comment ought to appear in the generated code at all. It's really a comment within the mib2c template > error: expected ';' before ')' token, etc), Oops! That one is too. > I don´t know if there is a new version of the mib2c.table_data.conf > or I should repair these errors. Nothing released, no. I've tweaked the table_data template in the SVN tree to fix those two problems, and that should be included in all future releases of the software. Thanks for those reports. > Anycase, I use the correct mib2c.*.conf? As I've tried to indicate, there is no single "correct" mib2c template to use. A lot depends on both the characteristics of your MIB, and also on personal preferences. I believe that the table_data config is a sensible framework to use, and would fit your requirements very well. But I wouldn't go so far as to say that it is the "correct" one, since that implies that the others are in some way "wrong". Just 'cos I don't like something, that doesn't make it wrong :-) [Well, actually - yes it does, but I've yet to persuade Robert or Wes of this self-evident truth, so I'm having to be a bit diplomatic!] Dave
------------------------------------------------------------------------------
_______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
