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

20010201: Compile problems with udunits: PUNIT_cfSTR macro



Larrabee,

> To: address@hidden
> From: Larrabee Strow <address@hidden>
> Subject: Compile problems with udunits
> Organization: UCAR/Unidata
> Keywords: 200101302248.f0UMmVX27711

The above message contained the following:

> I am trying to compile udunits (V 1.11.7) on i386 Linux using Absoft
> Fortran.
> 
> Just FYI, I was able to get netcdf to compile fine on this platform.
> (My final goal is to get the gribtonc decoder to compile.)
> 
> 
> In udunits-1.11.7/src/port/cfortran/cfortran.h  I have defined
> AbsoftUNIXFortran
> 
> #define AbsoftUNIXFortran
> 
> at the top.  Seems as though I am still having Fortran problems during
> the compile.  Here is the output from make.
> 
> Thanks for any help (or better suggestions on how to get NCEP AVN grib
> files into netcdf).
> 
> 
> asl> make
> 
> making `all' in directory /asldsk/s1/udunits-1.11.7/src/port
> 
> make[1]: Entering directory `/asldsk/s1/udunits-1.11.7/src/port'
> 
> making `all' in directory /asldsk/s1/udunits-1.11.7/src/port/misc
> 
> make[2]: Entering directory `/asldsk/s1/udunits-1.11.7/src/port/misc'
> cc -c -O -I.  -D_REENTRANT  uddummy.c
> ar rcuv libudport.a uddummy.o
> a - uddummy.o
> case "" in \
> '') ;; \
> *)  ar rucv libudport.a ;; \
> esac
> ranlib libudport.a
> make[2]: Leaving directory `/asldsk/s1/udunits-1.11.7/src/port/misc'
>  
> returning to directory /asldsk/s1/udunits-1.11.7/src/port
>  
>  
> making `all' in directory /asldsk/s1/udunits-1.11.7/src/port/cfortran
>  
> make[2]: Entering directory `/asldsk/s1/udunits-1.11.7/src/port/cfortran'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/asldsk/s1/udunits-1.11.7/src/port/cfortran'
>  
> returning to directory /asldsk/s1/udunits-1.11.7/src/port
>  
> make[1]: Leaving directory `/asldsk/s1/udunits-1.11.7/src/port'
>  
> returning to directory /asldsk/s1/udunits-1.11.7/src
>  
>  
> making `all' in directory /asldsk/s1/udunits-1.11.7/src/lib
>  
> make[1]: Entering directory `/asldsk/s1/udunits-1.11.7/src/lib'
> cc -c -O -I../port/misc -I../port/cfortran 
> -DUT_DEFAULT_PATH='"/usr/local/etc/udunits.dat"'  utlib.c
> utlib.c: In function `FindUnit':
> utlib.c:1590: warning: passing arg 2 of `tfind' from incompatible pointer type
> utlib.c:1609: warning: passing arg 2 of `tfind' from incompatible pointer type
> utlib.c: At top level:
> utlib.c:1882: parse error before `0'
> make[1]: *** [utlib.o] Error 1
> make[1]: Leaving directory `/asldsk/s1/udunits-1.11.7/src/lib'
> make: *** [lib/all] Error 1
> asl>                                                    
> 
> -- 
> L. Larrabee Strow                            E-mail: address@hidden
> Department of Physics                        FAX   : (410) 455-1072
> University of Maryland Baltimore County      Phone : (410) 455-2528 
> 1000 Hilltop Circle                          Office: Physics 429
> Baltimore, MD 21250                  

Would you please try the following and tell me if it works:

    1.  Go to the top-level source directory.

    2.  Add the following:

            #define PUNIT_cfSTR(N,T,A,B,C,D,E) SIMPLE_cfSTR(N,T,A,B,C,D,E)

        near the top of file "lib/utlib.c" just after the definition of
        the PUNIT_cfK macro.

    3.  Execute the command "make clean".

    4.  Execute the command "make".

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>