[fdo-users] Multiple problems with build_thirdparty: XALAN then GDAL UnitTest

Gregor Mosheh gregor at hostgis.com
Tue Jul 10 15:47:48 EDT 2007


Hi, all. I'm trying to build FDO on Linux, and am having some problems.

First one, with XALAN. Strangely, this failure doesn't halt the build 
process. It continues on with the linux/cppunit stuff. Is that proper 
behavior?

make[3]: Entering directory 
`/tmp/OpenSource_FDO/Thirdparty/apache/xml-xalan/c/src/xalanc/Utils/MsgCreator'

[... it builds a few ... ]

g++ -DLINUX -fPIC -DXALAN_INMEM_MSG_LOADER   \
           -lm  -lpthread 
-L/tmp/OpenSource_FDO/Thirdparty/apache/xml-xerces/c/lib -lxerces-c 
../../../../obj/MsgFileOutputStream.o ../../../../obj/ICUResHandler.o 
../../../../obj/InMemHandler.o ../../../../obj/MsgCreator.o 
../../../../obj/NLSHandler.o ../../../../obj/SAX2Handler.o -o 
../../../../bin/MsgCreator
../../../../obj/MsgFileOutputStream.o: In function 
`XalanFileOutputStream::write(char const*, unsigned int)':
MsgFileOutputStream.cpp:(.text+0x657): undefined reference to 
`xercesc_2_5::XMLString::transcode(char const*)'
MsgFileOutputStream.cpp:(.text+0x670): undefined reference to 
`xercesc_2_5::XMLString::release(unsigned short**)'
../../../../obj/MsgFileOutputStream.o: In function 
`XalanFileOutputStream::writeAsASCII(unsigned short const*, unsigned int)':
MsgFileOutputStream.cpp:(.text+0x6a7): undefined reference to 
`xercesc_2_5::XMLString::transcode(unsigned short const*)'
MsgFileOutputStream.cpp:(.text+0x6c0): undefined reference to 
`xercesc_2_5::XMLString::release(char**)'
../../../../obj/ICUResHandler.o: In function 
`ICUResHandler::endElement(unsigned short const*, unsigned short const*, 
unsigned short const*)':
ICUResHandler.cpp:(.text+0x3ab): undefined reference to 
`xercesc_2_5::XMLString::compareString(unsigned short const*, unsigned 
short const*)'
../../../../obj/ICUResHandler.o: In function 
`ICUResHandler::startElement(unsigned short const*, unsigned short 
const*, unsigned short const*, xercesc_2_5::Attributes const&)':
ICUResHandler.cpp:(.text+0x407): undefined reference to 
`xercesc_2_5::XMLString::compareString(unsigned short const*, unsigned 
short const*)'
ICUResHandler.cpp:(.text+0x44b): undefined reference to 
`xercesc_2_5::XMLString::compareString(unsigned short const*, unsigned 
short const*)'
../../../../obj/ICUResHandler.o: In function 
`xercesc_2_5::DefaultHandler::fatalError(xercesc_2_5::SAXParseException 
const&)':
ICUResHandler.cpp:(.gnu.linkonce.t._ZN11xercesc_2_514DefaultHandler10fatalErrorERKNS_17SAXParseExceptionE+0x35): 
undefined reference to 
`xercesc_2_5::SAXParseException::SAXParseException(xercesc_2_5::SAXParseException 
const&)'
ICUResHandler.cpp:(.gnu.linkonce.t._ZN11xercesc_2_514DefaultHandler10fatalErrorERKNS_17SAXParseExceptionE+0x3c): 
undefined reference to 
`xercesc_2_5::SAXParseException::~SAXParseException()'
ICUResHandler.cpp:(.gnu.linkonce.t._ZN11xercesc_2_514DefaultHandler10fatalErrorERKNS_17SAXParseExceptionE+0x43): 
undefined reference to `typeinfo for xercesc_2_5::SAXParseException'
../../../../obj/InMemHandler.o: In function 
`InMemHandler::endElement(unsigned short const*, unsigned short const*, 
unsigned short const*)':
InMemHandler.cpp:(.text+0x41b): undefined reference to 
`xercesc_2_5::XMLString::compareString(unsigned short const*, unsigned 
short const*)'
../../../../obj/InMemHandler.o: In function 
`InMemHandler::startElement(unsigned short const*, unsigned short 
const*, unsigned short const*, xercesc_2_5::Attributes const&)':
InMemHandler.cpp:(.text+0x477): undefined reference to 
`xercesc_2_5::XMLString::compareString(unsigned short const*, unsigned 
short const*)'
InMemHandler.cpp:(.text+0x4bb): undefined reference to 
`xercesc_2_5::XMLString::compareString(unsigned short const*, unsigned 
short const*)'
../../../../obj/MsgCreator.o: In function `main':
MsgCreator.cpp:(.text+0x379): undefined reference to 
`xercesc_2_5::XMLUni::fgXercescDefaultLocale'
MsgCreator.cpp:(.text+0x37e): undefined reference to 
`xercesc_2_5::XMLPlatformUtils::Initialize(char const*, char const*, 
xercesc_2_5::PanicHandler*, xercesc_2_5::MemoryManager*)'
MsgCreator.cpp:(.text+0x385): undefined reference to 
`xercesc_2_5::XMLPlatformUtils::fgMemoryManager'
MsgCreator.cpp:(.text+0x395): undefined reference to 
`xercesc_2_5::XMemory::operator new(unsigned long, 
xercesc_2_5::MemoryManager*)'
MsgCreator.cpp:(.text+0x3a5): undefined reference to 
`xercesc_2_5::SAX2XMLReaderImpl::SAX2XMLReaderImpl(xercesc_2_5::MemoryManager*, 
xercesc_2_5::XMLGrammarPool*)'
MsgCreator.cpp:(.text+0x3b1): undefined reference to 
`xercesc_2_5::XMLUni::fgSAX2CoreValidation'
MsgCreator.cpp:(.text+0x3c6): undefined reference to 
`xercesc_2_5::XMLUni::fgXercesDynamic'
MsgCreator.cpp:(.text+0x3d8): undefined reference to 
`xercesc_2_5::XMLUni::fgSAX2CoreNameSpaces'
MsgCreator.cpp:(.text+0x3ed): undefined reference to 
`xercesc_2_5::XMLUni::fgXercesSchema'
MsgCreator.cpp:(.text+0x3ff): undefined reference to 
`xercesc_2_5::XMLUni::fgXercesSchemaFullChecking'
MsgCreator.cpp:(.text+0x411): undefined reference to 
`xercesc_2_5::XMLUni::fgSAX2CoreNameSpacePrefixes'
MsgCreator.cpp:(.text+0x51c): undefined reference to 
`xercesc_2_5::XMLPlatformUtils::Terminate()'
MsgCreator.cpp:(.text+0x57f): undefined reference to 
`xercesc_2_5::XMLString::transcode(unsigned short const*)'
MsgCreator.cpp:(.text+0x5a2): undefined reference to 
`xercesc_2_5::XMLString::release(char**)'
MsgCreator.cpp:(.text+0x5c0): undefined reference to 
`xercesc_2_5::XMemory::operator delete(void*, xercesc_2_5::MemoryManager*)'
MsgCreator.cpp:(.text+0x5df): undefined reference to 
`xercesc_2_5::XMLString::release(char**)'
MsgCreator.cpp:(.text+0x694): undefined reference to 
`xercesc_2_5::XMLString::transcode(unsigned short const*)'
MsgCreator.cpp:(.text+0x6b7): undefined reference to 
`xercesc_2_5::XMLString::release(char**)'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_513XMLAttDefListE+0x20): 
undefined reference to `xercesc_2_5::XMLAttDefList::isSerializable() const'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_513XMLAttDefListE+0x28): 
undefined reference to 
`xercesc_2_5::XMLAttDefList::serialize(xercesc_2_5::XSerializeEngine&)'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_513XMLAttDefListE+0x30): 
undefined reference to `xercesc_2_5::XMLAttDefList::getProtoType() const'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_513DTDEntityDeclE+0x20): 
undefined reference to `xercesc_2_5::DTDEntityDecl::isSerializable() const'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_513DTDEntityDeclE+0x28): 
undefined reference to 
`xercesc_2_5::DTDEntityDecl::serialize(xercesc_2_5::XSerializeEngine&)'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_513DTDEntityDeclE+0x30): 
undefined reference to `xercesc_2_5::DTDEntityDecl::getProtoType() const'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTIN11xercesc_2_513DTDEntityDeclE+0x10): 
undefined reference to `typeinfo for xercesc_2_5::XMLEntityDecl'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_510XMLRefInfoE+0x20): 
undefined reference to `xercesc_2_5::XMLRefInfo::isSerializable() const'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_510XMLRefInfoE+0x28): 
undefined reference to 
`xercesc_2_5::XMLRefInfo::serialize(xercesc_2_5::XSerializeEngine&)'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_510XMLRefInfoE+0x30): 
undefined reference to `xercesc_2_5::XMLRefInfo::getProtoType() const'
../../../../obj/MsgCreator.o: In function 
`xercesc_2_5::XMLAttDefList::~XMLAttDefList()':
MsgCreator.cpp:(.gnu.linkonce.t._ZN11xercesc_2_513XMLAttDefListD0Ev+0xf): 
undefined reference to `xercesc_2_5::XMemory::operator delete(void*)'
../../../../obj/MsgCreator.o: In function 
`xercesc_2_5::DTDEntityDecl::~DTDEntityDecl()':
MsgCreator.cpp:(.gnu.linkonce.t._ZN11xercesc_2_513DTDEntityDeclD1Ev+0x13): 
undefined reference to `xercesc_2_5::XMLEntityDecl::~XMLEntityDecl()'
../../../../obj/MsgCreator.o: In function 
`xercesc_2_5::DTDEntityDecl::~DTDEntityDecl()':
MsgCreator.cpp:(.gnu.linkonce.t._ZN11xercesc_2_513DTDEntityDeclD0Ev+0x13): 
undefined reference to `xercesc_2_5::XMLEntityDecl::~XMLEntityDecl()'
MsgCreator.cpp:(.gnu.linkonce.t._ZN11xercesc_2_513DTDEntityDeclD0Ev+0x1c): 
undefined reference to `xercesc_2_5::XMemory::operator delete(void*)'
../../../../obj/MsgCreator.o: In function 
`xercesc_2_5::XMLRefInfo::~XMLRefInfo()':
MsgCreator.cpp:(.gnu.linkonce.t._ZN11xercesc_2_510XMLRefInfoD0Ev+0x33): 
undefined reference to `xercesc_2_5::XMemory::operator delete(void*)'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d.DW.ref._ZTIN11xercesc_2_512XMLExceptionE+0x0): 
undefined reference to `typeinfo for xercesc_2_5::XMLException'
../../../../obj/SAX2Handler.o: In function `SAX2Handler::~SAX2Handler()':
SAX2Handler.cpp:(.text+0x219): undefined reference to 
`xercesc_2_5::XMLString::release(unsigned short**)'
../../../../obj/SAX2Handler.o: In function `SAX2Handler::~SAX2Handler()':
SAX2Handler.cpp:(.text+0x359): undefined reference to 
`xercesc_2_5::XMLString::release(unsigned short**)'
../../../../obj/SAX2Handler.o: In function `SAX2Handler::~SAX2Handler()':
SAX2Handler.cpp:(.text+0x499): undefined reference to 
`xercesc_2_5::XMLString::release(unsigned short**)'
../../../../obj/SAX2Handler.o: In function 
`SAX2Handler::printToIndexFile(char const**)':
SAX2Handler.cpp:(.text+0x5ca): undefined reference to 
`xercesc_2_5::XMLString::stringLen(char const*)'
../../../../obj/SAX2Handler.o: In function 
`SAX2Handler::startElement(unsigned short const*, unsigned short const*, 
unsigned short const*, xercesc_2_5::Attributes const&)':
SAX2Handler.cpp:(.text+0x676): undefined reference to 
`xercesc_2_5::XMLString::compareString(unsigned short const*, unsigned 
short const*)'
SAX2Handler.cpp:(.text+0x705): undefined reference to 
`xercesc_2_5::XMLString::compareString(unsigned short const*, unsigned 
short const*)'
SAX2Handler.cpp:(.text+0x77f): undefined reference to 
`xercesc_2_5::XMLString::stringLen(char const*)'
../../../../obj/SAX2Handler.o: In function 
`SAX2Handler::error(xercesc_2_5::SAXParseException const&)':
SAX2Handler.cpp:(.text+0x7bf): undefined reference to 
`xercesc_2_5::SAXParseException::getColumnNumber() const'
SAX2Handler.cpp:(.text+0x7ca): undefined reference to 
`xercesc_2_5::SAXParseException::getLineNumber() const'
SAX2Handler.cpp:(.text+0x7eb): undefined reference to 
`xercesc_2_5::SAXParseException::getSystemId() const'
SAX2Handler.cpp:(.text+0x7f3): undefined reference to 
`xercesc_2_5::XMLString::transcode(unsigned short const*)'
SAX2Handler.cpp:(.text+0x85b): undefined reference to 
`xercesc_2_5::XMLString::transcode(unsigned short const*)'
SAX2Handler.cpp:(.text+0x87b): undefined reference to 
`xercesc_2_5::XMLString::release(char**)'
SAX2Handler.cpp:(.text+0x885): undefined reference to 
`xercesc_2_5::XMLString::release(char**)'
SAX2Handler.cpp:(.text+0x8ab): undefined reference to 
`xercesc_2_5::XMLString::release(char**)'
SAX2Handler.cpp:(.text+0x8be): undefined reference to 
`xercesc_2_5::XMLString::release(char**)'
../../../../obj/SAX2Handler.o: In function 
`SAX2Handler::fatalError(xercesc_2_5::SAXParseException const&)':
SAX2Handler.cpp:(.text+0x8ef): undefined reference to 
`xercesc_2_5::SAXParseException::getColumnNumber() const'
SAX2Handler.cpp:(.text+0x8fa): undefined reference to 
`xercesc_2_5::SAXParseException::getLineNumber() const'
SAX2Handler.cpp:(.text+0x91b): undefined reference to 
`xercesc_2_5::SAXParseException::getSystemId() const'
SAX2Handler.cpp:(.text+0x923): undefined reference to 
`xercesc_2_5::XMLString::transcode(unsigned short const*)'
SAX2Handler.cpp:(.text+0x98b): undefined reference to 
`xercesc_2_5::XMLString::transcode(unsigned short const*)'
SAX2Handler.cpp:(.text+0x9ab): undefined reference to 
`xercesc_2_5::XMLString::release(char**)'
SAX2Handler.cpp:(.text+0x9b5): undefined reference to 
`xercesc_2_5::XMLString::release(char**)'
SAX2Handler.cpp:(.text+0x9db): undefined reference to 
`xercesc_2_5::XMLString::release(char**)'
SAX2Handler.cpp:(.text+0x9ee): undefined reference to 
`xercesc_2_5::XMLString::release(char**)'
../../../../obj/SAX2Handler.o: In function 
`SAX2Handler::warning(xercesc_2_5::SAXParseException const&)':
SAX2Handler.cpp:(.text+0xa1f): undefined reference to 
`xercesc_2_5::SAXParseException::getColumnNumber() const'
SAX2Handler.cpp:(.text+0xa2a): undefined reference to 
`xercesc_2_5::SAXParseException::getLineNumber() const'
SAX2Handler.cpp:(.text+0xa4b): undefined reference to 
`xercesc_2_5::SAXParseException::getSystemId() const'
SAX2Handler.cpp:(.text+0xa53): undefined reference to 
`xercesc_2_5::XMLString::transcode(unsigned short const*)'
SAX2Handler.cpp:(.text+0xabb): undefined reference to 
`xercesc_2_5::XMLString::transcode(unsigned short const*)'
SAX2Handler.cpp:(.text+0xadb): undefined reference to 
`xercesc_2_5::XMLString::release(char**)'
SAX2Handler.cpp:(.text+0xae5): undefined reference to 
`xercesc_2_5::XMLString::release(char**)'
SAX2Handler.cpp:(.text+0xb0b): undefined reference to 
`xercesc_2_5::XMLString::release(char**)'
SAX2Handler.cpp:(.text+0xb1e): undefined reference to 
`xercesc_2_5::XMLString::release(char**)'
../../../../obj/SAX2Handler.o: In function `SAX2Handler::setLocale(char 
const*)':
SAX2Handler.cpp:(.text+0xb4f): undefined reference to 
`xercesc_2_5::XMLString::transcode(char const*)'
SAX2Handler.cpp:(.text+0xb6b): undefined reference to 
`xercesc_2_5::XMLString::release(unsigned short**)'
SAX2Handler.cpp:(.text+0xb73): undefined reference to 
`xercesc_2_5::XMLString::transcode(char const*)'
collect2: ld returned 1 exit status
make[3]: *** [../../../../bin/MsgCreator] Error 1


The error it's giving is in regards to the linker and xerces-c 2.5 
(which evidently is part of the FDO bundle?). I already have xerces-c 
installed, as well as a suite of other utilities such as GDAL and 
Mapserver. Should I expect linking problems like this to continue?



Anyway, build_thirdparty.sh continues, and finally dies at GDAL's UnitTest:


Making install in UnitTest
make[2]: Entering directory 
`/tmp/OpenSource_FDO/Providers/GDAL/Src/UnitTest'
make[2]: *** No rule to make target 
`/tmp/OpenSource_FDO/Utilities/Common/libProvidersCommon.la', needed by 
`UnitTest'.  Stop.
make[2]: Leaving directory `/tmp/OpenSource_FDO/Providers/GDAL/Src/UnitTest'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/OpenSource_FDO/Providers/GDAL/Src'
make: *** [install-recursive] Error 1


Any ideas how to diagnose this?

-- 
Gregor Mosheh / Greg Allensworth
System Administrator, HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
  only if you can restore." - AMANDA


More information about the fdo-users mailing list