Just re-compiled with hash enabled and got this build error (it was the C99 failure, it turns out);
In file included from /usr/include/time.h:35,
from /root/freeswitch/libs/esl/src/include/esl.h:159,
/usr/include/sys/feature_tests.h:357:2: error: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications require the use of c99"
make[5]: *** [src/esl.o] Error 1
make[4]: *** [/root/freeswitch/libs/esl/libesl.so] Error 2
make[3]: *** [mod_hash-all] Error 1
make[2]: *** [all-recursive] Error 1
cd /root/freeswitch/libs/spandsp && make -j1
make[1]: Entering directory `/root/freeswitch/libs/spandsp'
make[2]: Entering directory `/root/freeswitch/libs/spandsp/src'
make[3]: Entering directory `/root/freeswitch/libs/spandsp/src'
gcc -o make_modem_filter ../src/make_modem_filter.c ../src/filter_tools.c -DHAVE_CONFIG_H -I../src -lm
/var/tmp//ccpvaWbv.o: In function `make_tx_filter':
make_modem_filter.c:(.text+0x131): undefined reference to `__tgmath_fabs'
make_modem_filter.c:(.text+0x159): undefined reference to `__tgmath_fabs'
/var/tmp//ccpvaWbv.o: In function `make_rx_filter':
make_modem_filter.c:(.text+0x582): undefined reference to `__tgmath_fabs'
make_modem_filter.c:(.text+0x5aa): undefined reference to `__tgmath_fabs'
make_modem_filter.c:(.text+0x726): undefined reference to `__tgmath_cos'
make_modem_filter.c:(.text+0x761): undefined reference to `__tgmath_sin'
/var/tmp//ccqvaWbv.o: In function `expj':
filter_tools.c:(.text+0x3a5): undefined reference to `__tgmath_sin'
filter_tools.c:(.text+0x3bb): undefined reference to `__tgmath_cos'
/var/tmp//ccqvaWbv.o: In function `compute_raised_cosine_filter':
filter_tools.c:(.text+0x542): undefined reference to `__tgmath_cos'
filter_tools.c:(.text+0x634): undefined reference to `__tgmath_sqrt'
filter_tools.c:(.text+0x6a5): undefined reference to `__tgmath_sin'
/var/tmp//ccqvaWbv.o: In function `apply_hamming_window':
filter_tools.c:(.text+0x8b8): undefined reference to `__tgmath_cos'
/var/tmp//ccqvaWbv.o: In function `truncate_coeffs':
filter_tools.c:(.text+0x94b): undefined reference to `__tgmath_pow'
/var/tmp//ccqvaWbv.o: In function `fix':
filter_tools.c:(.text+0xa29): undefined reference to `__tgmath_floor'
filter_tools.c:(.text+0xa47): undefined reference to `__tgmath_floor'
collect2: ld returned 1 exit status
make[3]: *** [make_modem_filter] Error 1
make[3]: Leaving directory `/root/freeswitch/libs/spandsp/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/freeswitch/libs/spandsp/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/freeswitch/libs/spandsp'
make: *** [/root/freeswitch/libs/spandsp/src/libspandsp.la] Error 2
As I say, I have a working build without these modules and that seemed easier than investigating what header files / libraries were and were not present.
Thomas.