<div>On Sat, January 1, 2011 11:39 pm, Oleg Khovayko wrote:<br>> Hi,<br>> <br>> During last build from GIT version on FreeBSD v7.2,<br>> I see following error message:<br>> <br>> {{{<br>> <br>> In file included from libs/spandsp/src/plc.c:47:<br>
> libs/spandsp/src/spandsp/saturated.h: In function 'fsaturate':<br>> libs/spandsp/src/spandsp/saturated.h:129: warning: implicit declaration<br>> of function 'lrintl'<br>> libs/spandsp/src/spandsp/saturated.h:129: warning: incompatible implicit<br>
> declaration of built-in function 'lrintl'<br>> gmake[1]: *** [libfreeswitch_la-plc.lo] Error 1<br>> gmake: *** [all] Error 2<br>> <br>> }}}<br>> <br>> I checked source,<br>> File: libs/spandsp/src/spandsp/saturated.h<br>
> <br>> Line #129 contains:<br>> return (int16_t) lrint((float)damp);<br>> <br>> <br>> I assume, somewhere in the headers is redefinition lrint -> lrintl,<br>> and FreeBSD can not found this function.<br>
> <br>> <br>> I substituted that problem line by:<br>> <br>> 131 return (int16_t) lrintf((float)damp);<br>> <br>> And now everything builds OK.<br></div>
<div>FWIW git of this date builds without this problem on FreeBSD 8.2-RC1.</div>
<div> </div>
<div>-kim</div>
<div> </div>