NetBSD Problem Report #48751

From www@NetBSD.org  Wed Apr 16 21:31:18 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 229BCA580B
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 16 Apr 2014 21:31:18 +0000 (UTC)
Message-Id: <20140416213117.2505FA5836@mollari.NetBSD.org>
Date: Wed, 16 Apr 2014 21:31:17 +0000 (UTC)
From: dennis.c.ferguson@gmail.com
Reply-To: dennis.c.ferguson@gmail.com
To: gnats-bugs@NetBSD.org
Subject: lrintl() and llrintl() missing from libm
X-Send-Pr-Version: www-1.0

>Number:         48751
>Category:       lib
>Synopsis:       lrintl() and llrintl() missing from libm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 16 21:35:00 +0000 2014
>Originator:     Dennis Ferguson
>Release:        6.99.40
>Organization:
none at all
>Environment:
NetBSD b1.to.mistimed.ca 6.99.40 NetBSD 6.99.40 (GENERIC) #0: Sat Apr  5 14:41:28 EDT 2014  dennis@b1.to.mistimed.ca:/build/amd64/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
The C99 functions lrintl() and llrintl() are missing from the math library.
>How-To-Repeat:
Compile the following with 'cc -o mtry mtry.c -lm' and note
that the loader fails to find the functions.

The functions are also omitted from the lrint(3) man page.

/* mtry.c */
#include <stdlib.h>
#include <stdio.h>
#include <math.h>

int
main (int argc, char * const * argv)
{
        char *ep;

        printf("%ld\n", lrintl(strtold(argv[1], &ep)));
        printf("%lld\n", llrintl(strtold(argv[1], &ep)));
        return (0);
}


>Fix:

NetBSD Home
NetBSD PR Database Search

(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.