Re: [R] R and Fortran

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed, 11 Jun 2008 21:37:08 +0100 (BST)

Are you serious, reporting on a 2004 version of R? Please do as the posting guide requested, and update your R. (Only posting one copy is also appreciated around here.)

Beyond that, normally foo.o is not a shared library but a compiled object. You have not told us what you did, and probably the issue is that you don't know how to make a shared library from Fortran. Please ask your IT advisers about that (and hint, R CMD SHLIB may help you).

On Wed, 11 Jun 2008, Derrick Lee wrote:

> Dear Fellow R-Users,
>
> I am having some difficulties loading a Fortran subroutine into R and
> wondering if anyone could lend me some insight to this problem. When I load
> some simpler Fortran codes into R, it loads fine, but when I load more
> complex codes I get the following error:
>
> Error in dyn.load(x, as.logical(local), as.logical(now)) :
> unable to load shared library
> "/nfs/home/grad/d.lee/Testing/chol.o":
> ld.so.1: R: fatal: relocation error: file
> /nfs/home/grad/d.lee/Testing/chol.o: symbol s_wsle: referenced symbol not
> found
>
> From what I have gathered, it appears to be a problem when with linking the
> library to the Fortran system library, but I am unsure how to deal with this.
> The current 32-bit machine that runs R is:
>
> platform sparc-sun-solaris2.8
> arch sparc
> os solaris2.8
> system sparc, solaris2.8
> status
> major 2
> minor 0.1
> year 2004
> month 11
> day 15
> language R
>
> Any help to this query would be very much appreciated. Cheers.
>
>
> Sincerely
>
> - Derrick
>
>
> Derrick Lee, MSc Candidate
> Department of Statistics
> The University of British Columbia
> LSK-314A | 604 - 822 - 1299 x532
> d.lee at stat dot ubc dot ca | dgylee at mun dot ca
> www.stat.ubc.ca/~d.lee/ | www.math.mun.ca/~derrick0/

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

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 11 Jun 2008 - 21:27:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 11 Jun 2008 - 21:31:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive