[Freeswitch-users] Can't compile latest git

Ken Rice krice at freeswitch.org
Thu Oct 11 21:11:59 MSD 2012


You don¹t have the snmp developer packages installed for net_snmp


On 10/11/12 11:52 AM, "Antonio" <asilva at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121011/1e49115c/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list