[R] R and Fortran

From: Derrick Lee <d.lee_at_stat.ubc.ca>
Date: Mon, 09 Jun 2008 15:44:27 -0700


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. As well, I was wondering why I am unsuccessful loading those same "successful" codes when I go from a 32-bit machine to a 64-bit machine, why does that cause such a big issue? 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 these queries would be very much appreciated. Cheers.

Sincerely

 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/



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:23:58 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