[comp.sys.sun] Sun Fortran 1.1 problem

dan@bbn.com (Dan Franklin) (11/02/90)

I had this problem too (undefined references to "_units" when using f77).
It looks like someone at Sun went through libI77.a and changed all
occurrences of the C symbol "units" to "_units" (including its
definition), but neglected to make the same change in libU77.a, where
"system" and "fork" are defined, so any calls to those Fortran library
routines trigger this problem.

Fortunately "units" didn't have anything important in it, it appears;
providing a fake version works just fine, at least for me.  I declare

	long units[100];

but I believe this is overkill; just

	long units;

ought to work as well.  However, I do not do anything sophisticated with
Fortran I/O units (my guess as to the meaning of this variable); if you
do, you may see odd behavior.

	Dan Franklin