Why are you using openr2 svn at all and not the releases from google code?<div><br></div><div>trunk is by definition development and highly experimental code, compiles if you know the right asterisk version or right freeswitch version to work with.</div>
<div><br></div><div>You should use either a release or a release-1 branch which is stable: </div><div><font class="Apple-style-span" face="monospace"><b><i><br></i></b></font></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; "><strong><em>http</em></strong>://<a href="http://openr2.googlecode.com/svn/branches/openr2">openr2.googlecode.com/svn/branches/openr2</a><span class="Apple-style-span" style="font-family: arial; font-size: small; "> </span></span></div>
<div><br></div><div>Read the openr2 guide at google code. You are using wrong branches, the team/moy/mfcr2 is deprecated and was already merged in trunk.</div><div><br><div class="gmail_quote">On Wed, Nov 11, 2009 at 8:27 PM, Daniel A. Veiga <span dir="ltr"><<a href="mailto:dveiga@advtechnology.com.ar">dveiga@advtechnology.com.ar</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'm using gcc-4.4.1-2.fc11.x86_64. And it's true, at the moment I<br>
received this mail I was fighting against compilation errors in<br>
Asterisk.<br>
I tried both:<br>
svn checkout <a href="http://svn.digium.com/svn/asterisk/team/moy/mfcr2" target="_blank">http://svn.digium.com/svn/asterisk/team/moy/mfcr2</a> mfcr2<br>
and<br>
svn checkout <a href="http://svn.digium.com/svn/asterisk/trunk/" target="_blank">http://svn.digium.com/svn/asterisk/trunk/</a> asterisk<br>
both fail in chan_dahdi:<br>
<br>
[CC] chan_dahdi.c -> chan_dahdi.o<br>
chan_dahdi.c:564: error: ‘MAX_CHANNELS’ undeclared here (not in a<br>
function)<br>
chan_dahdi.c: In function ‘dahdi_handle_event’:<br>
chan_dahdi.c:7039: warning: implicit declaration of function<br>
‘openr2_chan_handle_cas’<br>
chan_dahdi.c: In function ‘dahdi_read’:<br>
chan_dahdi.c:7998: warning: implicit declaration of function<br>
‘openr2_chan_process_event’<br>
chan_dahdi.c: In function ‘dahdi_r2_set_context’:<br>
chan_dahdi.c:10992: error: incompatible type for argument 1 of<br>
‘openr2_context_new’<br>
/usr/include/openr2/r2context.h:239: note: expected ‘openr2_variant_t’<br>
but argument is of type ‘void *’<br>
chan_dahdi.c:10992: warning: passing argument 3 of ‘openr2_context_new’<br>
makes integer from pointer without a cast<br>
/usr/include/openr2/r2context.h:239: note: expected ‘int’ but argument<br>
is of type ‘struct openr2_transcoder_interface_t *’<br>
chan_dahdi.c:10992: error: too many arguments to function<br>
‘openr2_context_new’<br>
chan_dahdi.c: In function ‘mkintf’:<br>
chan_dahdi.c:11218: warning: passing argument 2 of<br>
‘openr2_chan_new_from_fd’ makes pointer from integer without a cast<br>
/usr/include/openr2/r2chan.h:48: note: expected ‘openr2_io_fd_t’ but<br>
argument is of type ‘int’<br>
chan_dahdi.c:11218: warning: passing argument 3 of<br>
‘openr2_chan_new_from_fd’ makes integer from pointer without a cast<br>
/usr/include/openr2/r2chan.h:48: note: expected ‘int’ but argument is<br>
of type ‘void *’<br>
chan_dahdi.c:11218: error: too many arguments to function<br>
‘openr2_chan_new_from_fd’<br>
chan_dahdi.c: In function ‘mfcr2_monitor’:<br>
chan_dahdi.c:13067: warning: unused variable ‘pollers’<br>
make[1]: *** [chan_dahdi.o] Error 1<br>
<br>
<br>
BTW, have you kept a snapshot of the last working version somewhere?<br>
Bye,<br>
<br>
<br>
Ing. Daniel A. Veiga<br>
ADV Technology SRL<br>
<br>
<br>
<br>
> Fixed now!<br>
><br>
> Thanks for reporting it Daniel :-)<br>
><br>
> Which gcc version did you use? I enable -Wall and -Werror to try to<br>
> catch<br>
> these things but it seems gcc 4.1.2 did not catch it.<br>
><br>
> Btw, openr2 trunk is probably unstable at this point because of all the<br>
> refactoring and merging I did lately to work on FreeSWITCH, be careful<br>
> with<br>
> it :-) ... I believe Asterisk won't even compile with openr2 trunk now.<br>
><br>
> On Wed, Nov 11, 2009 at 5:12 PM, Daniel A. Veiga <<br>
> <a href="mailto:dveiga@advtechnology.com.ar">dveiga@advtechnology.com.ar</a>> wrote:<br>
><br>
>> I've just downloaded the latest svn version for a new installation<br>
>> and<br>
>> detected the following problem:<br>
>><br>
>><br>
>> Module: src/r2proto.c<br>
>> Function: static void presistance_check_expired()<br>
>> Line No: 978<br>
>> Problem: variable "myerrno" is used in call to strerror() before<br>
>> definition.<br>
>><br>
>> Bye,<br>
>><br>
>> Ing. Daniel A. Veiga<br>
>> ADV Technology SRL<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
>><br>
>> asterisk-r2 mailing list<br>
>> To UNSUBSCRIBE or update options visit:<br>
>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-r2" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-r2</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Moises Silva<br>
> Software Developer<br>
> Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON<br>
> L3R 9T3<br>
> Canada<br>
> t. 1 905 474 1990 x 128 | e. <a href="mailto:moy@sangoma.com">moy@sangoma.com</a><br>
><br>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Moises Silva<br>Software Developer<br>Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada<br>t. 1 905 474 1990 x 128 | e. <a href="mailto:moy@sangoma.com">moy@sangoma.com</a><br>
</div>