R-alpha: R compilation

Woodrow Setzer (wsetzer@mindspring.com)
Tue, 31 Dec 1996 07:34:24 -0500 (EST)


Date: Tue, 31 Dec 1996 07:34:24 -0500 (EST)
From: Woodrow Setzer <wsetzer@mindspring.com>
To: r-testers@stat.math.ethz.ch
Subject: R-alpha: R compilation

I recently compiled version 0.15 of R under Solaris 2.3, using gcc version
2.7.2.f.1.  I used configure, and had to change two things to make the code
compile:

1)  gcc complained about the symbol llabs being redefined in plot.c (in
src/main).  llabs is also defined in stdlib, in a block declaring some
functions for the "long long" type.  I got around this by adding
"-D_NO_LONGLONG" to CFLAGS.

2) SHLIBLDFLAGS includes the flag "-M mapfile".  Under Solaris 2.3, this flag
means that ld is expecting to open a file of directives to ld called
"mapfile".  It is apparently a fatal error if the file does not exist.  This
error resulted in an inability to link "eda.so".  The error went away when I
deleted the flag.  SHLIBLDFLAGS also turns up in the Makefile for the dynamic
loading example.

--
Woody Setzer
wsetzer@mindspring.com


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-