[Freeswitch-users] Can't compile latest git

Antonio asilva at wirelessmundi.com
Thu Oct 11 20:55:07 MSD 2012


Please ignore. 

I found what was the problem... missing dev library...


Thanks


On Thu, 2012-10-11 at 18:52 +0200, Antonio 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_handlers/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_handlers/mod_json_cdr'
> make[5]: Leaving directory
> `/home/marces/svn/packages/trunk/src/freeswitch/freeswitch-git/src/mod/event_handlers/mod_json_cdr'
> 
> making all mod_snmp
> make[5]: Entering directory
> `/home/marces/svn/packages/trunk/src/freeswitch/freeswitch-git/src/mod/event_handlers/mod_snmp'
> make[6]: Entering directory
> `/home/marces/svn/packages/trunk/src/freeswitch/freeswitch-git/src/mod/event_handlers/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
> 
> -- 
> 
> Un cordial saludo / Best regards, 
> 
>  _________________________
> 
> António Silva
> 
> E-mail:asilva at wirelessmundi.com


-- 

Un cordial saludo / Best regards, 

 _________________________

António Silva

E-mail:asilva at wirelessmundi.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121011/5fa20729/attachment.html 


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