From ripley at stats.ox.ac.uk  Mon Feb  7 23:45:26 2011
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon, 7 Feb 2011 22:45:26 +0000 (GMT)
Subject: [Rd] R-devel on FreeBSD: Support for C99 complex type is
 required
In-Reply-To: <4D4EE672.6080601@gwdg.de>
References: <4D4EAFCE.6020004@gwdg.de>
	<alpine.LFD.2.00.1102061507430.15472@auk.stats.ox.ac.uk>
	<4D4ED172.9090402@gwdg.de>
	<alpine.LFD.2.00.1102061710320.22661@auk.stats.ox.ac.uk>
	<4D4EE672.6080601@gwdg.de>
Message-ID: <alpine.LFD.2.02.1102072237210.30160@gannet.stats.ox.ac.uk>

A follow-up on this.

Cygwin has recently[*] added support for C99 complex math, taken from 
NetBSD with code that is very similar to that from Steven Moshier 
available via http://www.moshier.net/c9x_readme.html.

That code isn't entirely right, especially not at the cuts on the 
inverse functions where C99 mandates what cut is used (and neither 
glibc nor Mac OS X have it correct).

I would expect that the current R-devel (I mean an SVN checkout now) 
should build on your platform, substituting the missing functions by 
ones based on earlier code.  There may be a few more tweaks required, 
but I have corrected several errors in the versions FreeBSD would have 
used in R 2.12.1.

[*] AFAICS not yet released in Cygwin, but in newlib 1.19.0.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] R-devel on FreeBSD: Support for C99 complex type is required
Prof Brian Ripley