[Gdal-dev] hdf4, hdf-eos and gcc 3.4 issues

Vincent Schut schut at sarvision.com
Thu Jun 24 03:44:54 EDT 2004


On Wednesday 23 June 2004 19:51, Andrey Kiselev wrote:
> On Wed, Jun 23, 2004 at 09:09:13PM +0400, Andrey Kiselev wrote:
> > > - the include of HdfEosDef.h from hdf4dataset.cpp doesn't work,
> > > because gcc can't find it. After changing the compile line to
> > > include '-I./hdf-eos', this was solved. I however don't know the
> > > appropriate place to add this (GNUmakefile?).
> >
> > I'm forgot to commit the new Makefile along with the new code, sorry.
> > Will be fixed very soon.
>
> I have commited the required changes. Please, test again.

Finds the includes now, but still get this error:

make[3]: Entering directory `/usr/local/src/gdal/frmts/hdf4/hdf-eos'
/bin/sh ../../../libtool --mode=compile gcc -c -I../../../port -Wall  -O2 
-DCPL_MULTIPROC_PTHREAD    -I. EHapi.c -o ../../o/EHapi.o
 gcc -c -I../../../port -Wall -O2 -DCPL_MULTIPROC_PTHREAD -I. EHapi.c  -fPIC 
-DPIC -o ../../o/.libs/EHapi.o
In file included from EHapi.c:35:
./HDFEOSVersion.h:16:1: pasting ""@(#)## HDFEOS Version: "" and 
"HDFEOSVERSION1" does not give a valid preprocessing token
./HDFEOSVersion.h:17:1: pasting ""@(#)## Build date: "" and "__DATE__" does 
not give a valid preprocessing token
./HDFEOSVersion.h:17:1: pasting "__DATE__" and "" @ "" does not give a valid 
preprocessing token
./HDFEOSVersion.h:17:1: pasting "" @ "" and "__TIME__" does not give a valid 
preprocessing token
EHapi.c: In function `EHopen':
EHapi.c:254: warning: implicit declaration of function `sleep'
EHapi.c: In function `ehidinfo':
EHapi.c:592: warning: passing arg 2 of `EHidinfo' from incompatible pointer 
type
EHapi.c:592: warning: passing arg 3 of `EHidinfo' from incompatible pointer 
type
EHapi.c: In function `EHopen':
EHapi.c:104: warning: 'fid' might be used uninitialized in this function
EHapi.c: In function `EHconvAng':
EHapi.c:767: warning: 'outAngle' might be used uninitialized in this function
EHapi.c: At top level:
cfortHdf.h:283: warning: 'c2fstrv' defined but not used
cfortHdf.h:299: warning: 'f2cstrv' defined but not used
cfortHdf.h:346: warning: 'vkill_trailing' defined but not used
cfortHdf.h:393: warning: 'num_elem' defined but not used
cfortHdf.h:443: warning: '__cfztringv' defined but not used
make[3]: *** [../../o/EHapi.o] Error 1
make[3]: Leaving directory `/usr/local/src/gdal/frmts/hdf4/hdf-eos'
make[2]: *** [lib-hdfeos] Error 2
make[2]: Leaving directory `/usr/local/src/gdal/frmts/hdf4'
make[1]: *** [hdf4-install-obj] Error 2
make[1]: Leaving directory `/usr/local/src/gdal/frmts'
make: *** [frmts-target] Error 2

using: gentoo on amd64, gcc 3.4.

Cheers,
-- 
-----------------------------
 Vincent Schut
 SarVision B.V.
 Wageningen, The Netherlands
 www.sarvision.com



More information about the Gdal-dev mailing list