[Rd] OpenBSD-alpha and R-1.7.1 problem

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jul 30 11:30:04 MEST 2003


On 29 Jul 2003, Peter Rye wrote:

> I'm trying to get R running on OpenBSD/alpha.
> 
> I've applied some configure patches which I've previously sent to the
> R-devel list to allow R to compile on an OpenBSD ELF platform (which
> OpenBSD/alpha is, as the i386 port soon will be).
> 
> The patched source compiles without problems, and appears to run and
> perform properly apart from two (possibly unrelated) problems.
> 
> 1) On startup there are complaints about mismatched symbol sizes (see
>    below). This error message comes from the OpenBSD ld.so, and doesn't
>    occur on OpenBSD/i386.
> 
>    On further investigation this seems to occur when the modreg and ts
>    packages are loaded together. In both packages, the R_*MethodDef arrays
>    are declared globally rather than "static const". Changing these
>    declarations to static const results in the warning disappearing. I
>    think this is *probably* a correct fix. Am I missing something or am I
>    talking/writing garbage. The patch is straightforward, I can send it to
>    one of you if you wish - then again perhaps it's not the right fix.

It's OK for those arrays to be static, and I am adding that to places 
where they are not (modreg, tools, ts)


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



More information about the R-devel mailing list