[Gdal-dev] Problem compiling GDAL with HDFv4

p.willis at telus.net p.willis at telus.net
Wed Jun 7 13:52:58 EDT 2006


I am compiling gdal-1.3.2 from source.
The autoconf configuration script finds libmfhdf fine.

During compile I get the following error:

<START>

 gcc -Wall -O2 -I/source/GDAL/gdal-1.3.2/port -I/source/GDAL/gdal-1.3.2/gcore -I
/source/GDAL/gdal-1.3.2/alg -I/source/GDAL/gdal-1.3.2/ogr -I/source/GDAL/gdal-1.
3.2/ogr/ogrsf_frmts -I/source/GDAL/gdal-1.3.2/ogr -I. -DOGR_ENABLED -I/source/GD
AL/gdal-1.3.2/port -c EHapi.c  -fPIC -DPIC -o ../../o/.libs/EHapi.o
In file included from /usr/local/include/hdf.h:169,
                 from /usr/local/include/mfhdf.h:24,
                 from EHapi.c:16:
/usr/local/include/hproto.h:1020: error: syntax error before "DFKgetPNSC"
make[3]: *** [../../o/EHapi.o] Error 1
make[3]: Leaving directory `/source/GDAL/gdal-1.3.2/frmts/hdf4/hdf-eos'
make[2]: *** [lib-hdfeos] Error 2
make[2]: Leaving directory `/source/GDAL/gdal-1.3.2/frmts/hdf4'
make[1]: *** [hdf4-install-obj] Error 2
make[1]: Leaving directory `/source/GDAL/gdal-1.3.2/frmts'
make: *** [frmts-target] Error 2

<END>

Is there  a problem with EHapi or do I need something else?

Any info would be appreciated,

Peter Willis




More information about the Gdal-dev mailing list