R-alpha: dyn.load() problems

Gregory R. Warnes (warnes@biostat.washington.edu)
Thu, 5 Sep 1996 10:25:51 -0700 (PDT)


Date: Thu, 5 Sep 1996 10:25:51 -0700 (PDT)
From: "Gregory R. Warnes" <warnes@biostat.washington.edu>
To: r-testers <r-testers@stat.math.ethz.ch>
Subject: R-alpha: dyn.load() problems


Hi again.

I'm having problems using the demo files in $RHOME/demos/Dynload.dir with 
R 0.10 under Linux 2.0.13.

I edited the definition of SHLIBLDFLAGS to "-shared -assert pure-text" 
and ran make.  No errors were produced during compilation or linking.  
When I try to load the resulting zero.so file into R, this is what I get:

> dyn.load("zero.so")
/usr/local/R/bin/R.binary: can't resolve symbol 'call_S'
/usr/local/R/bin/R.binary: can't resolve symbol 'error'
/usr/local/R/bin/R.binary: can't resolve symbol 'error'
Error in dyn.load(paste(system("pwd", intern = T), x, sep = "/", collapse 
= "")) : Unable to resolve symbol>

Running "nm" on "/usr/local/R/bin/R.binary" shows that both call_S and 
error are defined there.

I also note that if I comment out the calls to call_S and error, it still 
does not work.  Then I get:
> dyn.load("zero.so")
> source("zero.R")
Error in .C("zero_find",  : C/Fortran function not in load table

Something seems to be wrong somewhere, what do I need to do to fix this?

Greg

-------------------------------------------------------------------------------
    Gregory R. Warnes          | It is high time that the ideal of success
warnes@biostat.washington.edu  |  be replaced by the ideal of service.
                               |                       Albert Einstein
-------------------------------------------------------------------------------


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-