You don¹t have the snmp developer packages installed for net_snmp On 10/11/12 11:52 AM, "Antonio" <asilva@wirelessmundi.com> wrote:
Can't compile lastest HEAD....
-O2 -Wall -std=c99 -pedantic -Wdeclaration-after-statement -D_GNU_SOURCE -DHAVE_CONFIG_H -c /home/marces/svn/packages/trunk/src/freeswitch/freeswitch-git/src/mod/event_ha ndlers/mod_json_cdr/mod_json_cdr.c -o mod_json_cdr.o >/dev/null 2>&1 Creating mod_json_cdr.la... make[6]: Leaving directory `/home/marces/svn/packages/trunk/src/freeswitch/freeswitch-git/src/mod/event_h andlers/mod_json_cdr' make[5]: Leaving directory `/home/marces/svn/packages/trunk/src/freeswitch/freeswitch-git/src/mod/event_h andlers/mod_json_cdr'
making all mod_snmp make[5]: Entering directory `/home/marces/svn/packages/trunk/src/freeswitch/freeswitch-git/src/mod/event_h andlers/mod_snmp' make[6]: Entering directory `/home/marces/svn/packages/trunk/src/freeswitch/freeswitch-git/src/mod/event_h andlers/mod_snmp' Compiling subagent.c... subagent.c:36:38: error: net-snmp/net-snmp-config.h: No such file or directory subagent.c:37:40: error: net-snmp/net-snmp-includes.h: No such file or directory subagent.c:38:52: error: net-snmp/agent/net-snmp-agent-includes.h: No such file or directory In file included from subagent.c:39: subagent.h:106: error: expected =¹, ,¹, ;¹, asm¹ or __attribute__¹ before handle_identity¹ subagent.h:107: error: expected =¹, ,¹, ;¹, asm¹ or __attribute__¹ before handle_systemStats¹ subagent.h:108: error: expected =¹, ,¹, ;¹, asm¹ or __attribute__¹ before handle_channelList¹ subagent.c:41: error: expected =¹, ,¹, ;¹, asm¹ or __attribute__¹ before *¹ token subagent.c:42: error: expected =¹, ,¹, ;¹, asm¹ or __attribute__¹ before *¹ token subagent.c:43: error: expected =¹, ,¹, ;¹, asm¹ or __attribute__¹ before *¹ token subagent.c: In function channelList_callback¹: subagent.c:69: error: netsnmp_tdata_row¹ undeclared (first use in this function) subagent.c:69: error: (Each undeclared identifier is reported only once subagent.c:69: error: for each function it appears in.) subagent.c:69: error: row¹ undeclared (first use in this function) cc1: warnings being treated as errors subagent.c:73: error: implicit declaration of function netsnmp_tdata_create_row¹ subagent.c:111: error: implicit declaration of function netsnmp_tdata_row_add_index¹ subagent.c:111: error: ASN_INTEGER¹ undeclared (first use in this function) subagent.c:112: error: implicit declaration of function netsnmp_tdata_add_row¹ subagent.c:112: error: ch_table¹ undeclared (first use in this function) subagent.c: At top level: subagent.c:117: error: expected )¹ before *¹ token subagent.c:130: error: expected )¹ before *¹ token subagent.c: In function init_subagent¹: subagent.c:154: error: ISO C forbids nested functions subagent.c:154: error: expected =¹, ,¹, ;¹, asm¹ or __attribute__¹ before identity_oid¹ subagent.c:154: error: identity_oid¹ undeclared (first use in this function) subagent.c:154: error: expected expression before ]¹ token subagent.c:155: error: ISO C forbids nested functions subagent.c:155: error: expected =¹, ,¹, ;¹, asm¹ or __attribute__¹ before systemStats_oid¹ subagent.c:155: error: ISO C90 forbids mixed declarations and code subagent.c:155: error: systemStats_oid¹ undeclared (first use in this function) subagent.c:155: error: expected expression before ]¹ token subagent.c:156: error: ISO C forbids nested functions subagent.c:156: error: expected =¹, ,¹, ;¹, asm¹ or __attribute__¹ before channelList_oid¹ subagent.c:156: error: ISO C90 forbids mixed declarations and code subagent.c:156: error: channelList_oid¹ undeclared (first use in this function) subagent.c:156: error: expected expression before ]¹ token subagent.c:158: error: implicit declaration of function DEBUGMSGTL¹ subagent.c:158: error: left-hand operand of comma expression has no effect subagent.c:160: error: implicit declaration of function netsnmp_register_scalar_group¹ subagent.c:160: error: implicit declaration of function netsnmp_create_handler_registration¹ subagent.c:160: error: handle_identity¹ undeclared (first use in this function) subagent.c:160: error: implicit declaration of function OID_LENGTH¹ subagent.c:160: error: HANDLER_CAN_RONLY¹ undeclared (first use in this function) subagent.c:161: error: handle_systemStats¹ undeclared (first use in this function) subagent.c:163: error: ch_table_info¹ undeclared (first use in this function) subagent.c:163: error: netsnmp_table_registration_info¹ undeclared (first use in this function) subagent.c:164: error: implicit declaration of function netsnmp_table_helper_add_indexes¹ subagent.c:164: error: ASN_INTEGER¹ undeclared (first use in this function) subagent.c:167: error: ch_table¹ undeclared (first use in this function) subagent.c:167: error: implicit declaration of function netsnmp_tdata_create_table¹ subagent.c:168: error: ch_reginfo¹ undeclared (first use in this function) subagent.c:168: error: handle_channelList¹ undeclared (first use in this function) subagent.c:169: error: implicit declaration of function netsnmp_tdata_register¹ subagent.c:170: error: implicit declaration of function netsnmp_inject_handler¹ subagent.c:170: error: implicit declaration of function netsnmp_get_cache_handler¹ subagent.c:170: error: channelList_load¹ undeclared (first use in this function) subagent.c:170: error: channelList_free¹ undeclared (first use in this function) subagent.c: At top level: subagent.c:174: error: expected )¹ before *¹ token subagent.c:209: error: expected )¹ before *¹ token subagent.c:276: error: expected )¹ before *¹ token make[6]: *** [subagent.o] Error 1
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch