R-beta: ld problem/SunOS/gcc/g77

Charles C. Berry (cberry@tajo.ucsd.edu)
Fri, 14 Aug 98 10:29:11 PDT

Date: Fri, 14 Aug 98 10:29:11 PDT
Message-Id: <9808141729.AA05527@tajo.UCSD.EDU>
From: "Charles C. Berry" <cberry@tajo.ucsd.edu>
To: r-help@stat.math.ethz.ch
Subject: R-beta: ld problem/SunOS/gcc/g77

In trying to compile R-0.62.2 on my SPARC SunOS:

tajo% uname -a
SunOS tajo 4.1.3_U1 1 sun4m

with gcc/g77,

I ran into

gcc -o R.binary [deleted] ../lib/libmath.a -L/usr/openwin/lib -lX11 -ldl -ltermcap -lm -lf2c
collect2: ld returned 2 exit status
ld: /lib/libm.a(lgamma.o): _gamma: multiply defined
ld: /lib/libm.a(lgamma.o): _lgamma: multiply defined
*** Error code 1
make: Fatal error: Command failed for target `R.binary'
Current working directory /usr/local/RHOME/R-0.62.2/src/main
[rest deleted]

which I assume is due to some 'collision' of the various libraries supplied by R, gcc, g77, and Sun.

I'm not very strong in sorting these things out and would appreciate
some guidance on what to change, what to check, where to look etc.

FWIW it returned the above message when I did nothing but issue
./configure and make, issued ./configure --with-g77, and when I did
the following in config.site:

.
.
.
R_PAPERSIZE=letter
CC=gcc
FC=g77
LDCMD=gcc
LIBS=-lf2c
.
.
.

TIA,

-- 

Charles C. Berry (619) 534-2098 Dept of Family/Preventive Medicine E mailto:cberry@tajo.ucsd.edu UC San Diego http://hacuna.ucsd.edu/members/ccb.html La Jolla, San Diego 92093-0622 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


This archive was generated by hypermail 1.02.