Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Mar 2000 22:30:26 -0500
From:      Randall Hopper <aa8vb@ipass.net>
To:        stable@freebsd.org
Subject:   Compiling FORTRAN code on -stable
Message-ID:  <20000326223026.A46836@ipass.net>

next in thread | raw e-mail | index | archive | help
I'm trying to build a fluid dynamics library on FreeBSD, and I'm getting
repeated occurrances of this compiler error in many FORTRAN source files:

    Error on line 5 of tst.f: Statement order error: declaration after DATA

As a visual aid, here's a short sample that produces this error:

                SUBROUTINE XMDF2T(APARM)
                IMPLICIT DOUBLE PRECISION(A)
                INTEGER  INT1
                DATA FR/0D0/
                INTEGER  INT2
          99998 END
        and compile using "f77 -c tst.f":

Apparently f77 compilers will eat this, but our f77 (from bin or ports)
will not.

Any FORTRAN folks out there that know how to get around this?
(there are close to 100 files with this problem.)

Thanks,

Randall


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000326223026.A46836>