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

20030808: udunits.inc



Dear Yamasaki,

>Date: Fri, 08 Aug 2003 16:24:31 +0100
>From: "Yoshihiro Yamasaki" <address@hidden>
>Organization: ?
>To: Steve Emmerson <address@hidden>
>Subject: Re: udunits.inc

The above message contained the following:

> Here I am again with a new problem. The compilation & test 
> was  just fine. However, when trying to use it...I got the 
> following :
> 
> ===================================================== 
> pgf90 new.for 
> /home2/yamazaki/usr/local/netcdf/netcdf-3.5.0/lib/libnetcdf.a
> new.for:
> PGF90-S-0021-Label field of continuation line is not blank 
> (/home2/yamazaki/usr/local/udunits-1.11.7/include/udunits.inc: 
> 27)
> PGF90-S-0021-Label field of continuation line is not blank 
> (/home2/yamazaki/usr/local/udunits-1.11.7/include/udunits.inc: 
> 28)
> PGF90-S-0021-Label field of continuation line is not blank 
> (/home2/yamazaki/usr/local/udunits-1.11.7/include/udunits.inc: 
> 29)
> PGF90-S-0034-Syntax error at or near end of line 
> (/home2/yamazaki/usr/local/udunits-1.11.7/include/udunits.inc: 
> 37)
> PGF90-W-0119-Redundant specification for utdec (new.for: 
> 249)
> PGF90-W-0119-Redundant specification for uttime (new.for: 
> 249)
>    0 inform,   2 warnings,   4 severes, 0 fatal for 
> gridread
> ----->>>
> 
> LOOKING AT THE PROBLEM I COMMENTED THOSE LINES OF
> 
> udunits.inc FILE : 
> 
> c  #ifndef PTR
> c  #   define PTR     integer
> c  #endif

The file "udunits.inc" is designed to be processed by the C preprocessor
before being compiled by the Fortran compiler.  Your Fortran compile
might have an option to do this.  Or you might try renaming the file so
that the Fortran compiler will call the C preprocessor on it (e.g.,
"udunits.F").

> EVEN SO, I GOT OTHER PROBLEMS :
> PGF90-W-0119-Redundant specification for utdec (new.for: 
> 249)
> PGF90-W-0119-Redundant specification for uttime (new.for: 
> 249)
> PGF90-W-0119-Redundant specification for utdec (new.for: 
> 431)
> PGF90-W-0119-Redundant specification for uticaltime 
> (new.for: 432)
> PGF90-W-0119-Redundant specification for utdec (new.for: 
> 795)
> PGF90-W-0119-Redundant specification for utcaltime 
> (new.for: 795)

The above warnings can be safely ignored.

> new.o(.text+0x42e): In function `gridread_':
> : undefined reference to `utmake_'

The Fortran compiler is not finding the Fortran routines in the UDUNITS
library.  Do they exist?  Please send me the output of the command

    nm -g /home2/yamazaki/usr/local/netcdf/netcdf-3.5.0/lib/libnetcdf.a | grep 
utmake

Regards,
Steve Emmerson


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.