On Tue, 2005-05-31 at 18:31, Matthew Boehm wrote:
> Hi all. I am one of many side programmers for Asterisk, the open source
> PBX. (www.asterisk.org)
> I'm trying to bring this [SNMP] module up to date with our current version.
> Asterisk supports lodable/unloadable modules.....
> But is seems to me that net-snmpd also has module support and it also
> has a function called "unload_module", just like asterisk does. So I get
> this error when compiling:

> Renaming asterisk's function is out of the question, as is renaming
> snmpd's. How does one overcome this?

I've just committed a patch to the main development tree,
that renames the offending routine in the Net-SNMP source,
while leaving an (optional) compatability wrapper.
  So anyone with existing code should be unaffected, while
this particular clash could be avoided by using the new
"netsnmp_unload_module" call, and defining a suitable
NETSNMP_CLEAN_NAMESPACE preprocessor directive.

That doesn't help you currently, of course - but it might
be a possible way out of this sort of problem in the future.

Comments welcome.

Dave



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to