[R] Compiling R for MacOS X / shared libraries

Harald Binder harald.binder at web.de
Thu Dec 7 07:58:12 CET 2000


Hi,

I just try to compile R (1.1.1) for MacOS X (using the --without-X option as X stuff won't work here)

It seems that there are some problems with 'shared libraries'.

'./configure' printed:
checking how to deal with shared libraries... /usr/X11R6/bin/xmkmf: command not found: imake [56]

'make' ran into trouble with this:
cc -I. -I../../src/include -I../../src/include -I../../src/include/R_ext -I/usr/local/include -DHAVE_CONFIG_H   -g -O2 -c platform.c -o platform.o
platform.c:38: parse error before `.'
make[3]: *** [platform.o] Error 1

after I changed in 'platform.c' the line:
static char *R_DynLoadExt = DYNLOADEXT;
to
static char *R_DynLoadExt = "";/*DYNLOADEXT;*/

the make process got a little bit further until:

cc   -o ../../bin/R.bin apply.o arithmetic.o array.o attrib.o bind.o builtin.o character.o coerce.o colors.o complex.o context.o cov.o cum.o debug.o devPS.o devPicTeX.o deparse.o deriv.o devices.o dotcode.o dstruct.o duplicate.o envir.o errors.o eval.o format.o fourier.o g_her_glyph.o g_fontdb.o g_cntrlify.o g_alab_her.o gram.o gram-ex.o graphics.o iosupport.o list.o logic.o main.o match.o memory.o model.o names.o objects.o optim.o optimize.o options.o par.o paste.o platform.o plot.o plot3d.o plotmath.o print.o printarray.o printvector.o printutils.o random.o RNG.o regex.o relop.o saveload.o scan.o seq.o sort.o source.o split.o subassign.o subscript.o subset.o summary.o unique.o util.o version.o xxxpr.o ../unix/libunix.a ../appl/libappl.a ../nmath/libmath.a -L/usr/local/lib  -lncurses  
/usr/bin/ld: Undefined symbols:
_i_len
_d_sign
make[3]: *** [../../bin/R.bin] Error 1

Here I didn't manage to make changes the would let me go on (e.g. I looked for configure-switches for shared libraries, which could be somehow responsible for the problems, but I couldn't find anything appropriate)

Has anybody suggestions what I could do to that problem?

Thank you!

Harald
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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