[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeswitch-dev
Subject:    Re: [Freeswitch-dev] FreeBSD build problem
From:       Kim Culhan <w8hdkim () gmail ! com>
Date:       2011-01-02 14:07:46
Message-ID: AANLkTimP6WutaVxuBYc4b79WicUXbUPeVPa=kMA8+1+o () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

[Attachment #5 (text/html)]

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


_______________________________________________
FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic