[R] R and OpenBSD

Ragnar Beer rbeer at uni-goettingen.de
Tue Jun 20 10:39:18 CEST 2000

Meanwhile I downloaded R-1.1.0.tgz and got the following error in the 
make step:

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

I also posted my question to the OpenBSD list and got this reply:

From: Marc Espie <Marc.Espie at liafa.jussieu.fr>
To: Ragnar Beer <rbeer at uni-goettingen.de>
Cc: misc at openbsd.org
Subject: Re: Compiling Linux programs under OpenBSD?
Mail-Followup-To: Ragnar Beer <rbeer at uni-goettingen.de>, misc at openbsd.org
Sender: owner-misc at openbsd.org
X-Loop: misc at 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.

Hope this helps...


>Ragnar Beer <rbeer at 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 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 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 at stat.math.ethz.ch

More information about the R-help mailing list