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

[netCDF #GPS-461433]: netcdf-4: libsrc/v2i.c needs nc.h



> > Hi,
> >
> > when trying to cross-compile the latest netcdf-4 snapshot
> > I need the attached patch, otherwise libsrc/v2i.c fails to
> > compile:
> >
> > libtool: compile:  sxc++ -DHAVE_CONFIG_H -I. -I.. -I../fortran
> > -I../libdap -DNDEBUG -
> > DUSE_SXP -D_USE_SETBUF -Xa -Caopt -pi auto max_depth=2 max_size=100
> > -Orestrict=keywor
> > d -c v2i.c -o v2i.o
> > "v2i.c", line 39: fatal(20): identifier "NC" is undefined
> > NC *ncp;
> > ^
> >
> > "v2i.c", line 39: fatal(20): identifier "ncp" is undefined
> > NC *ncp;
> > ^
> >
> > "v2i.c", line 43: fatal(20): identifier "NC_var" is undefined
> > const NC_var *const varp = NC_lookupvar(ncp, varid);
> > ^
> >
> > "v2i.c", line 43: warning(144): a value of type "int" cannot be used to
> > initialize an entity of type "const <error-type> *const"
> > const NC_var *const varp = NC_lookupvar(ncp, varid);
> > ^
> >
> > "v2i.c", line 46: fatal(132): expression must have
> > pointer-to-struct-or-union
> > type
> > return varp->ndims;
> > ^
> >
> > The reason for failure might be that SIZEOF_LONG != SIZEOF_SIZE_T.
> >
> > Cheers,
> > Harald
> >
> > --
> > Harald Anlauf
> > Deutscher Wetterdienst (DWD)           | Phone:  +49 69 8062 4941
> > FE12 / Datenassimilation               | Fax:    +49 69 8062 4954
> > 63067 Offenbach                        | e-Mail: address@hidden
> >
>
> Thanks, I've made that change. It will be in the next snapshot.
>
> Ed

Harald,

When I made this change it caused tests to fail on many platforms. Therefore I
have backed out that change for now. I hope to try it again before the upcoming
4.0.1 release.

I've reopened the support issue so that I don't lose track of this.

Thanks,

Ed

Ticket Details
===================
Ticket ID: GPS-461433
Department: Support netCDF
Priority: Normal
Status: Open