Carlos Chavez
2006-Oct-09 15:30 UTC
[asterisk-users] Problem compiling libmfcr2.0.0.2 on Fedora Core 5
I am getting an error in Fedora Core 5 when trying to compile libmfcr2.0.0.2: [root@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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20061009/e793af79/attachment.pgp
Moises Silva
2006-Oct-09 17:32 UTC
[asterisk-users] Problem compiling libmfcr2.0.0.2 on Fedora Core 5
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@telecomabmex.com> wrote:> I am getting an error in Fedora Core 5 when trying to compile > libmfcr2.0.0.2: > > [root@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"