Re: Has anyone ever actually built net-snmp V5 with a ucd module??

This is a discussion on Re: 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; And if I re-configure with --enable-ucd-snmp-compatibility, I get a different infinite list of errors in the ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008
Dan Miller
 
Posts: n/a
Default Re: Has anyone ever actually built net-snmp V5 with a ucd module??

And if I re-configure with --enable-ucd-snmp-compatibility, I get a
different infinite list of errors in the net-snmp headers, starting with:

In file included from mibincl.h:36,
from ip3Mib/ip3Mib.c:32:
.../../include/net-snmp/agent/snmp_vars.h:71: error: syntax error before '*'
token
In file included from ../../include/net-snmp/agent/snmp_vars.h:107,
from mibincl.h:36,
from ip3Mib/ip3Mib.c:32:
.../../include/net-snmp/agent/agent_handler.h:63: warning: `struct
netsnmp_request_info_s' declared inside parameter list
.../../include/net-snmp/agent/agent_handler.h:63: warning: its scope is only
this definition or declaration, which is probably not what you want
.../../include/net-snmp/agent/agent_handler.h:63: warning: `struct
netsnmp_agent_request_info_s' declared inside parameter list
.../../include/net-snmp/agent/agent_handler.h:137: error: syntax error before
"netsnmp_agent_request_info"
.../../include/net-snmp/agent/agent_handler.h:143: error: syntax error before
"netsnmp_agent_request_info"

----- Original Message -----
From: "Dan Miller (Kromos)" <dan@kromos.com>
To: <net-snmp-coders@lists.sourceforge.net>
Sent: Wednesday, January 16, 2008 11:30
Subject: Has anyone ever actually built net-snmp V5 with a ucd module??


> 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
>



-------------------------------------------------------------------------
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:15 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0