Subject: standards/23101: Missing lrint(3) from C99
To: None <>
From: Quentin Garnier <>
List: netbsd-bugs
Date: 10/08/2003 21:05:09
>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
>Originator:     Quentin Garnier
>Release:        NetBSD 1.6ZC
Quentin Garnier - -
"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.
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
	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.
	Try compiling gwc-0.19-10.
	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.