Opened 21 years ago
Last modified 21 years ago
#410 closed defect (fixed)
gdal doesn't build (can't find sdtsdataset.cpp includes)
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
Hi, RedHat Linux 9.0 on i686, pretty vanilla install. building breaks when it gets to sdtsdataset.cpp. sdtsdataset.cpp:79:23: gdal_priv.h: No such file or directory sdtsdataset.cpp:80:28: ogr_spatialref.h: No such file or directory and it cascades from there. (and the files do exist in gcore/ and ogr/) According to the WebCVS, it looks like the makefile was recently changed... thanks, Hamish <hamish_nospam@yahoo.com> cvs checkout gdal cd gdal ./configure make [...] gcc -I../iso8211 -I../../port -Wall -O2 -c sdtsrasterreader.cpp -fPIC -DPIC -o ../o/.libs/sdtsrasterreader.o gcc -I../iso8211 -I../../port -Wall -O2 -c sdtsrasterreader.cpp -o ../o/sdtsrasterreader.o >/dev/null 2>&1 /bin/sh ../../libtool --mode=compile gcc -I../iso8211 -I../../port -Wall -O2 -c -o ../o/sdtsindexedreader.o sdtsindexedreader.cpp gcc -I../iso8211 -I../../port -Wall -O2 -c sdtsindexedreader.cpp -fPIC -DPIC -o ../o/.libs/sdtsindexedreader.o gcc -I../iso8211 -I../../port -Wall -O2 -c sdtsindexedreader.cpp -o ../o/sdtsindexedreader.o >/dev/null 2>&1 /bin/sh ../../libtool --mode=compile gcc -I../iso8211 -I../../port -Wall -O2 -c -o ../o/sdtsdataset.o sdtsdataset.cpp gcc -I../iso8211 -I../../port -Wall -O2 -c sdtsdataset.cpp -fPIC -DPIC -o ../o/.libs/sdtsdataset.o sdtsdataset.cpp:79:23: gdal_priv.h: No such file or directory sdtsdataset.cpp:80:28: ogr_spatialref.h: No such file or directory sdtsdataset.cpp:103: parse error before `{' token sdtsdataset.cpp:111: parse error before `public' sdtsdataset.cpp:114: syntax error before `*' token sdtsdataset.cpp:116: virtual outside class declaration sdtsdataset.cpp:117: virtual outside class declaration sdtsdataset.cpp:118: parse error before `}' token sdtsdataset.cpp:121: parse error before `{' token sdtsdataset.cpp:124: redefinition of `SDTSRasterReader*poRL' sdtsdataset.cpp:107: `SDTSRasterReader*poRL' previously declared here sdtsdataset.cpp:126: parse error before `public' sdtsdataset.cpp:130: virtual outside class declaration sdtsdataset.cpp:132: virtual outside class declaration sdtsdataset.cpp:133: virtual outside class declaration sdtsdataset.cpp:134: parse error before `}' token sdtsdataset.cpp:143: invalid use of undefined type `class SDTSDataset' sdtsdataset.cpp:102: forward declaration of `class SDTSDataset' sdtsdataset.cpp:159: syntax error before `*' token sdtsdataset.cpp:168: `poOpenInfo' was not declared in this scope sdtsdataset.cpp:170: parse error before `if' sdtsdataset.cpp:185: redefinition of `SDTSTransfer*poTransfer' sdtsdataset.cpp:106: `SDTSTransfer*poTransfer' previously declared here sdtsdataset.cpp:187: parse error before `if' sdtsdataset.cpp:197: redefinition of `SDTSRasterReader*poRL' sdtsdataset.cpp:124: `SDTSRasterReader*poRL' previously declared here sdtsdataset.cpp:199: parse error before `for' sdtsdataset.cpp:199: parse error before `;' token sdtsdataset.cpp:199: syntax error before `++' token sdtsdataset.cpp:215: `poOpenInfo' was not declared in this scope sdtsdataset.cpp:215: ISO C++ forbids declaration of `CPLError' with no type sdtsdataset.cpp:215: `int CPLError' redeclared as different kind of symbol ../../port/cpl_error.h:109: previous declaration of `void CPLError(CPLErr, int, const char*, ...)' sdtsdataset.cpp:215: initializer list being treated as compound expression sdtsdataset.cpp:216: parse error before `return' sdtsdataset.cpp:222: invalid use of undefined type `class SDTSDataset' sdtsdataset.cpp:102: forward declaration of `class SDTSDataset' sdtsdataset.cpp:224: syntax error before `->' token sdtsdataset.cpp:225: syntax error before `->' token sdtsdataset.cpp:230: syntax error before `->' token sdtsdataset.cpp:231: syntax error before `->' token sdtsdataset.cpp:236: syntax error before `->' token sdtsdataset.cpp:237: syntax error before `->' token sdtsdataset.cpp:240: invalid use of undefined type `class SDTSDataset' sdtsdataset.cpp:102: forward declaration of `class SDTSDataset' sdtsdataset.cpp:240: parse error before `;' token sdtsdataset.cpp:240: syntax error before `++' token sdtsdataset.cpp:247: 'OGRSpatialReference' is used as a type, but is not defined as a type. sdtsdataset.cpp:250: parse error before `if' sdtsdataset.cpp:274: syntax error before `.' token sdtsdataset.cpp:276: syntax error before `->' token sdtsdataset.cpp:289: invalid use of undefined type `class SDTSDataset' sdtsdataset.cpp:102: forward declaration of `class SDTSDataset' sdtsdataset.cpp:302: invalid use of undefined type `class SDTSDataset' sdtsdataset.cpp:102: forward declaration of `class SDTSDataset' sdtsdataset.cpp:319: invalid use of undefined type `class SDTSRasterBand' sdtsdataset.cpp:100: forward declaration of `class SDTSRasterBand' sdtsdataset.cpp: In constructor `SDTSRasterBand::SDTSRasterBand(SDTSDataset*, int, SDTSRasterReader*)': sdtsdataset.cpp:320: invalid use of undefined type `class SDTSRasterBand' sdtsdataset.cpp:100: forward declaration of `class SDTSRasterBand' sdtsdataset.cpp:321: invalid use of undefined type `class SDTSRasterBand' sdtsdataset.cpp:100: forward declaration of `class SDTSRasterBand' sdtsdataset.cpp:322: invalid use of undefined type `class SDTSRasterBand' sdtsdataset.cpp:100: forward declaration of `class SDTSRasterBand' sdtsdataset.cpp:325: `eDataType' undeclared (first use this function) sdtsdataset.cpp:325: (Each undeclared identifier is reported only once for each function it appears in.) sdtsdataset.cpp:325: `GDT_Int16' undeclared (first use this function) sdtsdataset.cpp:327: `GDT_Float32' undeclared (first use this function) sdtsdataset.cpp:329: `nBlockXSize' undeclared (first use this function) sdtsdataset.cpp:330: `nBlockYSize' undeclared (first use this function) sdtsdataset.cpp: At global scope: sdtsdataset.cpp:340: invalid use of undefined type `class SDTSRasterBand' sdtsdataset.cpp:100: forward declaration of `class SDTSRasterBand' sdtsdataset.cpp:353: invalid use of undefined type `class SDTSRasterBand' sdtsdataset.cpp:100: forward declaration of `class SDTSRasterBand' sdtsdataset.cpp:366: invalid use of undefined type `class SDTSRasterBand' sdtsdataset.cpp:100: forward declaration of `class SDTSRasterBand' sdtsdataset.cpp: In function `void GDALRegister_SDTS()': sdtsdataset.cpp:382: `GDALDriver' undeclared (first use this function) sdtsdataset.cpp:382: `poDriver' undeclared (first use this function) sdtsdataset.cpp:384: `GDALGetDriverByName' undeclared (first use this function) sdtsdataset.cpp:386: parse error before `(' token sdtsdataset.cpp:389: `GDAL_DMD_LONGNAME' undeclared (first use this function) sdtsdataset.cpp:391: `GDAL_DMD_HELPTOPIC' undeclared (first use this function) sdtsdataset.cpp:393: `GDAL_DMD_EXTENSION' undeclared (first use this function) sdtsdataset.cpp:395: incomplete type `SDTSDataset' does not have member `Open' sdtsdataset.cpp:397: `GetGDALDriverManager' undeclared (first use this function) make[2]: *** [../o/sdtsdataset.o] Error 1 make[2]: Leaving directory `/usr/src/grass/frank/gdal/frmts/sdts' make[1]: *** [sdts-install-obj] Error 2 make[1]: Leaving directory `/usr/src/grass/frank/gdal/frmts' make: *** [frmts-target] Error 2
Note:
See TracTickets
for help on using tickets.