[asterisk-r2] Problem on latest SVN

Daniel A. Veiga dveiga at advtechnology.com.ar
Wed Nov 11 19:27:48 CST 2009


I'm using gcc-4.4.1-2.fc11.x86_64. And it's true, at the moment I
received this mail I was fighting against compilation errors in
Asterisk.
I tried both:
svn checkout http://svn.digium.com/svn/asterisk/team/moy/mfcr2 mfcr2
and
svn checkout http://svn.digium.com/svn/asterisk/trunk/ asterisk
both fail in chan_dahdi:

   [CC] chan_dahdi.c -> chan_dahdi.o
chan_dahdi.c:564: error: ‘MAX_CHANNELS’ undeclared here (not in a
function)
chan_dahdi.c: In function ‘dahdi_handle_event’:
chan_dahdi.c:7039: warning: implicit declaration of function
‘openr2_chan_handle_cas’
chan_dahdi.c: In function ‘dahdi_read’:
chan_dahdi.c:7998: warning: implicit declaration of function
‘openr2_chan_process_event’
chan_dahdi.c: In function ‘dahdi_r2_set_context’:
chan_dahdi.c:10992: error: incompatible type for argument 1 of
‘openr2_context_new’
/usr/include/openr2/r2context.h:239: note: expected ‘openr2_variant_t’
but argument is of type ‘void *’
chan_dahdi.c:10992: warning: passing argument 3 of ‘openr2_context_new’
makes integer from pointer without a cast
/usr/include/openr2/r2context.h:239: note: expected ‘int’ but argument
is of type ‘struct openr2_transcoder_interface_t *’
chan_dahdi.c:10992: error: too many arguments to function
‘openr2_context_new’
chan_dahdi.c: In function ‘mkintf’:
chan_dahdi.c:11218: warning: passing argument 2 of
‘openr2_chan_new_from_fd’ makes pointer from integer without a cast
/usr/include/openr2/r2chan.h:48: note: expected ‘openr2_io_fd_t’ but
argument is of type ‘int’
chan_dahdi.c:11218: warning: passing argument 3 of
‘openr2_chan_new_from_fd’ makes integer from pointer without a cast
/usr/include/openr2/r2chan.h:48: note: expected ‘int’ but argument is
of type ‘void *’
chan_dahdi.c:11218: error: too many arguments to function
‘openr2_chan_new_from_fd’
chan_dahdi.c: In function ‘mfcr2_monitor’:
chan_dahdi.c:13067: warning: unused variable ‘pollers’
make[1]: *** [chan_dahdi.o] Error 1


BTW, have you kept a snapshot of the last working version somewhere?
Bye,


                            Ing. Daniel A. Veiga
                             ADV Technology SRL



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





More information about the asterisk-r2 mailing list