gdal above 1.2.3 not building (solved)

Benjamin Thelen bt at CCGIS.DE
Tue Nov 30 14:43:05 EST 2004


Sorry, my fault, forgot "make clean"!!

Benjamin Thelen wrote:
>
>
> Frank Warmerdam wrote:
>
>> On Tue, 30 Nov 2004 19:36:42 +0100, Benjamin Thelen <bt at ccgis.de> wrote:
>>
>>> Hi list, hello Frank,
>>>
>>> I have a SuSE 9.0 with gcc-3.3.1 running and try to install
>>> gdal-1.2.5. I receive the following error at the end of ./configure. I
>>> suppose, that this is the reason why "make" stops. The same ist true
>>> for gdal-1.2.4.
>>>
>>> configure: creating ./config.status
>>> config.status: creating GDALmake.opt
>>> sed: file ./confstatuuF913/subs-3.sed line 16: Unterminated `s' command
>>> config.status: creating port/cpl_config.h
>>> config.status: port/cpl_config.h is unchanged
>>>
>>> GDAL is now configured for i686-pc-linux-gnu
>>>
>>> GDALmake.opt is empty!?
>>>
>>> It is no problem to build gdal-1.2.3 and it is also no problem to
>>> build newer versions than 1.2.3 on debian with gcc-2.95.
>>>
>>> I hope to get Mr.SID support compiled successfully into the newer
>>> versions, because this files on 1.2.3 and earlier.
>>
>>
>>
>> Benjamin,
>> This is a bug with the mysql autoconfiguration logic. Just add
>> --without-mysql to the configure line.  This should be fixed in CVS
>> though, apparently the fix did
>> not make it into the 1.2.5 version.
>> Best regards,
>
>
>
> Well, thanks Frank, that did help! But now I run into another error.
> Something with ogr. Please see below.
>
> --without-ogr worked fine, but I need ogr!
>
>
> I read something about adding s57featuredefns.o into a makefile, but
> that was already there.
>
>
>
>
> Thanks again,
> Ben
>
> make[1]: Entering directory `/data/src/gdal-1.2.5/ogr'
> /bin/sh ../libtool --mode=compile g++ -Wall  -O2    -Iogrsf_frmts -I.
> -I../po
> rt -I../gcore -I../ogr -I../alg   -DHAVE_GEOS=1 -I/usr/local/include
> -I../por
> t  -c -o ogrinfo.o ogrinfo.cpp
>  g++ -Wall -O2 -Iogrsf_frmts -I. -I../port -I../gcore -I../ogr -I../alg
> -DHAV
> E_GEOS=1 -I/usr/local/include -I../port -c ogrinfo.cpp  -fPIC -DPIC -o
> .libs/
> ogrinfo.o
>  g++ -Wall -O2 -Iogrsf_frmts -I. -I../port -I../gcore -I../ogr -I../alg
> -DHAV
> E_GEOS=1 -I/usr/local/include -I../port -c ogrinfo.cpp -o ogrinfo.o
>  >/dev/nul
> l 2>&1
> /bin/sh ../libtool --mode=link  g++  ogrinfo.o ../libgdal.la -o ogrinfo
> g++ ogrinfo.o -o .libs/ogrinfo  ../.libs/libgdal.so -L/usr/local/lib
> /usr/loc
> al/lib/libgeos.so /usr/lib/libjpeg.so -lpng -lz -ldl -L/usr/lib -lpq
> /usr/lib
> /libstdc++.so
> ../.libs/libgdal.so: undefined reference to `GDALCopyWords'
> ../.libs/libgdal.so: undefined reference to
> `GDALDataset::IRasterIO(GDALRWFla
> g, int, int, int, int, void*, int, int, GDALDataType, int, int*, int,
> int, in
> t)'
> ../.libs/libgdal.so: undefined reference to `typeinfo for GDALRasterBand'
> ../.libs/libgdal.so: undefined reference to
> `GDALMajorObject::SetMetadataItem
> (char const*, char const*, char const*)'
> ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetDataset()'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::GetRasterDataTyp
> e()'
> ../.libs/libgdal.so: undefined reference to `GDALColorTable::Clone() const'
> ../.libs/libgdal.so: undefined reference to
> `GDALDataset::GetGCPProjection()'
> ../.libs/libgdal.so: undefined reference to `GDALDataset::Dereference()'
> ../.libs/libgdal.so: undefined reference to
> `GDALDataset::IBuildOverviews(cha
> r const*, int, int*, int, int*, int (*)(double, char const*, void*),
> void*)'
> ../.libs/libgdal.so: undefined reference to `GDALDataset::GetRasterCount()'
> ../.libs/libgdal.so: undefined reference to `GDALInitGCPs'
> ../.libs/libgdal.so: undefined reference to `GDALDestroyScaledProgress'
> ../.libs/libgdal.so: undefined reference to
> `GDALMajorObject::GetMetadataItem
> (char const*, char const*)'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::GetOverview(int)
> '
> ../.libs/libgdal.so: undefined reference to
> `GDALColorTable::GetColorEntryAsR
> GB(int, GDALColorEntry*) const'
> ../.libs/libgdal.so: undefined reference to `GDALDataset::GetRasterXSize()'
> ../.libs/libgdal.so: undefined reference to
> `GDALWarpOperation::Initialize(GD
> ALWarpOptions const*)'
> ../.libs/libgdal.so: undefined reference to `GDALDriver::~GDALDriver
> [not-in-
> charge]()'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::ReadBlock(int, i
> nt, void*)'
> ../.libs/libgdal.so: undefined reference to `GDALDataset::GetGCPCount()'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::~GDALRasterBand
> [not-in-charge]()'
> ../.libs/libgdal.so: undefined reference to
> `GDALWarpOperation::WarpRegionToB
> uffer(int, int, int, int, void*, GDALDataType, int, int, int, int)'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::GetScale(int*)'
> ../.libs/libgdal.so: undefined reference to `typeinfo for GDALMajorObject'
> ../.libs/libgdal.so: undefined reference to `GDALGetRasterBandYSize'
> ../.libs/libgdal.so: undefined reference to `GDALGetGeoTransform'
> ../.libs/libgdal.so: undefined reference to `GDALDataset::GetRasterYSize()'
> ../.libs/libgdal.so: undefined reference to
> `GDALDataset::GetInternalHandle(c
> har const*)'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::HasArbitraryOver
> views()'
> ../.libs/libgdal.so: undefined reference to
> `GDALDataset::SetProjection(char
> const*)'
> ../.libs/libgdal.so: undefined reference to `GDALApproxTransform'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::SetColorInterpre
> tation(GDALColorInterp)'
> ../.libs/libgdal.so: undefined reference to `GDALDataset::GetGCPs()'
> ../.libs/libgdal.so: undefined reference to
> `GDALDataset::GDALDataset[not-in-
> charge]()'
> ../.libs/libgdal.so: undefined reference to
> `GDALMajorObject::~GDALMajorObjec
> t [not-in-charge]()'
> ../.libs/libgdal.so: undefined reference to
> `GDALWarpOperation::GDALWarpOpera
> tion[in-charge]()'
> ../.libs/libgdal.so: undefined reference to `GDALGetDataTypeSize'
> ../.libs/libgdal.so: undefined reference to
> `GDALColorTable::~GDALColorTable
> [in-charge]()'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::IsBlockCached(in
> t, int)'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::IWriteBlock(int,
>  int, void*)'
> ../.libs/libgdal.so: undefined reference to `GDALGCPsToGeoTransform'
> ../.libs/libgdal.so: undefined reference to `GDALDataset::~GDALDataset
> [not-i
> n-charge]()'
> ../.libs/libgdal.so: undefined reference to `GDALDestroyWarpOptions'
> ../.libs/libgdal.so: undefined reference to
> `GDALMajorObject::SetMetadata(cha
> r**, char const*)'
> ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetUnitType()'
> ../.libs/libgdal.so: undefined reference to `GDALGetRasterBandXSize'
> ../.libs/libgdal.so: undefined reference to `GDALDataset::SetGCPs(int,
> GDAL_G
> CP const*, char const*)'
> ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetXSize()'
> ../.libs/libgdal.so: undefined reference to `GDALDereferenceDataset'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::GetBlockRef(int,
>  int, int)'
> ../.libs/libgdal.so: undefined reference to
> `GDALColorTable::GetColorEntryCou
> nt() const'
> ../.libs/libgdal.so: undefined reference to `GDALDuplicateGCPs'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::SetColorTable(GD
> ALColorTable*)'
> ../.libs/libgdal.so: undefined reference to
> `GDALCreateGenImgProjTransformer'
> ../.libs/libgdal.so: undefined reference to
> `GDALDriver::GDALDriver[in-charge
> ]()'
> ../.libs/libgdal.so: undefined reference to `GDALCreateApproxTransformer'
> ../.libs/libgdal.so: undefined reference to `GDALDriver::Delete(char
> const*)'
> ../.libs/libgdal.so: undefined reference to `GDALSwapWords'
> ../.libs/libgdal.so: undefined reference to `GDALGetGCPProjection'
> ../.libs/libgdal.so: undefined reference to `GDALDummyProgress'
> ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetAccess()'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::WriteBlock(int,
> int, void*)'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::GetCategoryNames
> ()'
> ../.libs/libgdal.so: undefined reference to `GDALReadWorldFile'
> ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetBand()'
> ../.libs/libgdal.so: undefined reference to
> `GDALDefaultOverviews::Initialize
> (GDALDataset*, char const*, int)'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::BuildOverviews(c
> har const*, int, int*, int (*)(double, char const*, void*), void*)'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::GDALRasterBand[n
> ot-in-charge]()'
> ../.libs/libgdal.so: undefined reference to
> `GDALMajorObject::GetMetadata(cha
> r const*)'
> ../.libs/libgdal.so: undefined reference to
> `GDALDataset::BlockBasedRasterIO(
> GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, int,
> int*, int
> , int, int)'
> ../.libs/libgdal.so: undefined reference to `GDALRegenerateOverviews'
> ../.libs/libgdal.so: undefined reference to `GDALRasterBand::GetYSize()'
> ../.libs/libgdal.so: undefined reference to
> `GDALMajorObject::SetDescription(
> char const*)'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::GetOverviewCount
> ()'
> ../.libs/libgdal.so: undefined reference to `GDALRasterIO'
> ../.libs/libgdal.so: undefined reference to `GDALDataset::Reference()'
> ../.libs/libgdal.so: undefined reference to `GDALOpen'
> ../.libs/libgdal.so: undefined reference to
> `GDALMajorObject::GDALMajorObject
> [not-in-charge]()'
> ../.libs/libgdal.so: undefined reference to `GDALDriver::Create(char
> const*,
> int, int, int, GDALDataType, char**)'
> ../.libs/libgdal.so: undefined reference to
> `GDALDataset::AddBand(GDALDataTyp
> e, char**)'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::OverviewRasterIO
> (GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, int, int)'
> ../.libs/libgdal.so: undefined reference to
> `GDALWarpOperation::GetOptions()'
> ../.libs/libgdal.so: undefined reference to `GDALDataset::FlushCache()'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::SetCategoryNames
> (char**)'
> ../.libs/libgdal.so: undefined reference to `GDALDataTypeUnion'
> ../.libs/libgdal.so: undefined reference to `GDALDataset::GetShared()'
> ../.libs/libgdal.so: undefined reference to
> `GDALDataset::GetProjectionRef()'
> ../.libs/libgdal.so: undefined reference to `GDALGetRasterBand'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::SetNoDataValue(d
> ouble)'
> ../.libs/libgdal.so: undefined reference to `GDALSerializeWarpOptions'
> ../.libs/libgdal.so: undefined reference to `GDALCreateScaledProgress'
> ../.libs/libgdal.so: undefined reference to `GDALReprojectImage'
> ../.libs/libgdal.so: undefined reference to `GDALSetProjection'
> ../.libs/libgdal.so: undefined reference to `GDALWriteWorldFile'
> ../.libs/libgdal.so: undefined reference to `typeinfo for GDALDataset'
> ../.libs/libgdal.so: undefined reference to `GDALCreateWarpOptions'
> ../.libs/libgdal.so: undefined reference to `GDALScaledProgress'
> ../.libs/libgdal.so: undefined reference to
> `GDALDriver::GDALDriver[not-in-ch
> arge]()'
> ../.libs/libgdal.so: undefined reference to `GDALDeinitGCPs'
> ../.libs/libgdal.so: undefined reference to `GDALCloneWarpOptions'
> ../.libs/libgdal.so: undefined reference to `GDALDataset::GetDriver()'
> ../.libs/libgdal.so: undefined reference to
> `GDALSetGenImgProjTransformerDstG
> eoTransform'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::IRasterIO(GDALRW
> Flag, int, int, int, int, void*, int, int, GDALDataType, int, int)'
> ../.libs/libgdal.so: undefined reference to
> `GDALDataset::RasterInitialize(in
> t, int)'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::GetColorInterpre
> tation()'
> ../.libs/libgdal.so: undefined reference to `GDALGetRasterCount'
> ../.libs/libgdal.so: undefined reference to `GDALReferenceDataset'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::GetOffset(int*)'
> ../.libs/libgdal.so: undefined reference to `GDALGetProjectionRef'
> ../.libs/libgdal.so: undefined reference to `GDALVersionInfo'
> ../.libs/libgdal.so: undefined reference to
> `GDALDataset::RasterIO(GDALRWFlag
> , int, int, int, int, void*, int, int, GDALDataType, int, int*, int,
> int, int
> )'
> ../.libs/libgdal.so: undefined reference to
> `GDALDataset::GetGeoTransform(dou
> ble*)'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::GetNoDataValue(i
> nt*)'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::RasterIO(GDALRWF
> lag, int, int, int, int, void*, int, int, GDALDataType, int, int)'
> ../.libs/libgdal.so: undefined reference to `GDALGetGCPCount'
> ../.libs/libgdal.so: undefined reference to
> `GDALDataset::GetRasterBand(int)'
> ../.libs/libgdal.so: undefined reference to
> `GDALDataset::SetGeoTransform(dou
> ble*)'
> ../.libs/libgdal.so: undefined reference to
> `GDALGetColorInterpretationName'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::GetColorTable()'
> ../.libs/libgdal.so: undefined reference to `GDALOpenShared'
> ../.libs/libgdal.so: undefined reference to `GDALDataset::SetBand(int,
> GDALRa
> sterBand*)'
> ../.libs/libgdal.so: undefined reference to
> `GDALMajorObject::GetDescription(
> ) const'
> ../.libs/libgdal.so: undefined reference to `GDALGetDataTypeName'
> ../.libs/libgdal.so: undefined reference to `GDALDeserializeWarpOptions'
> ../.libs/libgdal.so: undefined reference to
> `GDALDataset::BuildOverviews(char
>  const*, int, int*, int, int*, int (*)(double, char const*, void*), void*)'
> ../.libs/libgdal.so: undefined reference to
> `GDALColorTable::GDALColorTable[i
> n-charge](GDALPaletteInterp)'
> ../.libs/libgdal.so: undefined reference to
> `GDALColorTable::SetColorEntry(in
> t, GDALColorEntry const*)'
> ../.libs/libgdal.so: undefined reference to `GDALSuggestedWarpOutput'
> ../.libs/libgdal.so: undefined reference to `GDALGetBandDataset'
> ../.libs/libgdal.so: undefined reference to `typeinfo for GDALDriver'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::GetMaximum(int*)
> '
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::GetBlockSize(int
> *, int*)'
> ../.libs/libgdal.so: undefined reference to `GDALDataTypeIsComplex'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::Fill(double, dou
> ble)'
> ../.libs/libgdal.so: undefined reference to `GDALGenImgProjTransform'
> ../.libs/libgdal.so: undefined reference to `GDALClose'
> ../.libs/libgdal.so: undefined reference to `GDALReadTabFile'
> ../.libs/libgdal.so: undefined reference to
> `GDALRasterBand::GetMinimum(int*)
> '
> ../.libs/libgdal.so: undefined reference to `GDALRasterBand::FlushCache()'
> collect2: ld returned 1 exit status
> make[1]: *** [ogrinfo] Error 1
> make[1]: Leaving directory `/data/src/gdal-1.2.5/ogr'
> make: *** [ogr-apps] Error 2
>
>



More information about the mapserver-users mailing list