System calls in SunFortran 1.1 under SunOS4.0?

Daniel Phaneuf phaneuf at ireqs3.UUCP
Wed Nov 23 13:00:42 AEST 1988


I wonder if anyone could help me with the following "known" problem.  We
are porting all our software written in Fortran on a new SUN 4/280 running
SunOS 4.0 and there seems to be no way to make system calls!!!

Try to compile the following fortran program:

	program test
	call system('pwd')
	stop
	end

and then f77 test.f, you will get the following error message:

		test.f
		 MAIN test:
		ld: Undefined symbol 
		   _units

Is there a patch out there for the libU77.a or is there a way to define
_units. I tried to define it in a small c program and it worked properly
but we have tried it with a more complex program and it blows up at
execution time.

I don't understand how a company like Sun Microsystems can release such an
incomplete product without even testing it.

Note: This problem is known and documented in the Software Technical
      Bulletin of September 1988 page 1875 but there is no work around. 

I have also called the Sun Hotline in California but I am still waiting
for them to reply.

Thanks in advance,

   Daniel Phaneuf,
   Institut de Recherche d'Hydro-Quebec, (Hydro-Quebec Research Institute)
   1800   Montee  Ste-Julie,   Varennes,   P. Quebec,   Canada,   J0L 2P0
   Tel.:   514-652-8074           Fax.:  514-652-8180
UUCP:   ...ireqs3!phaneuf 
      phaneuf at ireqs3.uucp



More information about the Comp.sys.sun mailing list