From p.dalgaard@biostat.ku.dk  Wed Mar 29 14:20:30 2000
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 29 Mar 2000 15:20:30 +0200
Subject: [Rd] Porting R
In-Reply-To: "G. Sawitzki"'s message of "Wed, 29 Mar 2000 14:27:58 +0200"
References: <v03110700b507a5de3db8@[129.206.113.239]>
Message-ID: <x2n1nhq5ep.fsf@blueberry.kubism.ku.dk>

"G. Sawitzki" <gs@statlab.uni-heidelberg.de> writes:

> I am trying to get R 1.0 running on the Mac.
.......
> The libraries give some problems, presumably due to handling of shared
> libraries. It seems I am missing something to link. Before I spend my time
> hunting it down, maybe someone has an immediate idea.
......
> make[4]: Entering directory `//local.src/R-1.0.0/src/library/ctest/src'
> gcc -shared -Xlsharedlibrary -Xlexpall  -o ctest.so alnorm.o ansari.o
> fexact.o kendall.o
>  ks.o prho.o swilk.o  -L/usr/lib/gcc-lib/powerpc-apple-machten4/2.8.1 -lg2c -lm
> ansari.o: In function `errmsg':
> ansari.c:13: undefined reference to `Rf_error'
> ansari.o: In function `w_init':
> ansari.c:21: undefined reference to `R_chk_calloc'

Hi Gunther,

I don't know whether it helps, but those unresolved references are
supposed to be there (they point to items in the main R binary) and be
resolved at dyn.load time. That is usually allowed when using the
-shared switch to gcc, although some systems (notably AIX and Win32)
require you use an explicit import library generated from the R
binary.

	-p

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Porting R
Peter Dalgaard BSA