From Kurt.Hornik@ci.tuwien.ac.at  Fri Jun 23 15:29:55 2000
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Fri, 23 Jun 2000 16:29:55 +0200 (CEST)
Subject: [Rd] Re: [R] R and OpenBSD
In-Reply-To: <Pine.GSO.4.05.10006201056320.23095-100000@auk.stats>
References: <p04320401b574dcb5f7c5@[134.76.136.114]>
 <Pine.GSO.4.05.10006201056320.23095-100000@auk.stats>
Message-ID: <14675.29795.986062.850729@aragorn.ci.tuwien.ac.at>

>>>>> Prof Brian D Ripley writes:

> On Tue, 20 Jun 2000, Ragnar Beer wrote:
>> Meanwhile I downloaded R-1.1.0.tgz and got the following error in the 
>> make step:

> Could you please not send such messages (twice as far as I can see)
> personally to members of R-core.  I am not the right persion for this
> error, and in general posting to R-devel is encouraged as it gets a
> wider pool of experts.

> I think you can solve this by undefining HAVE_MATHERR in
> config.h. Your correspondent's analysis seems wrong in detail to me:
> configure does not look in libm.a directly.

> I suspect we need a more elaborate test for MATHERR_BROKEN, but as I
> said, I am not the configure specialist.

Has anyone encountered a similar problem with matherr() on OpenBSD?
If so, can anyone recommend a test for matherr() to be broken?

-k

>> 
>> -----snip-----
>> making util.d from util.c
>> making version.d from version.c
>> gcc -I. -I../../src/include -I../../src/include 
>> -I../../src/include/R_ext -I/usr/local/include -DHAVE_CONFIG_H 
>> -mieee-fp  -g -O2 -c apply.c -o apply.o
>> gcc -I. -I../../src/include -I../../src/include 
>> -I../../src/include/R_ext -I/usr/local/include -DHAVE_CONFIG_H 
>> -mieee-fp  -g -O2 -c arithmetic.c -o arithmetic.o
>> arithmetic.c:48: warning: `struct exception' declared inside parameter list
>> arithmetic.c:48: warning: its scope is only this definition or 
>> declaration, which is probably not what you want.
>> arithmetic.c: In function `matherr':
>> arithmetic.c:50: dereferencing pointer to incomplete type
>> arithmetic.c:59: dereferencing pointer to incomplete type
>> arithmetic.c:53: warning: unreachable code at beginning of switch statement
>> *** Error code 1
>> 
>> Stop in /home/rbeer/src/R-1.1.0/src/main.
>> *** Error code 1
>> 
>> Stop in /home/rbeer/src/R-1.1.0/src/main (line 131 of Makefile).
>> *** Error code 1
>> 
>> Stop in /home/rbeer/src/R-1.1.0/src (line 21 of Makefile).
>> *** Error code 1
>> 
>> Stop in /home/rbeer/src/R-1.1.0 (line 42 of Makefile).
>> -----snip-----
>> 
>> I also posted my question to the OpenBSD list and got this reply:
>> 
>> -----snip-----
>> From: Marc Espie <Marc.Espie@liafa.jussieu.fr>
>> To: Ragnar Beer <rbeer@uni-goettingen.de>
>> Cc: misc@openbsd.org
>> Subject: Re: Compiling Linux programs under OpenBSD?
>> Mail-Followup-To: Ragnar Beer <rbeer@uni-goettingen.de>, misc@openbsd.org
>> Sender: owner-misc@openbsd.org
>> X-Loop: misc@openbsd.org
>> 
>> I've looked, briefly. Its configure trips up on matherr. Specifically, it
>> only does a nm libm.a, finds matherr, and assumes it works. Unfortunately,
>> OpenBSD namespace is not squeaky clean (yet), and matherr is a private
>> function of libm: no user-visible prototype, no declaration of struct
>> exception, and hence failure.
>> -----snip-----
>> 
>> Hope this helps...
>> 
>> 
>> --Ragnar
>> 
>> 
>> >Ragnar Beer <rbeer@uni-goettingen.de> wrote:
>> >
>> >>  Has anybody successfully installed R under OpenBSD? I just tried to
>> >>  install the latest R-release under OpenBSD 2.7 and got the following
>> >>  errors in the make step:
>> >>  pnorm.c:62 'ML_ERR_return_NAN' undeclared
>> >>  pnorm.c:62 'ML_NAN' undeclared
>> >>  pnorm.c:62 'ML_NEGINF' undeclared
>> >
>> >The file pnorm.c is out-of-date in the current R-release.tar.bz2 (but not
>> >in the cvs archive). Please try R-1.1.0.tgz instead, or at least copy
>> >src/nmath/pnorm.c from R-1.1.0.tgz onto your unpacked copy of R-release.
>> >
>> >--
>> >Brian D. Ripley,                  ripley@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 272860 (secr)
>> >Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>> 
>> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
>> Send "info", "help", or "[un]subscribe"
>> (in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
>> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>> 

> -- 
> Brian D. Ripley,                  ripley@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 272860 (secr)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Re: [R] R and OpenBSD
Kurt Hornik