[fdo-users] Compile problems, any ideas?

Traian Stanev traian.stanev at autodesk.com
Wed Jul 11 11:53:42 EDT 2007


FDO uses its own copy of Xerces, which the build_thirdparty script is
supposed to compile and put somewhere under /usr/local/fdo-3.2.0/ (or
whatever the version of your FDO is). If that fails, the rest of the
build will also fail. 

You can go into the ThirdParty/apache directory and run the Xerces build
by itself to see if it succeeds or not. There should be a small shell
script that does the under ThirdParty/apache.


Traian




-----Original Message-----
From: fdo-users-bounces at lists.osgeo.org
[mailto:fdo-users-bounces at lists.osgeo.org] On Behalf Of Gregor Mosheh
Sent: Wednesday, July 11, 2007 11:48 AM
To: fdo-users at lists.osgeo.org
Subject: [fdo-users] Compile problems, any ideas?

Hi, all. I'm still having problems with compiling FDO under Linux. If 
anyone has any ideas, I'd be very appreciative.

build_thirdparty.sh gets as far as compiling GDAL's UnitTest, and
then...

Making all 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'



Meanwhile, XALAN evidently had some problem, which the 
build_thirdparty.sh passed right by. (is it optional?) The problem seems

to pertain to linking to the xerces-c library. I do have xerces-c 
already installed; is it required that FDO be built on a system that 
doesn't have it installed?

The error is:

make -C src/xalanc all
make[1]: Entering directory 
`/tmp/OpenSource_FDO/Thirdparty/apache/xml-xalan/c/src/xalanc'
Preparing the directory structure for a build ...
mkdir -p ../../obj
mkdir -p ../../lib
mkdir -p ../../bin
make -C Utils prepare
make[2]: Entering directory 
`/tmp/OpenSource_FDO/Thirdparty/apache/xml-xalan/c/src/xalanc/Utils'
mkdir -p ../../../nls
mkdir -p ../../../nls/include
make[2]: Leaving directory 
`/tmp/OpenSource_FDO/Thirdparty/apache/xml-xalan/c/src/xalanc/Utils'
make -C Utils locale
make[2]: Entering directory 
`/tmp/OpenSource_FDO/Thirdparty/apache/xml-xalan/c/src/xalanc/Utils'
make -C MsgCreator
make[3]: Entering directory 
`/tmp/OpenSource_FDO/Thirdparty/apache/xml-xalan/c/src/xalanc/Utils/MsgC
reator'
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_514DefaultHandler10fat
alErrorERKNS_17SAXParseExceptionE+0x35): 
undefined reference to 
`xercesc_2_5::SAXParseException::SAXParseException(xercesc_2_5::SAXParse
Exception 
const&)'
ICUResHandler.cpp:(.gnu.linkonce.t._ZN11xercesc_2_514DefaultHandler10fat
alErrorERKNS_17SAXParseExceptionE+0x3c): 
undefined reference to 
`xercesc_2_5::SAXParseException::~SAXParseException()'
ICUResHandler.cpp:(.gnu.linkonce.t._ZN11xercesc_2_514DefaultHandler10fat
alErrorERKNS_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::MemoryMa
nager*, 
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_513XMLAtt
DefListE+0x20): 
undefined reference to `xercesc_2_5::XMLAttDefList::isSerializable()
const'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_513XMLAtt
DefListE+0x28): 
undefined reference to 
`xercesc_2_5::XMLAttDefList::serialize(xercesc_2_5::XSerializeEngine&)'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_513XMLAtt
DefListE+0x30): 
undefined reference to `xercesc_2_5::XMLAttDefList::getProtoType()
const'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_513DTDEnt
ityDeclE+0x20): 
undefined reference to `xercesc_2_5::DTDEntityDecl::isSerializable()
const'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_513DTDEnt
ityDeclE+0x28): 
undefined reference to 
`xercesc_2_5::DTDEntityDecl::serialize(xercesc_2_5::XSerializeEngine&)'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_513DTDEnt
ityDeclE+0x30): 
undefined reference to `xercesc_2_5::DTDEntityDecl::getProtoType()
const'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTIN11xercesc_2_513DTDEnt
ityDeclE+0x10): 
undefined reference to `typeinfo for xercesc_2_5::XMLEntityDecl'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_510XMLRef
InfoE+0x20): 
undefined reference to `xercesc_2_5::XMLRefInfo::isSerializable() const'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_510XMLRef
InfoE+0x28): 
undefined reference to 
`xercesc_2_5::XMLRefInfo::serialize(xercesc_2_5::XSerializeEngine&)'
../../../../obj/MsgCreator.o:(.gnu.linkonce.d._ZTVN11xercesc_2_510XMLRef
InfoE+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_51
2XMLExceptionE+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



-- 
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
_______________________________________________
fdo-users mailing list
fdo-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fdo-users



More information about the fdo-users mailing list