Ticket #2297 (closed defect: fixed)

Opened 3 months ago

Last modified 1 month ago

gdal does not compile against hdf5-1.8.0 with mixed API

Reported by: vincentschut Assigned to: warmerdam
Priority: normal Milestone: 1.5.3
Component: GDAL_Raster Version: 1.5.1
Severity: normal Keywords: HDF5
Cc:

Description

hdf5 from 1.8.x onwards has a new API for some function calls. However, usually (depends on compile flag) the older functions are still available by appending '1' after the function name (see http://www.hdfgroup.uiuc.edu/HDF5/doc_1.8pre/doc/RM/APICompatMacros.html). I don't know for other linux distro's, but for arch linux this is the case.

Attached is a diff which can be applied to fix the issue. With the patch applied, gdal compiles cleanly against my hdf5-1.8.0-3 (arch linux)

Attachments

gdal-hdf5-1.8-api.diff (3.7 kB) - added by vincentschut on 03/27/08 10:58:55.

Change History

03/27/08 10:58:55 changed by vincentschut

  • attachment gdal-hdf5-1.8-api.diff added.

06/05/08 10:05:41 changed by warmerdam

I tried to download the HDF5 1.8 source, but it seems there is a client limit on the hdf5 download server so I can't. Would anyone happen to have the source package somewhere else I could download it?

06/06/08 00:37:05 changed by warmerdam

  • status changed from new to closed.
  • component changed from default to GDAL_Raster.
  • version changed from unspecified to 1.5.1.
  • milestone set to 1.5.3.
  • keywords set to HDF5.
  • resolution set to fixed.

Patched in trunk (r14635) and 1.5 branch (r14636).

Used a simpler patch where a define is used to request 1.6 version API compatibility.