Where does lrint get changed to lrintl?
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: # 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? -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
You should probably have mentioned spandsp in the header of your email to get coppice's attention. On Wed, Oct 24, 2012 at 5:39 PM, D'Arcy J.M. Cain <darcy@vex.net> wrote:
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:
# 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?
-- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
On Thu, 25 Oct 2012 17:47:52 -0500 Anthony Minessale <anthony.minessale@gmail.com> wrote:
You should probably have mentioned spandsp in the header of your email to get coppice's attention.
OK but I am not sure it is directly related to spandsp. I have also asked on the NetBSD list as well as creating a PR ticket to add the function to NetBSD. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=47122 -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
you shouldnt be installing spandsp via its package... spandsp is included with freeswitch and we require the version that is infreeswitch its ahead of the "packaged" versions as the author commits drectly to freeswitch Ken Sent from my iPad On Oct 25, 2012, at 11:20 PM, "D'Arcy J.M. Cain" <darcy@Vex.Net> wrote:
On Thu, 25 Oct 2012 17:47:52 -0500 Anthony Minessale <anthony.minessale@gmail.com> wrote:
You should probably have mentioned spandsp in the header of your email to get coppice's attention.
OK but I am not sure it is directly related to spandsp. I have also asked on the NetBSD list as well as creating a PR ticket to add the function to NetBSD.
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=47122
-- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
On Thu, 25 Oct 2012 23:54:37 -0400 Ken Rice <krice@freeswitch.org> wrote:
you shouldnt be installing spandsp via its package... spandsp is included with freeswitch and we require the version that is infreeswitch its ahead of the "packaged" versions as the author commits drectly to freeswitch
I'm not. The problem is in the spandsp code in FreeSWITCH. It calls lrint which somehow gets changed to a call to lrintl which NetBSD does not have. The fix is to either not do the redefinition in FreeSWITCH or else add the redefined function to NetBSD. Either should be OK. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
:git grep -n lrintl
no results. This must be coming from netbsd headers somewhere. Did you get any response from netbsd devs? If you need help digging and can get me access to a box remotely I am happy to take a look. Mike On Oct 26, 2012, at 8:51 AM, D'Arcy J.M. Cain <darcy@Vex.Net> wrote:
On Thu, 25 Oct 2012 23:54:37 -0400 Ken Rice <krice@freeswitch.org> wrote:
you shouldnt be installing spandsp via its package... spandsp is included with freeswitch and we require the version that is infreeswitch its ahead of the "packaged" versions as the author commits drectly to freeswitch
I'm not. The problem is in the spandsp code in FreeSWITCH. It calls lrint which somehow gets changed to a call to lrintl which NetBSD does not have. The fix is to either not do the redefinition in FreeSWITCH or else add the redefined function to NetBSD. Either should be OK.
-- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
participants (4)
-
Anthony Minessale
-
D'Arcy J.M. Cain
-
Ken Rice
-
Michael Jerris