Hi all. I am one of many side programmers for Asterisk, the open source
PBX. (www.asterisk.org)

Many months ago, someone tried to write a module for Asterisk that would
allow direct SNMP querying of many different "guages"; such as number
of current SIP calls, number of Zap calls, etc...

I'm trying to bring this module up to date with our current version.
Asterisk supports lodable/unloadable modules. This SNMP module can be
loaded/unloaded at the will of the PBX admin.

That module is compiled against some NET-SNMPD headers/libraries.
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:

cc -I../asterisk -D_GNU_SOURCE   -c -o ast-ax-snmpd.o ast-ax-snmpd.c
In file included from ast-ax-snmpd.c:26:
/usr/include/asterisk/module.h:37: conflicting types for `unload_module'
/usr/include/net-snmp/library/parse.h:212: previous declaration of
`unload_module'
make: *** [ast-ax-snmpd.o] Error 1

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

If anyone is interested in looking at the source, it can be found here:

http://www.faino.it/ast-ax-snmpd/ast-ax-snmpd.0.3.tar.gz


Thanks,
Matthew
-- 
------------------------------------------------------------------------
Matthew Boehm, IT Director                    Cypress Telecommunications
[EMAIL PROTECTED]                   3838 N. Sam Houston Parkway E #400
T: 832-200-8640 x3044                                  Houston, TX 77032

My girlfriend was recently diagnosed with multiple personality disorder;
 When she called yesterday, my CallerID box exploded.
------------------------------------------------------------------------


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to