[prog] compiling (or failing to) old fortran on linux
Conor Daly
c.daly at met.ie
Tue Sep 7 14:54:23 EST 2004
Hi all,
I have a (biggish) number of fortran programs on a solaris machine that I
want to compile on a linux system. There is the added complication of some
embedded SQL routines so a precompiler parses the fortran first. The
sequence of the solaris machine is:
esqlc <source>.sf
(produces <source>.f
f77 -fast -xO5 <source>.f /users/ingres/lib/*.a -lelf -lm -lnsl -lsocket
and all works fine. However, when I try to compile on an RH9 box using:
esqlc <source>.sf
(produces <source>.f
g77 $user.f -L${II_SYSTEM}/ingres/lib -lingres -lm -ldl -lrt
I get the following errors:
type 935,razer
^
Unsupported VXT statement at (^)
2027 format (x,i2,i10,i10,' Smd:',i7,' ','Diff: ',i5,
^
Invalid X specifier in FORMAT statement at (^) -- correct form: nX
if((ans.eq.'n').or.(ans.eq.'N')) then
1 2
Equality operator at (1) must operate on two scalar (not array)
subexpressions, two function invocations returning arithmetic or character
scalars, or a combination of both -- but the subexpression at (2) is an
array
if (zwdif.lt.0) signw = '-'
1 2
Type disagreement between expressions at (1) and (2)
Does anyone know the correct switches for g77 to make this stuff compile?
(-fvxt -fvxt-intrinsics-enable) doesn't seem to make a difference...
Thanks,
Conor
--
Conor Daly, Please avoid sending me
Met Eireann, Glasnevin Hill, Word or PowerPoint attachments.
Dublin 9, Ireland http://www.fsf.org/philosophy/no-word-attachments.html
Ph +3531 8064276 Fax +3531 8064247
**********************************************************************
This e-mail and any files transmitted with it are confidential
and intended solely for the addressee. If you have received
this email in error please notify the sender.
This e-mail message has also been scanned for the
presence of computer viruses.
**********************************************************************
More information about the Programming
mailing list