R-alpha: dyn.load on Linux machines

Robert Dunne (dunne@yarra.vut.edu.au)
Fri, 7 Jun 96 19:38:03 EST

Date: Fri, 7 Jun 96 19:38:03 EST
Message-Id: <9606070938.AA17765@yarra.vut.edu.au>
From: Robert Dunne <dunne@yarra.vut.edu.au>
To: r-testers@stat.math.ethz.ch
Subject: R-alpha: dyn.load on Linux machines 

hi all,
      does R support dyn.load on Linux machines?

adding the compiler flags  -DDLSupport and -ldl to the Linux
configuration file (src/System/Linux) allows R to
load an object -- however the following error occurs in
the dynload demo,

> dyn.load("zero.so")
> source("zero.R")
Error in .C("zero_find",  : C/Fortran function not in load table.

This would tend to indicate that dyn.load  doesn't work yet on Linux
machines. However in the file dotcode.c (where do_dynload is defined)
it says 
    /* This code was developed */
        /* on ELF-Linux. */
indicating that it probably is working. 
Does anyone know anything about this?

						rob dunne

PS.  I compiled zero.so with the commands
       gcc -fpic -c zero.o
       ld -shared -o zero.so zero.o 
     in case this is where the problem is.

* Rob Dunne  
* Victoria University of Technology , Footscray Campus      
* Department of Computer and Mathematical Sciences                
* P.O. 14428, MCMC.                   Fax:   +61 3 9688 4050  
* MELBOURNE 8001, AUSTRALIA           Tel:   +61 3 9688 4757   
*                                 Email: dunne@matilda.vut.edu.au
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