*BSD News Article 92502


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!serv.hinet.net!news.uoregon.edu!cyclic.gsl.net!news.gsl.net!news.mathworks.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!uunet!in3.uu.net!128.138.240.25!boulder!rintintin.Colorado.EDU!fcrary
From: fcrary@rintintin.Colorado.EDU (Frank Crary)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Fortran on FreeBSD
Date: 1 Apr 1997 16:28:39 GMT
Organization: University of Colorado, Boulder
Lines: 28
Message-ID: <5hrd3n$58n@lace.colorado.edu>
NNTP-Posting-Host: rintintin.colorado.edu
NNTP-Posting-User: fcrary
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:38203

Does anyone know where I can find a good fortran compiler for FreBSD
(v. 2.1.5 if that matters)? g77 seems to object to some variable
declarations and uses of the save command. Using f2c to convert
to c isn't as useful to me, since it would require rewriting the make
files, and even so, I'm hitting the known bug reported in the man
page:
Untypable EXTERNAL functions are declared int.
(That is, one of the routines calls a function from a library which
returns logical, but since it isn't declared as logical in the
routine, f2c assumes that it's an int, and gives an error when
the function is used in an if statement...)
So I'm wondering if there are any fortran compilers around, other
than those in the 2.1.5 distribution.

(Please don't give me grief about asking for a "good fortran compiler":
I know that's a contradiction, and I wish the code were in c. But
I'm trying to install a package someone else wrote, and I don't feel
like rewriting 2.6 meg of code in c.)

                                                     Frank Crary
                                                     CU Boulder

PS: There is a minor bug in the 2.1.5 distribution of g77. It 
uses something called "f771", which the 2.1.5 installation software
puts in /usr/local/libexec. g77 can't find it there, and the easiest
solution I've found is to put a symbolic link in /usr/local/bin.

                                                      FJC