tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Where does lrint get changed to lrintl?



On Wed, Oct 24, 2012 at 11:36:07PM -0400, D'Arcy J.M. Cain wrote:
> I have asked this question on the FreeSWITCH mailing list but perhaps
> it is more of a NetBSD question.
> 
> In libs/spandsp/src/spandsp/saturated.h around line 129 there is a line
> that calls "lrint(damp)".  This generates the following error on NetBSD:
> 
> libs/spandsp/src/spandsp/saturated.h:129:5: error: implicit declaration
> of function 'lrintl'
> 
> I can't find any reference to lrintl in the FreeSWITCH sources and
> nothing in the NetBSD include trees that would do the substitution.
> Looks like FreeBSD has the same confusion.  This is from the ports
> Makefile.
> 
> # FreeBSD 7 doesn't have lrintl, but lrint will do the trick just fine
> # It's quite cryptic as to why the reinplace doesn't work; there's no
> mention # of lrintl anywhere in any source....
> .if ${OSVERSION} < 800012
> BROKEN= Requires lrintl, which is not present on FreeBSD 7 
> .endif  
> 
> Anyone here have any idea where this substitution is happening?

Compile with -Dlrint=@@@ and see where it breaks first.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index