[R] Compiling on a Red Hat 5.1 system

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Fri Oct 16 15:27:34 CEST 1998


fredrigl at math.uio.no (Fredrik Glockner) writes:

> I'm feeling kinda stupid right now, but I'm actually having problems
> compiling R-0.62.3 on a Red Hat 5.1 Linux system.
> 
> I'd be happy if someone could point out for me where to look to fix the
> problem.  I've included the output from the compiling below.  Thanks for
> any help.
> 
> Fredrik

> make[3]: Entering directory `/home/fredrigl/R-0.62.3/src/main'
> f77 -export-dynamic -o R.binary 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 deparse.o deriv.o devices.o dotcode.o dstruct.o duplicate.o envir.o errors.o eval.o format.o fourier.o iosupport.o gram.o list.o logic.o main.o match.o memory.o model.o names.o objects.o optimize.o options.o par.o paste.o plot.o plot3d.o plotmath.o print.o printarray.o printvector.o printutils.o random.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 ../lib/libgraphics.a ../lib/libunix.a ../lib/libappl.a ../lib/libmath.a -lSM -lICE -L/usr/X11R6/lib -lX11  -lreadline -ldl -lncurses -lm 
> ../lib/libappl.a(uncmin.o): In function `bakslv':
> uncmin.o(.text+0x410): multiple definition of `bakslv'
> ../lib/libappl.a(bakslv.o):/home/fredrigl/R-0.62.3/src/appl/bakslv.c:31: first defined here
> ld: Warning: size of symbol `bakslv' changed from 120 to 338 in uncmin.o
> ../lib/libappl.a(dqrdc.o): In function `dqrdc':
> dqrdc.o(.text+0x3d6): undefined reference to `dnrm2'
> dqrdc.o(.text+0x6cf): undefined reference to `dnrm2'

Hmm, haven't seen that variant before... There really is a bakslv in
appl/bakslv.c and in appl/uncmin.f which looks a bit unhealthy, but on
my RedHats, they should generate distinct symbols.

Which f77 is that? The egcs one or an f2c wrapper script or something
completely different? 

You may want to try one of

a) make distclean ; ./configure --with-f2c ; make

b) make distclean ; LDCMD=gcc ./configure --with-g77 ; make

or modify config.site accordingly. Not sure whether you need to set
the LIBS to include -lf2c as well in the latter case.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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