From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,df46b1f903222a2d X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-05-25 14:48:06 PST Path: bga.com!news.sprintlink.net!get.hooked.net!decwrl!pa.dec.com!src.dec.com!crl.dec.com!jac.zko.dec.com!hiyall.enet.dec.com!reagan From: reagan@hiyall.enet.dec.com (John R. Reagan) Newsgroups: comp.unix.osf.osf1 Subject: Re: FORTRAN executables not transportable? Date: 24 MAY 94 12:20:11 Organization: Digital Equipment Corporation Message-ID: <2rt9q8$qed@jac.zko.dec.com> References: <2rrht2$ijd@news.cuny.edu> NNTP-Posting-Host: HIYALL In article <2rrht2$ijd@news.cuny.edu>, jon@qcvaxa.acc.qc.edu (Jon Leong) writes... >In an attempt to take advantage of idle CPU cycles, I FTPed a FORTRAN >executable (a.out) from one Alpha OSF/1 system to another but it would >not run. The Alpha with the idle cycles does not have a F77 compiler. >That is why I was trying to deal with executables. > >The error message I got was: > > 375:a.out: /sbin/loader: Fatal Error: Main's RLD_VERSION is 3, > the correct version should be 1 > >Does this mean that FORTRAN executables are not transportable? It isn't just Fortran, but anything linked with shared libraries. OSF/1 is upwards compatable (ie, thinks built on older versions should run on newer versions), but not the other way around. It seems that the a.out you copied was built on a newer version of OSF/1 than the idle machine you are copying to. >It seems that the only way I can get an executable from an object file >is to use the command: > f77 prog.o > You can use ld, but you'll have to specify the libraries that the f77 command would have done. Go to the machine with f77 and use "-v" on an f77 command. You'll see how it invokes ld to convert the .o into an a.out. It should be something like: /usr/lib/cmplrs/cc/ld -g0 -O4 -call_shared /usr/lib/cmplrs/cc/crt0.o \ /usr/lib/cmplrs/fort/for_main.o prog.o -nocount -lUfor -lfor -lFutil -lm \ -lots -lc --- John Reagan The Languages Group Digital Equipment Corporation reagan@hiyall.enet.dec.com Disclaimer: The opinions and statements expressed by me are not necessarily those of Digital Equipment Corporation. ---