Skip to content

Compiling under Digital Unix

3 messages · Douglas Bates, Peter Dalgaard

#
I tried a compilation of R-0.62.1 on a DEC Alpha that identifies
itself as
 Digital UNIX V4.0A  (Rev. 464); Thu May 14 14:08:00 CDT 1998 
 $ uname -a
 OSF1 atlas.stat.wisc.edu V4.0 464 alpha

I got to the final link step then got an error with 
 gcc -ieee_with_inexact -g -O2 -I../include -c version.c
 f77  -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/s/X11R6.3-1/lib -lX11 -ldnet_stub -ltermcap -lm 
 ld:
 ../lib/libunix.a(system.o): main: multiply defined
 fort: Severe: Failed while trying to link.

Is anyone familiar enough with Digital Unix to decide why it is
defining main in unix/system.o.  I checked and the symbol is indeed
defined there.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk> writes:
Of course.  My brain is not functioning it seems.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Douglas Bates <bates@stat.wisc.edu> writes:
We *always* define main there... However, we do not generally use f77
to link, so my guess would be that the Fortran compiler supplies a
main() of its own. So perhaps you need to link with (g)cc and add in
some Fortran libraries?