R and Fortran
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