[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UDUNITS #FLZ-896534]: compilation errors for udunits.inc on SUN with f90



Steve,

[I'm at the AGU this week, so support might suffer.]

> I am trying to compile PSD's readgeneral.f program (for netcdf, udunits)
> with a new installation of netcdf and udunits on a SUN OS 5.10
> (details below)
> 
> udunits.inc has #directives so I renamed readgeneral.f to
> readgeneral.F

That should get f90(1) )to preprocess the input file using the C preprocessor.

> and
> used
> f90 -l netcdf -ludunits read*F
> 
> I get compilation errors below.  Any suggestions?
> 
> THanks,
> Steve
> 
> :
> 
> $ f90  read*cdrgsun.F
> 
> #define UD_POINTER      integer*4
> ^
> "/usr/local/udunits/include/udunits.inc", Line = 25, Column = 1:
> ERROR: The characters found in the label field are not valid.

It looks like f90(1) *didn't* preprocess the input file. Is there an option to 
f90(1) to force it to preprocess the input file. If not, then you'll have to 
manually edit the file and substitute something appropriate (e.g., "integer*4") 
for UD_POINTER wherever it occurs.

> ^
> "/usr/local/udunits/include/udunits.inc", Line = 25, Column = 27:
> ERROR: Unknown statement.  Expected assignment statement but found "*"
> instead of "=  or "=>".
> 
> UD_POINTER utmake
> ^
> "/usr/local/udunits/include/udunits.inc", Line = 33, Column = 24:
> ERROR: Unknown statement.  Expected assignment statement but found
> "EOS" instead of  =" or "=>".
> 
> #define UD_POINTER      integer*4
> ^
> "/usr/local/udunits/include/udunits.inc", Line = 25, Column = 1:
> ERROR: The characters found in the label field are not valid.
> ^
> "/usr/local/udunits/include/udunits.inc", Line = 25, Column = 27:
> ERROR: Unknown statement.  Expected assignment statement but found "*"
> instead of "=  or "=>".
> 
> UD_POINTER utmake
> ^
> "/usr/local/udunits/include/udunits.inc", Line = 33, Column = 24:
> ERROR: Unknown statement.  Expected assignment statement but found
> "EOS" instead of  =" or "=>".
> 
> #define UD_POINTER      integer*4
> ^
> "/usr/local/udunits/include/udunits.inc", Line = 25, Column = 1:
> ERROR: The characters found in the label field are not valid.
> ^
> "/usr/local/udunits/include/udunits.inc", Line = 25, Column = 27:
> ERROR: Unknown statement.  Expected assignment statement but found "*"
> instead of "=  or "=>".
> 
> UD_POINTER utmake
> ^
> "/usr/local/udunits/include/udunits.inc", Line = 33, Column = 24:
> ERROR: Unknown statement.  Expected assignment statement but found
> "EOS" instead of  =" or "=>".
> 
> #define UD_POINTER      integer*4
> ^
> "/usr/local/udunits/include/udunits.inc", Line = 25, Column = 1:
> ERROR: The characters found in the label field are not valid.
> ^
> "/usr/local/udunits/include/udunits.inc", Line = 25, Column = 27:
> ERROR: Unknown statement.  Expected assignment statement but found "*"
> instead of "=" or "=>".
> 
> UD_POINTER utmake
> ^
> "/usr/local/udunits/include/udunits.inc", Line = 33, Column = 24:
> ERROR: Unknown statement.  Expected assignment statement but found
> "EOS" instead of "=" or "=>".
> 
> f90comp: 4148 SOURCE LINES
> f90comp: 12 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
> 
> 
> Machine info:
> 
> $ version
> Machine hardware:   sun4u
> OS version:         5.10
> Processor type:     sparc
> Hardware:           SUNW,Sun-Blade-100
> 
> The following components are installed on your system:
> 
> 
> Sun Studio 11
> Sun Studio 11 C Compiler
> Sun Studio 11 C++ Compiler
> Sun Studio 11 Tools.h++ 7.1
> Sun Studio 11 C++ Standard 64-bit Class Library
> Sun Studio 11 Garbage Collector
> Sun Studio 11 Fortran 95
> Sun Studio 11 Debugging Tools (including dbx)
> Sun Studio 11 IDE
> Sun Studio 11 Debugger GUI
> Sun Studio 11 Performance Analyzer (including collect, ...)
> Sun Studio 11 X-Designer
> Sun Studio 11 VIM editor
> Sun Studio 11 XEmacs editor
> Sun Studio 11 Native Connector Tool
> Sun Studio 11 Performance Library
> Sun Studio 11 LockLint
> Sun Studio 11 Building Software (including dmake)
> Sun Studio 11 Documentation Set
> 
> version of "/opt/SUNWspro/bin/../prod/bin/../../bin/cc": Sun C 5.8
> Patch 121015-07 2009/04/22
> version of "/opt/SUNWspro/bin/../prod/bin/../../bin/CC": Sun C++ 5.8
> Patch 121017-22 2010/09/29
> version of "/opt/SUNWspro/bin/../prod/bin/../../bin/f90": Sun Fortran
> 95 8.2 Patch 121019-13 2010/09/02
> version of "/opt/SUNWspro/bin/../prod/bin/../../bin/dbx": Sun Dbx
> Debugger 7.5 Patch 121023-07 2010/09/22
> version of "/opt/SUNWspro/bin/../prod/bin/../../bin/analyzer": Sun
> Performance Analyzer 7.5 Patch 120761-03 2006/11/02
> version of "/opt/SUNWspro/bin/../prod/bin/../../bin/dmake": Sun
> Distributed Make 7.7 2005/10/13
> Dr. Stephen C. Piper
> Scripps CO2 Program
> Scripps Institution of Oceanography
> La Jolla, CA 92093-0244
> tel: 858-534-3991
> fax: 858-534-8814
> 
> 
> 
> 
> 

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: FLZ-896534
Department: Support UDUNITS
Priority: Normal
Status: Closed