[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-dev
Subject:    [asterisk-dev] res_perl with asterisk 1.4 compile problem
From:       "Gentian Bajraktari" <genti () qylfon ! net>
Date:       2006-12-28 8:50:32
Message-ID: 001701c72a5d$3bd2bbe0$4b00a8c0 () Genti
[Download RAW message or body]

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


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Dear all,</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>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. 
<BR><BR>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.&nbsp;<BR><BR>Here is the same compile problem again: <BR><BR>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 <BR>In file included from 
./res_perl.h:17, <BR><SPAN 
style="FONT-FAMILY: monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from&nbsp;res_perl.c:17: \
 </SPAN><BR>/usr/src/asterisk/include/asterisk/module.h:204: warning: "struct 
ast_channel" declared inside parameter list 
<BR>/usr/src/asterisk/include/asterisk/module.h:204: warning: its scope is only 
this definition or declaration, which is probably not what you want <BR>In file 
included from ./res_perl.h:22, <BR><SPAN 
style="FONT-FAMILY: monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from&nbsp;res_perl.c:17: \
 </SPAN><BR>/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perl.h:2424: 
error: syntax error before "perl_mutex" 
<BR>/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' 
<BR>/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perl.h:2424: 
warning: data definition has no type or storage class 
<BR>/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perl.h:2425: error: 
syntax error before "perl_cond" 
<BR>/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' 
<BR>/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perl.h:2425: 
warning: data definition has no type or storage class <BR>In file included from 
/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perl.h:3988, <BR><SPAN 
style="FONT-FAMILY: monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from&nbsp;./res_perl.h:22, \
 </SPAN><BR><SPAN 
style="FONT-FAMILY: monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from&nbsp;res_perl.c:17: \
 </SPAN><BR>/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perlvars.h:48: 
error: syntax error before "PL_op_mutex" 
<BR>/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' 
<BR>/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perlvars.h:48: 
warning: data definition has no type or storage class 
<BR>/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perlvars.h:52: 
error: syntax error before "PL_dollarzero_mutex" 
<BR>/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' 
<BR>/usr/local/lib/perl5/5.8.8/i686-linux-thread-multi/CORE/perlvars.h:52: 
warning: data definition has no type or storage class <BR>res_perl.c:492: 
warning: initialization from incompatible pointer type <BR>res_perl.c: In 
function `_update_perl': <BR>res_perl.c:837: warning: ISO C90 forbids mixed 
declarations and code <BR>res_perl.c: At top level: <BR>res_perl.c:921: warning: 
initialization from incompatible pointer type <BR>res_perl.c:1023: warning: 
initialization from incompatible pointer type <BR>res_perl.c: In function 
`_load_module': <BR>res_perl.c:1036: warning: ISO C90 forbids mixed declarations 
and code <BR>make: *** <A href="">res_perl.o</A> Error 1 </DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Rg,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Gentian</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic