[Freeswitch-dev] FreeBSD build problem

Kim Culhan w8hdkim at gmail.com
Sun Jan 2 17:07:46 MSK 2011


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

-kim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20110102/fb040608/attachment.html 


More information about the FreeSWITCH-dev mailing list