[asterisk-dev] res_perl with asterisk 1.4 compile problem

Gentian Bajraktari genti at qylfon.net
Thu Dec 28 01:50:32 MST 2006


Dear all,

now we have the same problem of res_perl compilation with asterisk 1.4. It is the same problem that was present when asterisk was upgraded to version 1.2. 

I hope Anthony Minessale will be able to solve that problem as he did on that case. But if any of you know a hack to this problem please let us know. 

Here is the same compile problem again: 

gcc -Wall -DRES_PERL_BASE="\"/usr/local/res_perl\"" -DMULTIPLICITY -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE -I/usr/src/asterisk -I/usr/src/asterisk/include -I. -c res_perl.c 
In file included from ./res_perl.h:17, 
                from res_perl.c:17: 
/usr/src/asterisk/include/asterisk/module.h:204: warning: "struct ast_channel" declared inside parameter list 
/usr/src/asterisk/include/asterisk/module.h:204: warning: its scope is only this definition or declaration, which is probably not what you want 
In file included from ./res_perl.h:22, 
                from res_perl.c:17: 
/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perl.h:2424: error: syntax error before "perl_mutex" 
/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perl.h:2424: warning: type defaults to `int' in declaration of `perl_mutex' 
/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perl.h:2424: warning: data definition has no type or storage class 
/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perl.h:2425: error: syntax error before "perl_cond" 
/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perl.h:2425: warning: type defaults to `int' in declaration of `perl_cond' 
/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perl.h:2425: warning: data definition has no type or storage class 
In file included from /usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perl.h:3988, 
                from ./res_perl.h:22, 
                from res_perl.c:17: 
/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perlvars.h:48: error: syntax error before "PL_op_mutex" 
/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perlvars.h:48: warning: type defaults to `int' in declaration of `PL_op_mutex' 
/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perlvars.h:48: warning: data definition has no type or storage class 
/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perlvars.h:52: error: syntax error before "PL_dollarzero_mutex" 
/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perlvars.h:52: warning: type defaults to `int' in declaration of `PL_dollarzero_mutex' 
/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perlvars.h:52: warning: data definition has no type or storage class 
res_perl.c:492: warning: initialization from incompatible pointer type 
res_perl.c: In function `_update_perl': 
res_perl.c:837: warning: ISO C90 forbids mixed declarations and code 
res_perl.c: At top level: 
res_perl.c:921: warning: initialization from incompatible pointer type 
res_perl.c:1023: warning: initialization from incompatible pointer type 
res_perl.c: In function `_load_module': 
res_perl.c:1036: warning: ISO C90 forbids mixed declarations and code 
make: *** res_perl.o Error 1 


Rg,

Gentian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20061228/e989e892/attachment.htm


More information about the asterisk-dev mailing list