NetBSD Problem Report #53234

From www@NetBSD.org  Mon Apr 30 03:05:44 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 1B4857A18B
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 30 Apr 2018 03:05:44 +0000 (UTC)
Message-Id: <20180430030543.01F957A214@mollari.NetBSD.org>
Date: Mon, 30 Apr 2018 03:05:42 +0000 (UTC)
From: bruce.lilly@gmail.com
Reply-To: bruce.lilly@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Several C99 long double functions missing from math library
X-Send-Pr-Version: www-1.0

>Number:         53234
>Category:       lib
>Synopsis:       Several C99 long double functions missing from math library
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 30 03:10:00 +0000 2018
>Originator:     Bruce Lilly
>Release:        7.1.2
>Organization:
none
>Environment:
NetBSD z400a.blilly.net 7.1.2_PATCH NetBSD 7.1.2_PATCH (GENERIC) #0: Sun Apr  1 02:21:19 EDT 2018  root@e2500sa.blilly.net:/usr/obj/sys/arch/amd64/compile/GENERIC amd64 x86_64 Intel 686-class NetBSD
>Description:
Verified on i386 and amd64 ports.

The math lib is missing many long double C99 functions.
This is not intended to be an exhaustive list, but documents those found to be missing while attempting to build ksh93.

# ls -l /usr/lib/libm.a /lib/libm.so.0.*                                                                                                                         
-r--r--r--   1 root     wheel     174260 Mar 15 14:12 /lib/libm.so.0.11                                                                                                                                                       
-r--r--r--   1 root     wheel     432856 Mar 15 14:12 /usr/lib/libm.a

# nm /lib/libm.so.0.11 /usr/lib/libm.a | egrep "erfl|erfcl|expm1l|lgamma1|logpl|log2l|remainderl|tgammal|nexttowardl"      
#

nexttowardl (unless I'm misreading C99) could be implemented by calling nextafterl.
>How-To-Repeat:
See description.
>Fix:
See description for nexttowardl.
Others require implementation of the respective functions.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.