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">&lt;<a href="mailto:dveiga@advtechnology.com.ar">dveiga@advtechnology.com.ar</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I&#39;m using gcc-4.4.1-2.fc11.x86_64. And it&#39;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 -&gt; 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>
&gt; Fixed now!<br>
&gt;<br>
&gt; Thanks for reporting it Daniel :-)<br>
&gt;<br>
&gt; Which gcc version did you use? I enable -Wall and -Werror to try to<br>
&gt; catch<br>
&gt; these things but it seems gcc 4.1.2 did not catch it.<br>
&gt;<br>
&gt; Btw, openr2 trunk is probably unstable at this point because of all the<br>
&gt; refactoring and merging I did lately to work on FreeSWITCH, be careful<br>
&gt; with<br>
&gt; it :-) ... I believe Asterisk won&#39;t even compile with openr2 trunk now.<br>
&gt;<br>
&gt; On Wed, Nov 11, 2009 at 5:12 PM, Daniel A. Veiga &lt;<br>
&gt; <a href="mailto:dveiga@advtechnology.com.ar">dveiga@advtechnology.com.ar</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; I&#39;ve just downloaded the latest svn version for a new installation<br>
&gt;&gt; and<br>
&gt;&gt; detected the following problem:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Module: src/r2proto.c<br>
&gt;&gt; Function: static void presistance_check_expired()<br>
&gt;&gt; Line No: 978<br>
&gt;&gt; Problem: variable &quot;myerrno&quot; is used in call to strerror() before<br>
&gt;&gt; definition.<br>
&gt;&gt;<br>
&gt;&gt; Bye,<br>
&gt;&gt;<br>
&gt;&gt;                             Ing. Daniel A. Veiga<br>
&gt;&gt;                              ADV Technology SRL<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
&gt;&gt;<br>
&gt;&gt; asterisk-r2 mailing list<br>
&gt;&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;&gt;   <a href="http://lists.digium.com/mailman/listinfo/asterisk-r2" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-r2</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Moises Silva<br>
&gt; Software Developer<br>
&gt; Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON<br>
&gt; L3R 9T3<br>
&gt; Canada<br>
&gt; t. 1 905 474 1990 x 128 | e. <a href="mailto:moy@sangoma.com">moy@sangoma.com</a><br>
&gt;<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>