centos 7.9 最小安装 sofia-sip 编译安装正常 编译spandsp源码出错误如下: ./configure 正常 第一次执行make命令时:
[root@localhost spandsp]# make
gcc -o make_modem_filter ../src/make_modem_filter.c ../src/filter_tools.c -DHAVE_CONFIG_H -I../src -lm
./make_modem_filter -m V.17 -r >v17_v32bis_rx_rrc.h
/bin/sh: line 1: 27867 Segmentation fault (core dumped) ./make_modem_filter -m V.17 -r > v17_v32bis_rx_rrc.h
make[2]: *** [v17_v32bis_rx_rrc.h] Error 139
make[2]: Leaving directory `/usr/local/src/sofia-sip/spandsp/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/sofia-sip/spandsp/src'
make: *** [all-recursive] Error 1
第二次执行make时:
[root@localhost spandsp]# make
Making all in src
make[1]: Entering directory `/usr/local/src/sofia-sip/spandsp/src'
make all-am
make[2]: Entering directory `/usr/local/src/sofia-sip/spandsp/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DNDEBUG -msse2 -Wunused-but-set-variable -std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden -DHAVE_VISIBILITY=1 -MT v17rx.lo -MD -MP -MF .deps/v17rx.Tpo -c -o v17rx.lo v17rx.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DNDEBUG -msse2 -Wunused-but-set-variable -std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden -DHAVE_VISIBILITY=1 -MT v17rx.lo -MD -MP -MF .deps/v17rx.Tpo -c v17rx.c -fPIC -DPIC -o .libs/v17rx.o
v17rx.c: In function 'v17_rx_symbol_timing_correction':
v17rx.c:181:61: error: 'RX_PULSESHAPER_COEFF_SETS' undeclared (first use in this function)
return (float) s->total_baud_timing_correction/((float) RX_PULSESHAPER_COEFF_SETS*10.0f/3.0f);
^
v17rx.c:181:61: note: each undeclared identifier is reported only once for each function it appears in
v17rx.c: In function 'equalizer_restore':
v17rx.c:247:22: error: 'RX_PULSESHAPER_COEFF_SETS' undeclared (first use in this function)
s->eq_put_step = RX_PULSESHAPER_COEFF_SETS*10/(3*2) - 1;
^
v17rx.c: In function 'equalizer_reset':
v17rx.c:272:22: error: 'RX_PULSESHAPER_COEFF_SETS' undeclared (first use in this function)
s->eq_put_step = RX_PULSESHAPER_COEFF_SETS*10/(3*2) - 1;
^
v17rx.c: In function 'v17_rx':
v17rx.c:1312:27: error: 'RX_PULSESHAPER_COEFF_SETS' undeclared (first use in this function)
s->eq_put_step -= RX_PULSESHAPER_COEFF_SETS;
^
v17rx.c:1339:51: error: 'rx_pulseshaper_re' undeclared (first use in this function)
v = vec_circular_dot_prodf(s->rrc_filter, rx_pulseshaper_re[step], V17_RX_FILTER_STEPS, s->rrc_filter_step);
^
v17rx.c:1364:51: error: 'RX_PULSESHAPER_GAIN' undeclared (first use in this function)
s->agc_scaling = (FP_SCALE(2.17f)/RX_PULSESHAPER_GAIN)/root_power;
^
v17rx.c:1379:55: error: 'rx_pulseshaper_im' undeclared (first use in this function)
v = vec_circular_dot_prodf(s->rrc_filter, rx_pulseshaper_im[step], V17_RX_FILTER_STEPS, s->rrc_filter_step);
^
v17rx.c: In function 'v17_rx_fillin':
v17rx.c:1421:27: error: 'RX_PULSESHAPER_COEFF_SETS' undeclared (first use in this function)
s->eq_put_step -= RX_PULSESHAPER_COEFF_SETS;
^
v17rx.c: In function 'v17_rx_restart':
v17rx.c:1554:43: error: 'RX_PULSESHAPER_GAIN' undeclared (first use in this function)
s->agc_scaling = (FP_SCALE(2.17f)/RX_PULSESHAPER_GAIN)/735.0f;
^
v17rx.c: In function 'v17_rx_symbol_timing_correction':
v17rx.c:182:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[2]: *** [v17rx.lo] Error 1
make[2]: Leaving directory `/usr/local/src/sofia-sip/spandsp/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/sofia-sip/spandsp/src'
make: *** [all-recursive] Error 1
有人知道答案吗,帮忙拜托!