R-beta: Shared libraries on AIX

Fredrik Glockner fredrigl at math.uio.no
Mon Nov 17 13:44:31 CET 1997


I've installed R on AIX.  For starters, this did not work out of the
box.  I got the following error message:

        cd graphics; make
        gcc -g -I../include -c gdevice.c
In file included from /usr/include/sys/lockf.h:41,
                 from /local/gnu/lib/gcc-lib/rs6000-ibm-aix4.1.3.0/2.7.2.1/include/unistd.h:354,
                 from /usr/include/fcntl.h:156,
                 from ../include/Defn.h:54,
                 from gdevice.c:20:
/usr/include/sys/stat.h:92: parse error before `blkcnt_t'
/usr/include/sys/stat.h:92: warning: no semicolon at end of struct or union
/usr/include/sys/stat.h:107: parse error before `}'
make: 1254-004 The error code from the last command is 1.

Now, I commented out the line `#include <fcntl.h>' in `Defn.h', and
the compiling went fairly smooth.  That is, I got the following error
message:

        gcc -g -fpic -I/usit/spfs/math-u1/fredrigl/R-0.50-a4/include -c hclust.c
ld: 0711-327 WARNING: Entry point not found: __start
ld: 0711-244 ERROR: No csects or exported symbols have been saved.
make: 1254-004 The error code from the last command is 8.


Next, I want to dynamically load some shared libraries.  This is what
I do:

sp09 69>gcc -c -shared -o ar1sim.so ar1sim.c
sp09 70>R

R : Copyright 1997, Robert Gentleman and Ross Ihaka
Version 0.50 Alpha-4 (September 10, 1997)

> dyn.load("ar1sim.so")
Error in dyn.load(x) : unable to load shared library "/usit/spfs/math-u1/fredrigl/R/ar1sim.so"


Do anybody know what is wrong?  I would be very happy to find out.

Fredrik
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=---
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=---



More information about the R-help mailing list