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

[netCDF #KJJ-291289]: netCDF4 HDF4 Linking Issue



Interesting. I wonder why we have not seen this before.

> It looks like I've found a bug with the netCDF C library.
> 
> If you write a C program that uses both netcdf4 (for the purposes of 
> creating/reading hdf5/netcdf4 files) and hdf4 (for reading hdf4 files) most 
> netCDF4 functions become unusable. This is because both hdf4 and netCDF4 have 
> a function named NC_check_id(), which are two different functions that are 
> not interchangeable. This issue essentially makes netCDF4 incompatible with 
> use in a program which also uses hdf4.
> 
> The issue can be fixed if the function is renamed and it's references are 
> corrected. I can fix the issue by implementing this fix and rebuilding 
> netCDF4 from source.
> I would really like this change to be properly implemented from unidata so 
> that my team doesn't need to maintain a separate version of netCDF. I was 
> under the impression that netCDF4 was supposed to be compatible with hdf4, so 
> I'm surprised no one else has found this issue.
> 
> Please let me know if you think the aforementioned fix can be applied to the 
> next release version of netCDF.
> 
> Thank you.
> 
> Zachary Richard
> Software/Test Engineer
> Land SIPS Software Integration
> address@hidden
> Office Phone: (301) 867-2059
> Cell Phone:    (302) 245-6170
> 
> 

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: KJJ-291289
Department: Support netCDF
Priority: Normal
Status: Open
===================
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.