[Mapserver-users] Mapserver compile problem with GDAL and OGR

pw p.willis at telus.net
Tue Dec 9 17:51:09 EST 2003


Hello,

I am compiling mapserver with gdal and ogr. The gdal build is --with-ogr and
ogr is included in the gdal
build. For some reason I am not getting a number of OGR class member
functions defined in libgdal.1.1.so
when I do my gdal compile. I've tried deleting config.cache, config.status
and worked my way through
all the */lib directories on the machine to make sure I don't have anything
but one instance of libgdal,
ogr.a , etc..
I thought there may be something else that I am missing.
./configure for mapserver has no problems finding either gdal or ogr......

Thanks for any help,

Peter


I get the following errors on compile:



[mapserver-4.0]# make

gcc -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL     -DUSE_TIFF -DUSE_JPEG -
DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -
DUSE_POSTGIS    -I/usr/local/include         -I/usr/local/include -I/usr/loc
al/include -I/usr/local/pgsql/include




2img.o  -L. -lmap -lgd -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz    
-ltiff -ljpeg -lfreetype -lpng -lz    -ljpeg  -L/usr/local/lib -lgdal.1.1   
-L/usr/local/pgsql/lib -lpq      -lm -lstdc++   -o shp2img
./libmap.a(mapogr.o): In function `ogrGeomPoints(OGRGeometry *, shapeObj
*)':
mapogr.o(.text+0x15e): undefined reference to
`OGRPolygon::getExteriorRing(void)'
mapogr.o(.text+0x185): undefined reference to
`OGRPolygon::getInteriorRing(int)'
mapogr.o(.text+0x1a1): undefined reference to
`OGRPolygon::getNumInteriorRings(void)'
mapogr.o(.text+0x1c7): undefined reference to
`OGRGeometryCollection::getNumGeometries(void)'
mapogr.o(.text+0x33f): undefined reference to
`OGRPolygon::getExteriorRing(void)'
mapogr.o(.text+0x34d): undefined reference to
`OGRPolygon::getInteriorRing(int)'
mapogr.o(.text+0x3a8): undefined reference to
`OGRPolygon::getNumInteriorRings(void)'
mapogr.o(.text+0x3d6): undefined reference to
`OGRGeometryCollection::getGeometryRef(int)'
./libmap.a(mapogr.o): In function `ogrGeomLine(OGRGeometry *, shapeObj *,
int)':
mapogr.o(.text+0x49a): undefined reference to
`OGRPolygon::getExteriorRing(void)'
mapogr.o(.text+0x4a5): undefined reference to
`OGRPolygon::getInteriorRing(int)'
mapogr.o(.text+0x4cd): undefined reference to
`OGRPolygon::getNumInteriorRings(void)'
mapogr.o(.text+0x53f): undefined reference to
`OGRGeometryCollection::getGeometryRef(int)'
mapogr.o(.text+0x55e): undefined reference to
`OGRGeometryCollection::getNumGeometries(void)'
./libmap.a(mapogr.o): In function `msOGRGetValues(layer_obj *, OGRFeature
*)':
mapogr.o(.text+0x9b3): undefined reference to
`OGRFeature::GetFieldAsString(int)'
mapogr.o(.text+0x9cd): undefined reference to `__builtin_new'
mapogr.o(.text+0x9d9): undefined reference to
`OGRStyleMgr::OGRStyleMgr(OGRStyleTable *)'
mapogr.o(.text+0x9e8): undefined reference to
`OGRStyleMgr::InitFromFeature(OGRFeature *)'
mapogr.o(.text+0x9f5): undefined reference to `OGRStyleMgr::GetPart(int,
char const *)'
mapogr.o(.text+0xa07): undefined reference to `OGRStyleTool::GetType(void)'
mapogr.o(.text+0xa86): undefined reference to
`OGRStyleTool::GetParamStr(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0xad6): undefined reference to
`OGRStyleMgr::~OGRStyleMgr(void)'
mapogr.o(.text+0xaff): undefined reference to `__builtin_delete'
mapogr.o(.text+0xb0f): undefined reference to `__rethrow'
./libmap.a(mapogr.o): In function `msOGCWKT2ProjectionObj':
mapogr.o(.text+0xb62): undefined reference to
`OGRSpatialReference::OGRSpatialReference(char const *)'
mapogr.o(.text+0xb71): undefined reference to
`OGRSpatialReference::importFromWkt(char **)'
mapogr.o(.text+0xb94): undefined reference to
`OGRSpatialReference::~OGRSpatialReference(void)'
mapogr.o(.text+0xbb9): undefined reference to
`OGRSpatialReference::~OGRSpatialReference(void)'
mapogr.o(.text+0xbcd): undefined reference to
`OGRSpatialReference::~OGRSpatialReference(void)'
mapogr.o(.text+0xbda): undefined reference to `__rethrow'
mapogr.o(.text+0xbe9): undefined reference to `__rethrow'
mapogr.o(.text+0xbf9): undefined reference to `__rethrow'
mapogr.o(.text+0xc01): undefined reference to `terminate(void)'
./libmap.a(mapogr.o): In function `msOGRFileOpen(layer_obj *, char const
*)':
mapogr.o(.text+0xd70): undefined reference to
`OGRSFDriverRegistrar::Open(char const *, int, OGRSFDriver **)'
./libmap.a(mapogr.o): In function `msOGRFileWhichShapes(layer_obj *,
rectObj, ms_ogr_file_info_t *)':
mapogr.o(.text+0x110e): undefined reference to
`OGRLinearRing::OGRLinearRing(void)'
mapogr.o(.text+0x1118): undefined reference to
`OGRLineString::setNumPoints(int)'
mapogr.o(.text+0x1134): undefined reference to `OGRLineString::setPoint(int,
double, double, double)'
mapogr.o(.text+0x1153): undefined reference to `OGRLineString::setPoint(int,
double, double, double)'
mapogr.o(.text+0x1172): undefined reference to `OGRLineString::setPoint(int,
double, double, double)'
mapogr.o(.text+0x1191): undefined reference to `OGRLineString::setPoint(int,
double, double, double)'
mapogr.o(.text+0x11b0): undefined reference to `OGRLineString::setPoint(int,
double, double, double)'
mapogr.o(.text+0x11eb): undefined reference to `OGRLinearRing virtual table'
mapogr.o(.text+0x11f5): undefined reference to
`OGRLineString::~OGRLineString(void)'
mapogr.o(.text+0x120a): undefined reference to `OGRLinearRing virtual table'
mapogr.o(.text+0x1210): undefined reference to
`OGRLineString::~OGRLineString(void)'
mapogr.o(.text+0x121c): undefined reference to `__rethrow'
mapogr.o(.text+0x1229): undefined reference to `__rethrow'
mapogr.o(.text+0x1231): undefined reference to `terminate(void)'
./libmap.a(mapogr.o): In function `msOGRFileGetItems(layer_obj *,
ms_ogr_file_info_t *)':
mapogr.o(.text+0x12c0): undefined reference to
`OGRFeatureDefn::GetFieldDefn(int)'
./libmap.a(mapogr.o): In function `msOGRFileReadTile(layer_obj *,
ms_ogr_file_info_t *, int)':
mapogr.o(.text+0x15e1): undefined reference to
`OGRFeatureDefn::GetFieldIndex(char const *)'
mapogr.o(.text+0x15ea): undefined reference to
`OGRFeature::GetFieldAsString(int)'
./libmap.a(mapogr.o): In function `msOGRLayerOpen':
mapogr.o(.text+0x176f): undefined reference to
`OGRFeatureDefn::GetFieldDefn(int)'
./libmap.a(mapogr.o): In function `msOGRLayerInitItemInfo':
mapogr.o(.text+0x1afb): undefined reference to
`OGRFeatureDefn::GetFieldIndex(char const *)'
./libmap.a(mapogr.o): In function `msOGRLayerGetAutoStyle':
mapogr.o(.text+0x1f3b): undefined reference to `__builtin_new'
mapogr.o(.text+0x1f48): undefined reference to
`OGRStyleMgr::OGRStyleMgr(OGRStyleTable *)'
mapogr.o(.text+0x1f57): undefined reference to
`OGRStyleMgr::InitFromFeature(OGRFeature *)'
mapogr.o(.text+0x1f64): undefined reference to
`OGRStyleMgr::GetPartCount(char const *)'
mapogr.o(.text+0x1f8c): undefined reference to `OGRStyleMgr::GetPart(int,
char const *)'
mapogr.o(.text+0x1fbc): undefined reference to
`OGRStyleTool::SetUnit(ogr_style_tool_units_id, double)'
mapogr.o(.text+0x1fc4): undefined reference to `OGRStyleTool::GetType(void)'
mapogr.o(.text+0x1fe6): undefined reference to
`OGRStyleTool::GetParamStr(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0x201a): undefined reference to
`OGRStyleTool::GetParamDbl(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0x2039): undefined reference to
`OGRStyleTool::GetParamDbl(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0x207b): undefined reference to
`OGRStyleTool::GetParamStr(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0x209d): undefined reference to
`OGRStyleTool::GetRGBFromString(char const *, int &, int &, int &, int &)'
mapogr.o(.text+0x20d3): undefined reference to
`OGRStyleTool::GetParamStr(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0x20e9): undefined reference to
`OGRStyleTool::GetRGBFromString(char const *, int &, int &, int &, int &)'
mapogr.o(.text+0x2123): undefined reference to
`OGRStyleTool::GetParamStr(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0x21c5): undefined reference to `OGRStyleTool::GetType(void)'
mapogr.o(.text+0x21e5): undefined reference to
`OGRStyleTool::GetParamStr(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0x224c): undefined reference to
`OGRStyleTool::GetParamStr(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0x2265): undefined reference to
`OGRStyleTool::GetRGBFromString(char const *, int &, int &, int &, int &)'
mapogr.o(.text+0x2298): undefined reference to
`OGRStyleTool::GetParamDbl(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0x23bd): undefined reference to `OGRStyleTool::GetType(void)'
mapogr.o(.text+0x23e2): undefined reference to
`OGRStyleTool::GetParamStr(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0x244e): undefined reference to
`OGRStyleTool::GetParamStr(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0x2467): undefined reference to
`OGRStyleTool::GetRGBFromString(char const *, int &, int &, int &, int &)'
mapogr.o(.text+0x24a2): undefined reference to
`OGRStyleTool::GetParamStr(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0x24b5): undefined reference to
`OGRStyleTool::GetRGBFromString(char const *, int &, int &, int &, int &)'
mapogr.o(.text+0x24f8): undefined reference to
`OGRStyleTool::GetParamStr(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0x2516): undefined reference to `OGRStyleTool::GetType(void)'
mapogr.o(.text+0x2538): undefined reference to
`OGRStyleTool::GetParamStr(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0x2551): undefined reference to
`OGRStyleTool::GetRGBFromString(char const *, int &, int &, int &, int &)'
mapogr.o(.text+0x258f): undefined reference to
`OGRStyleTool::GetParamDbl(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0x25be): undefined reference to
`OGRStyleTool::GetParamStr(ogr_style_param &, ogr_style_value &, int &)'
mapogr.o(.text+0x2625): undefined reference to
`OGRStyleMgr::~OGRStyleMgr(void)'
mapogr.o(.text+0x263e): undefined reference to `__builtin_delete'
mapogr.o(.text+0x264e): undefined reference to `__rethrow'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1

[mapserver-4.0]#






More information about the mapserver-users mailing list