From beebe at math.utah.edu  Tue Aug 26 01:12:29 2003
From: beebe at math.utah.edu (beebe@math.utah.edu)
Date: Tue Aug 26 00:12:09 2003
Subject: [Rd] Re: R 1.7.x and inaccurate log1p() on OpenBSD 3.2 and NetBSD
	1.6 (PR#3984)
Message-ID: <200308252212.h7PMCTJH004447@pubhealth.ku.dk>

Ray Brownrigg <ray@mcs.vuw.ac.nz> writes today about the log1p()
problems on NetBSD 1.6 and OpenBSD 3.2:

>> Indeed, but since I have acess to a NetBSD developer, this is an
>> opportunity to get it fixed for everyone.

That's a start, but the reality is that it isn't enough.  There will
be many sites that don't upgrade O/S versions except at possibly very
long intervals.  Look at how many sites remain vulnerable to worms and
virus months and years after critical security patches have been
announced by vendors.  Also, many customers find themselves locked in
at particular O/S versions because of critical installed third-party
applications that are not available on newer O/S releases.

>> I have further discovered that the static library libm.a does work.

It does not on my systems: I just tried

	% cc bug-log1p.c /usr/lib/libm.a && ./a.out

on both NetBSD 1.6 and OpenBSD 3.2, and got incorrect output on both.

I wonder whether your NetBSD system has been patched locally?  The log
of changes between NetBSD 1.6 and 1.6.1 at

	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.1/CHANGES-1.6.1

contains no mention of either log1p() or libm.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- Center for Scientific Computing       FAX: +1 801 581 4148                  -
- University of Utah                    Internet e-mail: beebe@math.utah.edu  -
- Department of Mathematics, 110 LCB        beebe@acm.org  beebe@computer.org -
- 155 S 1400 E RM 233                       beebe@ieee.org                    -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -


[Rd] Re: R 1.7.x and inaccurate log1p() on OpenBSD 3.2 and NetBSD 1.6 (PR#3984)
beebe@math.utah.edu