[asterisk-users] Problem compiling libmfcr2.0.0.2 on Fedora Core 5

Moises Silva moises.silva at gmail.com
Mon Oct 9 17:32:52 MST 2006


You are using wrong matching versions between libmfcr2 and spandsp.
Old versions of spandsp does not receive any argument to init R2 tx,
the firm was like this:

void r2_mf_tx_init(void)

newer spandsp versions use a firm like this:

r2_mf_tx_state_t *r2_mf_tx_init(r2_mf_tx_state_t *s)

So, your code in libmfcr2 is trying to use the older version.

Downgrade spandsp, to a suitable version, or upgrade libmfcr2 to a
matching version.

Regards

On 10/9/06, Carlos Chavez <cursor at telecomabmex.com> wrote:
>         I am getting an error in Fedora Core 5 when trying to compile
> libmfcr2.0.0.2:
>
> [root at pbx libmfcr2-0.0.3]# make
> make  all-am
> make[1]: Entering directory `/usr/src/mfcr2/libmfcr2-0.0.3'
> if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I. -I/usr/include/libxml2    -g -O2 -MT mfcr2.lo -MD -MP -MF
> ".deps/mfcr2.Tpo" -c -o mfcr2.lo mfcr2.c; \
> then mv -f ".deps/mfcr2.Tpo" ".deps/mfcr2.Plo"; else rm -f
> ".deps/mfcr2.Tpo"; exit 1; fi
> mkdir .libs
>  gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/libxml2 -g -O2 -MT
> mfcr2.lo -MD -MP -MF .deps/mfcr2.Tpo -c mfcr2.c  -fPIC -DPIC
> -o .libs/mfcr2.o
> mfcr2.c: In function 'check_event':
> mfcr2.c:2793: warning: passing argument 1 of 'r2_mf_tx' from
> incompatible pointer type
> mfcr2.c:2801: warning: passing argument 1 of 'r2_mf_tx' from
> incompatible pointer type
> mfcr2.c: In function 'load_r2_parameter_set':
> mfcr2.c:2905: error: too few arguments to function 'r2_mf_tx_init'
> make[1]: *** [mfcr2.lo] Error 1
> make[1]: Leaving directory `/usr/src/mfcr2/libmfcr2-0.0.3'
> make: *** [all] Error 2
>
>         Any idea what could be missing?
>
> --
> Carlos Chavez Prats
> Director de Tecnología
> Telecomunicaciones Abiertas de México S.A. de C.V.
> Tel: +52-55-91169161 Ext 2001
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
>


-- 
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"


More information about the asterisk-users mailing list