[ncl-install] udunits v.2.1.2 struct utUnit missing member origin

Marcin Sliwowski ms275 at duke.edu
Thu Mar 19 10:55:19 MDT 2009


Hello Everyone,

When compiling ncl-ncar v5.1.0 I ran into the following error when
building with udunits support using udunits v.2.1.2:

PGC-S-0060-factor is not a member of this struct or union
(utCalendar_cal.c: 265)
PGC-S-0060-factor is not a member of this struct or union
(utCalendar_cal.c: 279)
PGC-S-0060-origin is not a member of this struct or union
(utCalendar_cal.c: 462)

PGC/x86-64 Linux 8.0-4: compilation completed with severe errors
make[5]: *** [utCalendar_cal.o] Error 2
make[5]: Leaving directory `/opt/ncl_ncarg-5.1.0/ni/src/lib/nfp'

On line 265 of utCalendar_cal.c there is the following access:
udu_origin_zero.origin

udu_origin_zero is of type utUnit, which is a struct defined in
$UDUNITS/include/udunits.h

It appears that in the new udunits v.2.1.2 the struct utUnit is
completely different than the same struct as defined in udunits.h in
udunits v.1.12.9, mainly it is missing the member origin that is being
accessed on line 265 of utCalendar_cal.c

Just wanted to let everyone know, maybe the ncl/ncarg installation guide
should now specify to use udunits v.1.12.9 instead of this new v.2.1.2

-- 
Marcin Sliwowski
Systems Programmer
Duke University - Pratt School of Engineering
Office: 919-660-8450



More information about the ncl-install mailing list