From owner-freebsd-stable Sun Mar 26 19:27:52 2000 Delivered-To: freebsd-stable@freebsd.org Received: from charon.ipass.net (charon.ipass.net [198.79.53.8]) by hub.freebsd.org (Postfix) with ESMTP id BD37537BAE4 for ; Sun, 26 Mar 2000 19:27:48 -0800 (PST) (envelope-from rhh@ipass.net) Received: from stealth.ipass.net. (ppp-1-253.dialup.rdu.ipass.net [209.170.132.253]) by charon.ipass.net (8.9.3/8.9.3) with ESMTP id WAA00040 for ; Sun, 26 Mar 2000 22:27:46 -0500 (EST) Received: (from rhh@localhost) by stealth.ipass.net. (8.9.3/8.8.8) id WAA47105 for stable@freebsd.org; Sun, 26 Mar 2000 22:30:26 -0500 (EST) (envelope-from rhh) Date: Sun, 26 Mar 2000 22:30:26 -0500 From: Randall Hopper To: stable@freebsd.org Subject: Compiling FORTRAN code on -stable Message-ID: <20000326223026.A46836@ipass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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