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 -f Makefile.2nd all make[1]: Entering directory `/home/fredrigl/R-0.62.3' Building R cd src; make R make[2]: Entering directory `/home/fredrigl/R-0.62.3/src' Extracting foreign function symbols cd graphics; make make[3]: Entering directory `/home/fredrigl/R-0.62.3/src/graphics' make[3]: `../lib/libgraphics.a' is up to date. make[3]: Leaving directory `/home/fredrigl/R-0.62.3/src/graphics' cd nmath; make make[3]: Entering directory `/home/fredrigl/R-0.62.3/src/nmath' make[3]: `../lib/libmath.a' is up to date. make[3]: Leaving directory `/home/fredrigl/R-0.62.3/src/nmath' cd appl; make make[3]: Entering directory `/home/fredrigl/R-0.62.3/src/appl' make[3]: `../lib/libappl.a' is up to date. make[3]: Leaving directory `/home/fredrigl/R-0.62.3/src/appl' cd unix; make make[3]: Entering directory `/home/fredrigl/R-0.62.3/src/unix' make[3]: `../lib/libunix.a' is up to date. make[3]: Leaving directory `/home/fredrigl/R-0.62.3/src/unix' cd main; make 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' dqrdc.o(.text+0xc48): undefined reference to `dnrm2' ../lib/libappl.a(dqrdc2.o): In function `dqrdc2': dqrdc2.o(.text+0x98): undefined reference to `dnrm2' dqrdc2.o(.text+0x516): undefined reference to `dnrm2' ../lib/libappl.a(dqrdc2.o)(.text+0xa58): more undefined references to `dnrm2' follow make[3]: Leaving directory `/home/fredrigl/R-0.62.3/src/main' cd include; make make[3]: Entering directory `/home/fredrigl/R-0.62.3/src/include' Removing links in src/include Making include links make[3]: Leaving directory `/home/fredrigl/R-0.62.3/src/include' 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' dqrdc.o(.text+0xc48): undefined reference to `dnrm2' ../lib/libappl.a(dqrdc2.o): In function `dqrdc2': dqrdc2.o(.text+0x98): undefined reference to `dnrm2' dqrdc2.o(.text+0x516): undefined reference to `dnrm2' ../lib/libappl.a(dqrdc2.o)(.text+0xa58): more undefined references to `dnrm2' follow /usr/bin/install -c R.binary ../../bin /usr/bin/install: R.binary: No such file or directory make[3]: *** [install] Error 1 make[3]: Leaving directory `/home/fredrigl/R-0.62.3/src/main' make[2]: *** [R] Error 2 make[2]: Leaving directory `/home/fredrigl/R-0.62.3/src' make[1]: *** [R] Error 2 make[1]: Leaving directory `/home/fredrigl/R-0.62.3' make: *** [all] Error 2 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._