[mapguide-users] MapGuide 2.0.2 compile error : dbxml

Mike Toews mwtoews at sfu.ca
Thu Oct 9 14:23:56 EDT 2008


Hi all,
I'm trying to compile MGOS 2.0.2 on CentOS 5.2 with GCC 4.1.2. While 
running 'make', I get an error:

<after aclocal, etc. commands>
$ make
...
Making all in MdfParser
make[2]: Entering directory `/home/mwtoews/mapguide-2.0.2/Common/MdfParser'
...
/bin/sh ../../libtool --tag=CXX --mode=link g++  -O2 -g -pipe 
-march=i386 -mcpu=i686 -fno-use-cxa-atexit -fexceptions   -o 
libMgMdfParser.la -rpath /usr/local/mapguideopensource/lib -version-info 
7:0:0 -L../MdfModel -L../../Oem/dbxml-2.3.10/install/lib 
FSDSAX2Parser.lo IOAreaRule.lo IOAreaSymbolization2D.lo 
IOAreaTypeStyle.lo IOAreaUsage.lo IOAttributeRelate.lo 
IOBaseMapDefinition.lo IOBaseMapLayer.lo IOBaseMapLayerGroup.lo 
IOBlockSymbol.lo IOCalculatedProperty.lo IOChannelBand.lo 
IOCompositeRule.lo IOCompositeSymbolization.lo IOCompositeTypeStyle.lo 
IOCompoundSymbolDefinition.lo IODrawingLayerDefinition.lo 
IOElevationSettings.lo IOExtension.lo IOExtra.lo IOFeatureSource.lo 
IOFill.lo IOFontSymbol.lo IOGraphicElement.lo 
IOGraphicElementCollection.lo IOGridColor.lo IOGridColorBands.lo 
IOGridColorRule.lo IOGridColorStyle.lo IOGridLayerDefinition.lo 
IOGridScaleRange.lo IOGridSurfaceStyle.lo IOHillShade.lo IOImage.lo 
IOImageSymbol.lo IOLabel.lo IOLineRule.lo IOLineSymbolization2D.lo 
IOLineTypeStyle.lo IOLineUsage.lo IOMapDefinition.lo IOMapLayer.lo 
IOMapLayerCommon.lo IOMapLayerGroup.lo IOMapLayerGroupCommon.lo 
IOMarkSymbol.lo IONameStringPair.lo IOOverride.lo 
IOOverrideCollection.lo IOParameter.lo IOParameterCollection.lo 
IOPath.lo IOPointRule.lo IOPointSymbolization2D.lo IOPointTypeStyle.lo 
IOPointUsage.lo IORelateProperty.lo IOResizeBox.lo IOResourceRef.lo 
IOSimpleSymbol.lo IOSimpleSymbolDefinition.lo IOStroke.lo 
IOSupplementalSpatialContextInfo.lo IOSymbol.lo IOSymbolInstance.lo 
IOText.lo IOTextFrame.lo IOThemeLabel.lo IOUnknown.lo IOUtil.lo 
IOVectorLayerDefinition.lo IOVectorScaleRange.lo IOW2DSymbol.lo 
MdfParser.lo SAX2ElementHandler.lo SAX2Parser.lo -lMgMdfModel -lxerces-c
../../libtool: line 1905: cd: ../../Oem/dbxml-2.3.10/install/lib: No 
such file or directory
libtool: link: cannot determine absolute directory name of 
`../../Oem/dbxml-2.3.10/install/lib'
g++ -shared -nostdlib 
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crti.o 
/usr/lib/gcc/i386-redhat-linux/4.1.2/crtbeginS.o  .libs/FSDSAX2Parser.o 
.libs/IOAreaRule.o .libs/IOAreaSymbolization2D.o .libs/IOAreaTypeStyle.o 
.libs/IOAreaUsage.o .libs/IOAttributeRelate.o 
.libs/IOBaseMapDefinition.o .libs/IOBaseMapLayer.o 
.libs/IOBaseMapLayerGroup.o .libs/IOBlockSymbol.o 
.libs/IOCalculatedProperty.o .libs/IOChannelBand.o 
.libs/IOCompositeRule.o .libs/IOCompositeSymbolization.o 
.libs/IOCompositeTypeStyle.o .libs/IOCompoundSymbolDefinition.o 
.libs/IODrawingLayerDefinition.o .libs/IOElevationSettings.o 
.libs/IOExtension.o .libs/IOExtra.o .libs/IOFeatureSource.o 
.libs/IOFill.o .libs/IOFontSymbol.o .libs/IOGraphicElement.o 
.libs/IOGraphicElementCollection.o .libs/IOGridColor.o 
.libs/IOGridColorBands.o .libs/IOGridColorRule.o 
.libs/IOGridColorStyle.o .libs/IOGridLayerDefinition.o 
.libs/IOGridScaleRange.o .libs/IOGridSurfaceStyle.o .libs/IOHillShade.o 
.libs/IOImage.o .libs/IOImageSymbol.o .libs/IOLabel.o .libs/IOLineRule.o 
.libs/IOLineSymbolization2D.o .libs/IOLineTypeStyle.o 
.libs/IOLineUsage.o .libs/IOMapDefinition.o .libs/IOMapLayer.o 
.libs/IOMapLayerCommon.o .libs/IOMapLayerGroup.o 
.libs/IOMapLayerGroupCommon.o .libs/IOMarkSymbol.o 
.libs/IONameStringPair.o .libs/IOOverride.o .libs/IOOverrideCollection.o 
.libs/IOParameter.o .libs/IOParameterCollection.o .libs/IOPath.o 
.libs/IOPointRule.o .libs/IOPointSymbolization2D.o 
.libs/IOPointTypeStyle.o .libs/IOPointUsage.o .libs/IORelateProperty.o 
.libs/IOResizeBox.o .libs/IOResourceRef.o .libs/IOSimpleSymbol.o 
.libs/IOSimpleSymbolDefinition.o .libs/IOStroke.o 
.libs/IOSupplementalSpatialContextInfo.o .libs/IOSymbol.o 
.libs/IOSymbolInstance.o .libs/IOText.o .libs/IOTextFrame.o 
.libs/IOThemeLabel.o .libs/IOUnknown.o .libs/IOUtil.o 
.libs/IOVectorLayerDefinition.o .libs/IOVectorScaleRange.o 
.libs/IOW2DSymbol.o .libs/MdfParser.o .libs/SAX2ElementHandler.o 
.libs/SAX2Parser.o  -Wl,--rpath 
-Wl,/home/mwtoews/mapguide-2.0.2/Common/MdfModel/.libs -Wl,--rpath 
-Wl,/usr/local/mapguideopensource/lib 
-L/home/mwtoews/mapguide-2.0.2/Common/MdfModel 
-L../../Oem/dbxml-2.3.10/install/lib 
/home/mwtoews/mapguide-2.0.2/Common/MdfModel/.libs/libMgMdfModel.so 
-lxerces-c -L/usr/lib/gcc/i386-redhat-linux/4.1.2 
-L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../.. -lstdc++ -lm -lc -lgcc_s 
/usr/lib/gcc/i386-redhat-linux/4.1.2/crtendS.o 
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crtn.o  -march=i386 
-mcpu=i686 -Wl,-soname -Wl,libMgMdfParser.so.7 -o 
.libs/libMgMdfParser.so.7.0.0
/usr/bin/ld: cannot find -lxerces-c
collect2: ld returned 1 exit status
make[2]: *** [libMgMdfParser.la] Error 1
make[2]: Leaving directory `/home/mwtoews/mapguide-2.0.2/Common/MdfParser'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mwtoews/mapguide-2.0.2/Common'
make: *** [all-recursive] Error 1


The error specifically says that Oem/dbxml-2.3.10/install/lib does not 
exist. Here is the listing for the directory:
$ ls Oem/dbxml-2.3.10/
buildall.sh  db-4.5.20  dbxml  README  xerces-c-src  xqilla
(this is the same as 
http://svn.osgeo.org/mapguide/tags/MAPGUIDE2.0.2/Oem/dbxml-2.3.10/)

The first instance of Oem/dbxml-2.3.10/install in the make output is 
listed in the large output above.

Also note that I did the steps suggested in the documents at 
http://wiki.osgeo.org/wiki/Building_MapGuide_quick_starts_guides and my 
source code is from http://svn.osgeo.org/mapguide/tags/MAPGUIDE2.0.2

If this is indeed a bug, I'll file it on Trac. However, I don't know the 
history behind dbxml to assess this (searching for mapguide and dbxml 
pull out many interesting non-related results).

Any help would be great! Thanks in advance.

-Mike


More information about the mapguide-users mailing list