[Freeswitch-users] Compile Error with mod_lua

SamyGo govoiper at gmail.com
Sun Apr 26 04:38:48 MSD 2015


Hi all,

I'm having bit of a trouble installing freeswitch on CentOS7 with lua5.2
installed from source.

When I compile FS it gives me the following output.

making all mod_lua
make[5]: Entering directory
`/usr/src/freeswitch.git/src/mod/languages/mod_lua'
  CXX      mod_lua_la-mod_lua.lo
  CXX      mod_lua_la-freeswitch_lua.lo
  CXX      mod_lua_la-mod_lua_wrap.lo
mod_lua_wrap.cpp: In function 'int*
SWIG_get_int_num_array_fixed(lua_State*, int, int)':
mod_lua_wrap.cpp:1379:47: error: array bound forbidden after parenthesized
type-id
 #define SWIG_ALLOC_ARRAY(TYPE,LEN)  new (TYPE)[LEN]
                                               ^
mod_lua_wrap.cpp:1433:9: note: in expansion of macro 'SWIG_ALLOC_ARRAY'
   array=SWIG_ALLOC_ARRAY(TYPE,size);\
         ^
mod_lua_wrap.cpp:1470:1: note: in expansion of macro
'SWIG_DECLARE_TYPEMAP_ARR_FN'
 SWIG_DECLARE_TYPEMAP_ARR_FN(int,int);
 ^
mod_lua_wrap.cpp:1379:47: note: try removing the parentheses around the
type-id
 #define SWIG_ALLOC_ARRAY(TYPE,LEN)  new (TYPE)[LEN]
                                               ^
mod_lua_wrap.cpp:1433:9: note: in expansion of macro 'SWIG_ALLOC_ARRAY'
   array=SWIG_ALLOC_ARRAY(TYPE,size);\
         ^
mod_lua_wrap.cpp:1470:1: note: in expansion of macro
'SWIG_DECLARE_TYPEMAP_ARR_FN'
 SWIG_DECLARE_TYPEMAP_ARR_FN(int,int);
 ^
mod_lua_wrap.cpp: In function 'int* SWIG_get_int_num_array_var(lua_State*,
int, int*)':
mod_lua_wrap.cpp:1379:47: error: array bound forbidden after parenthesized
type-id
 #define SWIG_ALLOC_ARRAY(TYPE,LEN)  new (TYPE)[LEN]
                                               ^

Any help would be greatly appreacited.

Thanks,
Sammy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150425/31de9095/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list