<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div>Just re-compiled with hash enabled and got this build error (it was the C99 failure, it turns out);</div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>making all mod_hash</div></div><div><div>In file included from /usr/include/time.h:35,</div></div><div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from /root/freeswitch/libs/esl/src/include/esl.h:159,</div></div><div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from src/esl.c:34:</div></div><div><div>/usr/include/sys/feature_tests.h:357:2: error: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications &nbsp; &nbsp; &nbsp; require the use of c99"</div></div><div><div>make[5]: *** [src/esl.o] Error 1</div></div><div><div>make[4]: *** [/root/freeswitch/libs/esl/libesl.so] Error 2</div></div><div><div>make[3]: *** [mod_hash-all] Error 1</div></div><div><div>make[2]: *** [all-recursive] Error 1</div></div></blockquote><div><br></div><div>and mod_spandsp causes these errors;</div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>cd /root/freeswitch/libs/spandsp &amp;&amp; make -j1</div></div><div><div>make[1]: Entering directory `/root/freeswitch/libs/spandsp'</div></div><div><div>Making all in src</div></div><div><div>make[2]: Entering directory `/root/freeswitch/libs/spandsp/src'</div></div><div><div>make &nbsp;all-am</div></div><div><div>make[3]: Entering directory `/root/freeswitch/libs/spandsp/src'</div></div><div><div>gcc -o make_modem_filter ../src/make_modem_filter.c ../src/filter_tools.c -DHAVE_CONFIG_H -I../src -lm</div></div><div><div>/var/tmp//ccpvaWbv.o: In function `make_tx_filter':</div></div><div><div>make_modem_filter.c:(.text+0x131): undefined reference to `__tgmath_fabs'</div></div><div><div>make_modem_filter.c:(.text+0x159): undefined reference to `__tgmath_fabs'</div></div><div><div>/var/tmp//ccpvaWbv.o: In function `make_rx_filter':</div></div><div><div>make_modem_filter.c:(.text+0x582): undefined reference to `__tgmath_fabs'</div></div><div><div>make_modem_filter.c:(.text+0x5aa): undefined reference to `__tgmath_fabs'</div></div><div><div>make_modem_filter.c:(.text+0x726): undefined reference to `__tgmath_cos'</div></div><div><div>make_modem_filter.c:(.text+0x761): undefined reference to `__tgmath_sin'</div></div><div><div>/var/tmp//ccqvaWbv.o: In function `expj':</div></div><div><div>filter_tools.c:(.text+0x3a5): undefined reference to `__tgmath_sin'</div></div><div><div>filter_tools.c:(.text+0x3bb): undefined reference to `__tgmath_cos'</div></div><div><div>/var/tmp//ccqvaWbv.o: In function `compute_raised_cosine_filter':</div></div><div><div>filter_tools.c:(.text+0x542): undefined reference to `__tgmath_cos'</div></div><div><div>filter_tools.c:(.text+0x634): undefined reference to `__tgmath_sqrt'</div></div><div><div>filter_tools.c:(.text+0x6a5): undefined reference to `__tgmath_sin'</div></div><div><div>/var/tmp//ccqvaWbv.o: In function `apply_hamming_window':</div></div><div><div>filter_tools.c:(.text+0x8b8): undefined reference to `__tgmath_cos'</div></div><div><div>/var/tmp//ccqvaWbv.o: In function `truncate_coeffs':</div></div><div><div>filter_tools.c:(.text+0x94b): undefined reference to `__tgmath_pow'</div></div><div><div>/var/tmp//ccqvaWbv.o: In function `fix':</div></div><div><div>filter_tools.c:(.text+0xa29): undefined reference to `__tgmath_floor'</div></div><div><div>filter_tools.c:(.text+0xa47): undefined reference to `__tgmath_floor'</div></div><div><div>collect2: ld returned 1 exit status</div></div><div><div>make[3]: *** [make_modem_filter] Error 1</div></div><div><div>make[3]: Leaving directory `/root/freeswitch/libs/spandsp/src'</div></div><div><div>make[2]: *** [all] Error 2</div></div><div><div>make[2]: Leaving directory `/root/freeswitch/libs/spandsp/src'</div></div><div><div>make[1]: *** [all-recursive] Error 1</div></div><div><div>make[1]: Leaving directory `/root/freeswitch/libs/spandsp'</div></div><div><div>make: *** [/root/freeswitch/libs/spandsp/src/libspandsp.la] Error 2</div></div></blockquote><div><br></div><div>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.</div><div><br></div><div>Cheers,</div><div>Thomas.</div><div><br></div><div><div><div>On 31 Aug 2010, at 16:28, Rupa Schomaker wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div class="gmail_quote">On Tue, Aug 31, 2010 at 4:44 AM, Thomas Haggett <span dir="ltr">&lt;<a href="mailto:lists@haggett.org">lists@haggett.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div>* 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:</div>
</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div>#applications/mod_hash</div></div></div><div><div><div>#applications/mod_spandsp</div></div></div><div><div><div><br></div></div></div></blockquote>
</blockquote></div><div><br></div>Both of these modules are pretty important.<div><br></div><div>spandsp gives you lots of codecs.</div><div><br></div><div>hash is used in the default dialplan. &nbsp;</div><div><br></div><div>
I can't help with spandsp, but could you give me the errors you get when mod_hash is included?<br clear="all"><br>-- <br>-Rupa<br>
</div>
_______________________________________________<br>FreeSWITCH-dev mailing list<br><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev<br>http://www.freeswitch.org<br></blockquote></div><br></div></body></html>