<!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> </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. <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"> from 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"> from 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"> from ./res_perl.h:22,
</SPAN><BR><SPAN
style="FONT-FAMILY: monospace"> from 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> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Rg,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Gentian</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>