[Gdal-dev] Compile Error

Paul Kelly paul-grass at stjohnspoint.co.uk
Tue Oct 14 05:33:50 EDT 2003


See below for make output from today's CVS on an SGI IRIX 6.2 system
(1.1.9 compiles fine as far as I can remember). Seems to me here it is
trying to use the C compiler to compile a C++ source file. Same thing
happens both with and without using libtool.

Paul

(cd port; make)
make[1]: Entering directory `/indigo-disk2/grass/gdal-libtool/port'
make[1]: Nothing to be done for `default'.
make[1]: Leaving directory `/indigo-disk2/grass/gdal-libtool/port'
(cd gcore; make)
make[1]: Entering directory `/indigo-disk2/grass/gdal-libtool/gcore'
make[1]: Nothing to be done for `default'.
make[1]: Leaving directory `/indigo-disk2/grass/gdal-libtool/gcore'
(cd alg; make)
make[1]: Entering directory `/indigo-disk2/grass/gdal-libtool/alg'
make[1]: Nothing to be done for `default'.
make[1]: Leaving directory `/indigo-disk2/grass/gdal-libtool/alg'
(cd frmts; make)
make[1]: Entering directory `/indigo-disk2/grass/gdal-libtool/frmts'
make -C gxf install-obj
make[2]: Entering directory `/indigo-disk2/grass/gdal-libtool/frmts/gxf'
/bin/sh ../../libtool --mode=compile cc -I../../port -I../../gcore -I../../ogr    -c -o ../o/gxfdataset.o gxfdataset.cpp
 cc -I../../port -I../../gcore -I../../ogr -c gxfdataset.cpp  -DPIC -o ../o/.libs/gxfdataset.o
cfe: Error: ../../gcore/gdal_priv.h, line 176: Syntax Error
 class GDALMajorObject;
 ------^
cfe: Error: ../../gcore/gdal_priv.h, line 176: Empty declaration specifiers
 class GDALMajorObject;
 ------^
cfe: Error: ../../gcore/gdal_priv.h, line 177: Syntax Error
 class GDALDataset;
 ------^
cfe: Error: ../../gcore/gdal_priv.h, line 177: Empty declaration specifiers
 class GDALDataset;
 ------^
cfe: Error: ../../gcore/gdal_priv.h, line 178: Syntax Error
 class GDALRasterBand;
 ------^
cfe: Error: ../../gcore/gdal_priv.h, line 178: Empty declaration specifiers
 class GDALRasterBand;
 ------^
cfe: Error: ../../gcore/gdal_priv.h, line 179: Syntax Error
 class GDALDriver;
 ------^
cfe: Error: ../../gcore/gdal_priv.h, line 179: Empty declaration specifiers
 class GDALDriver;
 ------^
cfe: Error: ../../gcore/gdal_priv.h, line 199: Syntax Error
 class   GDALMajorObject
 --------^
cfe: Error: ../../gcore/gdal_priv.h, line 200: GDALMajorObject must have function type
 {
 ^
cfe: Error: ../../gcore/gdal_priv.h, line 202: Syntax Error
     char             *pszDescription;
 ----^
cfe: Error: ../../gcore/gdal_priv.h, line 203: Syntax Error
     char            **papszMetadata;
 ----^
cfe: Error: ../../gcore/gdal_priv.h, line 207: Syntax Error
     virtual            ~GDALMajorObject();
 -----------------------^
cfe: Error: ../../gcore/gdal_priv.h, line 209: Syntax Error
     virtual const char *GetDescription() const;
 ------------^
cfe: Error: ../../gcore/gdal_priv.h, line 209: Syntax Error
     virtual const char *GetDescription() const;
 -----------------------------------------^
cfe: Error: ../../gcore/gdal_priv.h, line 212: Syntax Error
     virtual char      **GetMetadata( const char * pszDomain = "" );
 -------------------------------------^
cfe: Error: ../../gcore/gdal_priv.h, line 212: Syntax Error
     virtual char      **GetMetadata( const char * pszDomain = "" );
 -----------------------------------------------------------------^
cfe: Error: ../../gcore/gdal_priv.h, line 214: Syntax Error
                                      const char * pszDomain = "" );
 -------------------------------------^
cfe: Error: ../../gcore/gdal_priv.h, line 214: Syntax Error
                                      const char * pszDomain = "" );
 -----------------------------------------------------------------^
cfe: Error: ../../gcore/gdal_priv.h, line 215: Syntax Error
     virtual const char *GetMetadataItem( const char * pszName,
 -----------------------------------------^
cfe: Error: ../../gcore/gdal_priv.h, line 216: Syntax Error
                                          const char * pszDomain = "" );
 -----------------------------------------^
cfe: Error: ../../gcore/gdal_priv.h, line 216: Syntax Error
                                          const char * pszDomain = "" );
 ---------------------------------------------------------------------^
cfe: Error: ../../gcore/gdal_priv.h, line 218: Syntax Error
                                          const char * pszValue,
 -----------------------------------------^
cfe: Error: ../../gcore/gdal_priv.h, line 219: Syntax Error
                                          const char * pszDomain = "" );
 -----------------------------------------^
cfe: Error: ../../gcore/gdal_priv.h, line 219: Syntax Error
                                          const char * pszDomain = "" );
 ---------------------------------------------------------------------^
cfe: Warning 625: ../../gcore/gdal_priv.h, line 220: Empty declaration
 };
 -^
cfe: Error: ../../gcore/gdal_priv.h, line 225: Syntax Error
 class   GDALDefaultOverviews
 --------^
cfe: Error: ../../gcore/gdal_priv.h, line 230: Syntax Error
     char        *pszOvrFilename;
 ----^
cfe: Error: ../../gcore/gdal_priv.h, line 236: Syntax Error
     void       Initialize( GDALDataset *poDS, const char *pszName = 0L ,
 ----^
cfe: Error: ../../gcore/gdal_priv.h, line 236: Syntax Error
     void       Initialize( GDALDataset *poDS, const char *pszName = 0L ,
 ----------------------------------------------^
cfe: Error: ../../gcore/gdal_priv.h, line 237: Syntax Error
                            int bNameIsOVR = 0  );
 ---------------------------^
cfe: Fatal: Too many errors... goodbye.
make[2]: *** [../o/gxfdataset.o] Error 1
make[2]: Leaving directory `/indigo-disk2/grass/gdal-libtool/frmts/gxf'
make[1]: *** [gxf-install-obj] Error 2
make[1]: Leaving directory `/indigo-disk2/grass/gdal-libtool/frmts'
make: *** [frmts-target] Error 2



More information about the Gdal-dev mailing list