Opened 15 years ago

Closed 15 years ago

#2687 closed defect (duplicate)

HDF4 Build Problems - UNKNOWN Redefined

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone: 1.5.4
Component: GDAL_Raster Version: 1.5.3
Severity: normal Keywords: hdf4
Cc:

Description

hi list,

I am trying to make gdal 1.5.3 on linux (Redhat Enteroprise)

I use HDF4.2 r3 and HDF5 1.8.2.

here is the error message:

      libtool: compile:  g++ -g -O2 -Wall -I/home/sgong/dev181/gdal-1.5.3/port -I/home/sgong/dev181/gdal-1.5.3/gcore -I/home/sgong/dev181/gdal-1.5.3/alg -I/home/sgong/dev181/gdal-1.5.3/ogr -I/home/sgong/dev181/gdal-1.5.3/ogr/ogrsf_frmts -I/home/sgong/dev181/dist/include -I/home/sgong/dev181/gdal-1.5.3/ogr -Ihdf-eos -DOGR_ENABLED -I/home/sgong/dev181/gdal-1.5.3/port -I/home/sgong/dev181/dist -I/home/sgong/dev181/dist/include -c hdf4dataset.cpp  -fPIC -DPIC -o ../o/.libs/hdf4dataset.o
      In file included from hdf4dataset.cpp:39:
      hdf4dataset.h:55: conflicting types for `UNKNOWN'
      /home/sgong/dev181/dist/include/mfhdfi.h:26: previous declaration as `
         hdf_vartype_t UNKNOWN'
      make[2]: *** [../o/hdf4dataset.o] Error 1
      make[2]: Leaving directory `/home/sgong/dev181/gdal-1.5.3/frmts/hdf4'
      make[1]: *** [hdf4-install-obj] Error 2
      make[1]: Leaving directory `/home/sgong/dev181/gdal-1.5.3/frmts'
      make: *** [frmts-target] Error 2

Should I change the declaration? in which file?

thanks,

Shawn

Change History (1)

comment:1 by warmerdam, 15 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #2609.

Note: See TracTickets for help on using tickets.