[5755] in Athena Bugs
decmips 7.1D: DECstation f77 version mismatch
daemon@ATHENA.MIT.EDU (Chris Craig)
Fri Aug 17 15:47:33 1990
To: bugs@ATHENA.MIT.EDU
Date: Fri, 17 Aug 90 15:47:13 EDT
From: Chris Craig <crcraig@ATHENA.MIT.EDU>
System name: REPOMAN
Type and version: KN01 7.1D
Display type: PM-MONO
What were you trying to do?
---------------------------
Attempted to link an f77 object file with the fortran libraries
libF77.a, libI77.a, and libU77.a.
What's wrong:
-------------
Several symbols generated by f77 were listed as undefined, and ld
warned that the f77 object files had a different version number. The
symbols should have been found in the fortran libraries listed above.
The symbols were generated by f77 version 2.1. The f77 libraries are
version 1.31, as is ld. Apparently, some of the symbol names have
changed. See below for a listing of the relevant files and version
numbers.
What should have happened:
--------------------------
It should have compiled without any warnings or undefined symbols.
The libraries (and ld) should be the same version as f77.
Please describe any relevant documentation references:
------------------------------------------------------
% where ld
/bin/ld
/usr/bin/ld
% ls -asl /bin/ld
1 lrwxr-xr-x 1 root 13 Oct 30 1989 /bin/ld@ -> ../usr/bin/ld
% ls -asl /usr/bin/ld*
1 lrwxr-xr-x 1 root 6 Jun 27 17:01 /usr/bin/ld@ -> ld1.31
208 -rwxr-xr-x 1 root 212992 Dec 30 1988 /usr/bin/ld1.31*
1 lrwxr-xr-x 1 root 22 Aug 3 11:27 /usr/bin/ld2.1@ -> ../lib/cmpl
--------------
% where f77
/usr/bin/f77
% ls -asl /usr/bin/f77*
1 lrwxr-xr-x 1 root 6 Aug 3 11:27 /usr/bin/f77@ -> f772.1
1 lrwxr-xr-x 1 root 26 Aug 3 11:27 /usr/bin/f772.1@ -> ../lib/cmplrs/cc2.1/driver
-------------
% ls -asl /usr/lib/libF77*
1 lrwxr-xr-x 1 root 12 Jun 27 18:53 /usr/lib/libF77.a@ -> libF77.a1.31
175 -rwxr-xr-x 1 root 178224 Dec 30 1988 /usr/lib/libF77.a1.31*
------------------------------------
[My session]
[/mit/10.001/Pplot.New/Dev/Build/mips] (crcraig@REPOMAN: 3:43pm)
% make Xpplot
cc -L/mit/motif/decmipslib -L/mit/atdev/decmipslib -o Xpplot xpplot.o fpplot.odpplot.o mpplot.o postpplot.o color.o pplot.o fontdata.o -lAt -lMu -lXm -lXt -lX11 -lF77 -lI77 -lU77 -lm43
ld:
pplot.o: version stamp: 2.10, does not match ld's: 1.31
fontdata.o: version stamp: 2.10, does not match ld's: 1.31
Undefined:
f_open0
sqrtf
atan2f
cosf
sinf
flog
s_abort