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

[netCDF #REE-556775]: NC_64BIT_DATA undeclared error



Hello,

I'm curious if perhaps there is another netcdf.h file present on your system 
that is being picked up at compile time; possibly in /usr/include or 
/usr/local/include.  Are you able to check these locations to see if such a 
file exists? Also, would it be possible to send us the config.log file 
generated when you ran `configure` for netcdf 4.4.1.1?

Thanks!

-Ward


> Description of problem: Hello,
> 
> I was trying to configure an install of MET/METplus on my machine. The 
> program makes use of netcdf libraries, but compiling MET/METplus leaves me 
> with errors in the compilation of NetCDF-C and NetCDF-CXX.
> 
> The make_install.log file for compiling NetCDF-C displays the following error:
> 
> In file included from ncx.h:11:0,
> from v1hpg.c:13:
> v1hpg.c: In function 'ncx_len_NC':
> v1hpg.c:1276:25: error: 'NC_64BIT_DATA' undeclared (first use in this functio
> n)
> if (fIsSet(ncp->flags, NC_64BIT_DATA)) /* CDF-5 */
> 
> ../include/fbits.h:15:34: note: in definition of macro 'fIsSet'
> #define fIsSet(t, f)     ((t) & (f))
> 
> v1hpg.c:1276:25: note: each undeclared identifier is reported only once for e
> ach function it appears in
> if (fIsSet(ncp->flags, NC_64BIT_DATA)) /* CDF-5 */
> 
> ../include/fbits.h:15:34: note: in definition of macro 'fIsSet'
> #define fIsSet(t, f)     ((t) & (f))
> 
> v1hpg.c: In function 'ncx_put_NC':
> v1hpg.c:1304:19: error: 'NC_64BIT_DATA' undeclared (first use in this functio
> n)
> if (ncp->flags & NC_64BIT_DATA)
> 
> In file included from ncx.h:11:0,
> from v1hpg.c:13:
> v1hpg.c: In function 'nc_get_NC':
> v1hpg.c:1413:37: error: 'NC_64BIT_DATA'
> undeclared (first use in this functio
> n)
> if(extent <= ((fIsSet(ncp->flags, NC_64BIT_DATA))?MIN_NC5_XSZ:MIN_NC3_XSZ)
> )
> 
> ../include/fbits.h:15:34: note: in definition of macro 'fIsSet'
> #define fIsSet(t, f)     ((t) & (f))
> 
> make[1]: *** [libnetcdf3_la-v1hpg.lo] Error 1
> make[1]: Leaving directory /export/cpc-lw7-jhicks/jhicks/MET/METv10.0/extern
> al_libs/netcdf/netcdf-4.4.1.1/libsrc
> make: *** [install-recursive] Error 1
> 
> I've been working with the MET/METplus team to resolve this issue, but they 
> are not familiar with the 'NC_64BIT_DATA' undeclared error, and it seems like 
> compiling NetCDF is the last step to successfully installing MET/METplus.
> 
> I'm attaching the make_install.log file for NetCDF-C. Please let me know if 
> you'd like me to include other information, and I will try to get back to you 
> promptly. Thanks!
> 
> 


Ticket Details
===================
Ticket ID: REE-556775
Department: Support netCDF
Priority: Normal
Status: Closed
===================
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.