Opened 16 years ago

Closed 16 years ago

#2297 closed defect (fixed)

gdal does not compile against hdf5-1.8.0 with mixed API

Reported by: vincentschut Owned by: 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 (1)

gdal-hdf5-1.8-api.diff (3.7 KB ) - added by vincentschut 16 years ago.

Download all attachments as: .zip

Change History (3)

by vincentschut, 16 years ago

Attachment: gdal-hdf5-1.8-api.diff added

comment:1 by warmerdam, 16 years ago

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?

comment:2 by warmerdam, 16 years ago

Component: defaultGDAL_Raster
Keywords: HDF5 added
Milestone: 1.5.3
Resolution: fixed
Status: newclosed
Version: unspecified1.5.1

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.

Note: See TracTickets for help on using tickets.