This is a discussion on Has anyone ever actually built net-snmp V5 with a ucd module?? within the SNMP Coders forums, part of the Networking and Network Related category; As an alternative to re-writing our entire snmp module from scratch, I'm trying again to link our old ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
As an alternative to re-writing our entire snmp module from scratch, I'm
trying again to link our old UCD4 module into net-snmp V5.4.1. # ./configure --with-mib-modules=mymib Where mibgroup/mymib.c includes mymib.h, and mymib.h contains: config_require(mymib/mymodule1) config_require(mymib/mymodule2) config_require(mymib/mymodule3) where mymodule1/2/3 are the source files for our old UCD4 snmp modules. This worked for configure, and got me to the make stage. It *is* trying to compile our modules, but I'm getting endless problems with header inconsistencies. First, our modules each included "mibincl.h", which links *only* to include/net-snmp files. So I moved the the contents of mibincl.h into my source file, and changed all the net-snmp references to ucd-snmp references, and double-checked that the files exist. I also preceded all these declarations with: #include <ucd-snmp/ucd-snmp-config.h> Of course, this all fails, since the ucd-snmp headers all point back to net-snmp headers, and I still get over 800 errors in the net-snmp headers. Typical are: n file included from ip3Mib/ip3Mib.c:42: .../../include/ucd-snmp/snmp_vars.h:3:40: net-snmp/library/snmp_vars.h: No such file or directory ip3Mib/ip3Mib.c:44:36: ucd-snmp/agent_handler.h: No such file or directory In file included from ../../include/net-snmp/agent/snmp_agent.h:30, from ../../include/net-snmp/agent/agent_registry.h:10, from ../../include/ucd-snmp/agent_registry.h:3, from ip3Mib/ip3Mib.c:45: .../../include/net-snmp/library/data_list.h:92: error: syntax error before "netsnmp_save_all_data_callback" .../../include/net-snmp/library/data_list.h:92: warning: data definition has no type or storage class In file included from ../../include/ucd-snmp/agent_registry.h:3, from ip3Mib/ip3Mib.c:45: .../../include/net-snmp/agent/agent_registry.h:60: error: syntax error before '*' token .../../include/net-snmp/agent/agent_registry.h:60: error: syntax error before "netsnmp_subtree" This all looks to me like it simply does not work. Has anyone ever actually tried to do this?? Have you gotten it to work?? I'd be quite happy if the errors were in my own modules, but this is all in net-snmp headers... Dan Miller ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |