[Freeswitch-dev] Issues building freeswitch (git-co) on Nexenta CP3

Thomas Haggett lists at haggett.org
Tue Aug 31 08:54:28 PDT 2010

Just re-compiled with hash enabled and got this build error (it was the C99 failure, it turns out);

making all mod_hash
In file included from /usr/include/time.h:35,
                 from /root/freeswitch/libs/esl/src/include/esl.h:159,
                 from src/esl.c:34:
/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

and mod_spandsp causes these errors;

cd /root/freeswitch/libs/spandsp && make -j1
make[1]: Entering directory `/root/freeswitch/libs/spandsp'
Making all in src
make[2]: Entering directory `/root/freeswitch/libs/spandsp/src'
make  all-am
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.


On 31 Aug 2010, at 16:28, Rupa Schomaker wrote:

> On Tue, Aug 31, 2010 at 4:44 AM, Thomas Haggett <lists at haggett.org> wrote:
> * a couple of modules wouldn't build cleanly but because I didn't require them I just commented them out from modules.conf. Trying to be useful I tried to build as many as I could and ended up with these modules removed:
> #applications/mod_hash
> #applications/mod_spandsp
> Both of these modules are pretty important.
> spandsp gives you lots of codecs.
> hash is used in the default dialplan.  
> I can't help with spandsp, but could you give me the errors you get when mod_hash is included?
> -- 
> -Rupa
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20100831/5a76dd09/attachment.html 

More information about the FreeSWITCH-dev mailing list