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