[R] Compiling R for MacOS X / shared libraries

Kurt Hornik Kurt.Hornik at ci.tuwien.ac.at
Thu Dec 7 19:49:40 CET 2000


>>>>> Harald Binder writes:

> 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]

That appears to be a problem with your installation.  xmkmf requires
imake.

> '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;*/

DYNLOADEXT should be defined using SHLIB_EXT which is determined by the
configure code that gave the above error.  What would be the right
extension for shared libraries on your system?

> 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)

That I think indicates that the necessary Fortran libraries were not
determined.  

> Has anybody suggestions what I could do to that problem?

Can you send me the files config.log and config.cache you obtained by
running configure?

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