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

Charles C. Berry (cberry@tajo.ucsd.edu)
Fri, 14 Aug 1998 12:49:55 -0700

Message-Id: <35D494E3.7CEEE162@tajo.ucsd.edu>
Date: Fri, 14 Aug 1998 12:49:55 -0700
From: "Charles C. Berry" <cberry@tajo.ucsd.edu>
To: Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk>
Subject: Re: R-beta: ld problem/SunOS/gcc/g77

Peter Dalgaard BSA wrote:
>
> "Charles C. Berry" <cberry@tajo.ucsd.edu> writes:
>
> > 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
> ..
> > which I assume is due to some 'collision' of the various libraries supplied by R, gcc, g77, and Sun.
>
> Well, gamma and lgamma are indeed found in both -lm and in libmath.a,
> but that usually doesn't bother the linker. Is there anything peculiar
> about your setup, such as perhaps a very old gcc?
>

I am using:

g77-0.5.21 and gcc-2.7.2.2

-- 

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.