[Freeswitch-dev] FreeBSD build problem

Oleg Khovayko khovayko at gmail.com
Sun Jan 2 07:39:44 MSK 2011


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.

You can apply this fix in the your GIT source tree.


More information about the FreeSWITCH-dev mailing list