sanchal.singh at alliance-infotech.com
2007-Aug-27 09:06 UTC
[asterisk-users] libmfcr2 is giving compilation errors
hi, I am using debian 4.0 with version 2.6.18-4-686 I have downloaded the required files form site asterisk-1.2.24.tar.gz libmfcr2-0.0.3-1.4.tar.bz2 libsupertone-0.0.2.tar.gz libunicall-0.0.3-1.4.tar.bz2 spandsp-20060903.tar.gz I downloaded and installed the files in the follwing sequence spandsp libsupertone libunicall Till here it is compiling and copying .so library to /usr/local/lib/ libmfcr2-0.0.3 source code is giving a lot of definition error sanchal at debian-alliance:/usr/src/libmfcr2-0.0.3_1.4$ make make all-am make[1]: Entering directory `/usr/src/libmfcr2-0.0.3_1.4' if /usr/bin/libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/u sr/include/libxml2 -g -O2 -MT mfcr2.lo -MD -MP -MF ".deps/mfcr2.Tpo" -c -o mf cr2.lo mfcr2.c; \ then mv -f ".deps/mfcr2.Tpo" ".deps/mfcr2.Plo"; else rm -f ".deps/mfcr2. Tpo"; exit 1; fi 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 In file included from mfcr2.c:66: mfcr2.h:573: error: expected specifier-qualifier-list before 'r2_mf_tx_state_t' mfcr2.c: In function 'select_active_rxtx': mfcr2.c:444: error: 'mfcr2_signaling_state_t' has no member named 'mf_rx_signal' mfcr2.c:456: error: 'mfcr2_signaling_state_t' has no member named 'mf_rx_signal' mfcr2.c: In function 'set_mf_signal': mfcr2.c:558: error: 'mfcr2_signaling_state_t' has no member named 'mf_tx_signal' mfcr2.c:582: error: 'mfcr2_signaling_state_t' has no member named 'mf_tx_signal' mfcr2.c:587: error: 'mfcr2_signaling_state_t' has no member named 'mf_tx_signal' mfcr2.c:593: error: 'mfcr2_signaling_state_t' has no member named 'mf_tx_signal' mfcr2.c: In function 'mf_tone_on_event': mfcr2.c:1413: error: 'mfcr2_signaling_state_t' has no member named 'mf_rx_signal ' mfcr2.c:1416: error: 'mfcr2_signaling_state_t' has no member named 'mf_rx_signal ' mfcr2.c: In function 'mf_tone_off_event': mfcr2.c:1836: error: 'mfcr2_signaling_state_t' has no member named 'mf_rx_signal ' mfcr2.c:1839: error: 'mfcr2_signaling_state_t' has no member named 'mf_rx_signal ' mfcr2.c:1840: error: 'mfcr2_signaling_state_t' has no member named 'mf_rx_signal ' mfcr2.c:1891: error: 'mfcr2_signaling_state_t' has no member named 'super_tone_t x_state' mfcr2.c:1891: error: 'mfcr2_signaling_state_t' has no member named 'super_tones' mfcr2.c:1908: error: 'mfcr2_signaling_state_t' has no member named 'super_tone_t x_state' mfcr2.c:1908: error: 'mfcr2_signaling_state_t' has no member named 'super_tones' mfcr2.c:1922: error: 'mfcr2_signaling_state_t' has no member named 'super_tone_t x_state' mfcr2.c:1922: error: 'mfcr2_signaling_state_t' has no member named 'super_tones' mfcr2.c:1936: error: 'mfcr2_signaling_state_t' has no member named 'super_tone_t x_state' mfcr2.c:1936: error: 'mfcr2_signaling_state_t' has no member named 'super_tones' mfcr2.c:1950: error: 'mfcr2_signaling_state_t' has no member named 'super_tone_t x_state' mfcr2.c:1950: error: 'mfcr2_signaling_state_t' has no member named 'super_tones' mfcr2.c: In function 'check_event': mfcr2.c:2620: error: 'mfcr2_signaling_state_t' has no member named 'mf_tx_signal ' mfcr2.c:2776: error: 'mfcr2_signaling_state_t' has no member named 'mf_tx_signal ' mfcr2.c:2784: error: 'mfcr2_signaling_state_t' has no member named 'mf_tx_state' mfcr2.c:2788: error: 'mfcr2_signaling_state_t' has no member named 'mf_tx_signal ' mfcr2.c:2792: error: 'mfcr2_signaling_state_t' has no member named 'mf_tx_signal ' mfcr2.c:2796: error: 'mfcr2_signaling_state_t' has no member named 'super_tone_t x_state' mfcr2.c: In function 'load_r2_parameter_set': mfcr2.c:2890: error: 'mfcr2_signaling_state_t' has no member named 'mf_tx_state' mfcr2.c:2890: error: too many arguments to function 'r2_mf_tx_init' mfcr2.c: In function 'drop_call': mfcr2.c:3491: error: 'mfcr2_signaling_state_t' has no member named 'super_tone_t x_state' mfcr2.c:3491: error: 'mfcr2_signaling_state_t' has no member named 'super_tones' mfcr2.c:3547: error: 'mfcr2_signaling_state_t' has no member named 'super_tone_t x_state' mfcr2.c:3547: error: 'mfcr2_signaling_state_t' has no member named 'super_tones' mfcr2.c: In function 'create_new': mfcr2.c:3861: error: 'mfcr2_signaling_state_t' has no member named 'super_tones' mfcr2.c:3863: error: 'mfcr2_signaling_state_t' has no member named 'super_tones' mfcr2.c: At top level: mfcr2.c:4364: fatal error: opening dependency file .deps/mfcr2.Tpo: Permission d enied compilation terminated. make[1]: *** [mfcr2.lo] Error 1 make[1]: Leaving directory `/usr/src/libmfcr2-0.0.3_1.4' make: *** [all] Error 2 Can anybody tell me how to remove these errors I converted .src.rpm file of libmfcr2 to .deb file and installed it. I donot know wether is it is instal;led or not Thanka and regards sanchal