NetBSD Problem Report #23101
Received: (qmail 887 invoked by uid 605); 8 Oct 2003 19:05:13 -0000
Message-Id: <20031008190509.877FC3694@yoda.cubidou.net>
Date: Wed, 8 Oct 2003 21:05:09 +0200
From: "Quentin Garnier" <cube@cubidou.net>
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: cube@cubidou.net
To: gnats-bugs@gnats.netbsd.org
Subject: Missing lrint(3) from C99
X-Send-Pr-Version: 3.95
>Number: 23101
>Category: standards
>Synopsis: Missing lrint(3) from C99
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: standards-manager
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Oct 08 19:06:00 +0000 2003
>Closed-Date: Wed Oct 08 19:28:44 +0000 2003
>Last-Modified: Fri Oct 10 23:03:00 +0000 2003
>Originator: Quentin Garnier
>Release: NetBSD 1.6ZC
>Organization:
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"Feels like I'm fiddling while Rome is burning down.
Should I lay my fiddle down and take a rifle from the ground ?"
Leigh Nash/Sixpence None The Richer, Paralyzed, Divine Discontents, 2002.
>Environment:
System: NetBSD padme 1.6ZC NetBSD 1.6ZC (PADME) #31: Sat Sep 20 20:18:56 CEST 2003 cube@padme:/mnt/src/current/src/sys/arch/i386/compile/NVIDIA i386
Architecture: i386
Machine: i386
>Description:
While working on PR pkg/18874, I came across the issue that we
don't have lrint(3), thus preventing the creation of that
package since it uses it:
drawing.o: In function `draw_compressed_audio_image':
drawing.o(.text+0xa4): undefined reference to `lrint'
It appears it is a function defined in C99, ISO/IEC 9899:1999.
>How-To-Repeat:
Try compiling gwc-0.19-10.
>Fix:
Implement it in libm, I guess, along with the other variants:
lrintf, lrintl, llrint, llrintf, llrintl.
There might be other missing functions from C99, too.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: kleink
State-Changed-When: Wed Oct 8 19:26:58 UTC 2003
State-Changed-Why:
This is essentially a duplicate of standards/10803.
From: Berndt Josef Wulf <wulf@ping.net.au>
To: cube@cubidou.net
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: standards/23101: Missing lrint(3) from C99
Date: Thu, 9 Oct 2003 08:50:25 +0930
On Thu, 9 Oct 2003 04:35 am, you wrote:
> >Number: 23101
> >Category: standards
> >Synopsis: Missing lrint(3) from C99
> >Confidential: no
> >Severity: serious
> >Priority: medium
> >Responsible: standards-manager
> >State: open
> >Class: change-request
> >Submitter-Id: net
> >Arrival-Date: Wed Oct 08 19:06:00 UTC 2003
> >Closed-Date:
> >Last-Modified:
> >Originator: Quentin Garnier
> >Release: NetBSD 1.6ZC
> >Organization:
>
> Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
> "Feels like I'm fiddling while Rome is burning down.
> Should I lay my fiddle down and take a rifle from the ground ?"
> Leigh Nash/Sixpence None The Richer, Paralyzed, Divine Discontents, 2002.
>
> >Environment:
>
> System: NetBSD padme 1.6ZC NetBSD 1.6ZC (PADME) #31: Sat Sep 20 20:18:56
> CEST 2003 cube@padme:/mnt/src/current/src/sys/arch/i386/compile/NVIDIA i386
> Architecture: i386
> Machine: i386
>
> >Description:
>
> While working on PR pkg/18874, I came across the issue that we
> don't have lrint(3), thus preventing the creation of that
> package since it uses it:
>
> drawing.o: In function `draw_compressed_audio_image':
> drawing.o(.text+0xa4): undefined reference to `lrint'
>
> It appears it is a function defined in C99, ISO/IEC 9899:1999.
>
> >How-To-Repeat:
>
> Try compiling gwc-0.19-10.
>
> >Fix:
>
> Implement it in libm, I guess, along with the other variants:
> lrintf, lrintl, llrint, llrintf, llrintl.
>
> There might be other missing functions from C99, too.
>
> >Release-Note:
> >Audit-Trail:
> >Unformatted:
Just cast these functions to the appropriate rint(3) supported by NetBSD,
which sofar worked fine for me.
cheerio Berndt
From: "Douwe Kiela" <virtus@wanadoo.nl>
To: <cube@cubidou.net>, <gnats-bugs@gnats.netbsd.org>
Cc:
Subject: Re: standards/23101: Missing lrint(3) from C99
Date: Sat, 11 Oct 2003 01:03:36 +0200
> >Number: 23101
> >Category: standards
> >Synopsis: Missing lrint(3) from C99
> >Confidential: no
> >Severity: serious
> >Priority: medium
> >Responsible: standards-manager
> >State: open
> >Class: change-request
> >Submitter-Id: net
> >Arrival-Date: Wed Oct 08 19:06:00 UTC 2003
> >Closed-Date:
> >Last-Modified:
> >Originator: Quentin Garnier
> >Release: NetBSD 1.6ZC
> >Organization:
> Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
> "Feels like I'm fiddling while Rome is burning down.
> Should I lay my fiddle down and take a rifle from the ground ?"
> Leigh Nash/Sixpence None The Richer, Paralyzed, Divine Discontents, 2002.
> >Environment:
> System: NetBSD padme 1.6ZC NetBSD 1.6ZC (PADME) #31: Sat Sep 20 20:18:56
CEST 2003 cube@padme:/mnt/src/current/src/sys/arch/i386/compile/NVIDIA i386
> Architecture: i386
> Machine: i386
> >Description:
> While working on PR pkg/18874, I came across the issue that we
> don't have lrint(3), thus preventing the creation of that
> package since it uses it:
>
> drawing.o: In function `draw_compressed_audio_image':
> drawing.o(.text+0xa4): undefined reference to `lrint'
>
> It appears it is a function defined in C99, ISO/IEC 9899:1999.
> >How-To-Repeat:
> Try compiling gwc-0.19-10.
> >Fix:
> Implement it in libm, I guess, along with the other variants:
> lrintf, lrintl, llrint, llrintf, llrintl.
>
> There might be other missing functions from C99, too.
> >Release-Note:
> >Audit-Trail:
> >Unformatted
Check these PR's:
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=21807
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=10803
I think this is a duplicate PR and it should be closed.
Regards,
Douwe
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.