|
From: Natschläger T. <Tho...@sc...> - 2008-12-11 08:03:39
|
Hi!
If I remember correctly a college of mine here at SCCG has already encountered the problem. The fix was to change the order of lib's against we link. So we tried to find a proper oder of
TARGET_LINK_LIBRARIES( pcsim_test
pcsim
${XERCES_LIBS}
${MPI_LIBS}
${GSL_LIBS}
${CPPUNIT_LIBS}
${BOOST_THREAD}
${BOOST_DATETIME}
${STLP_LIBS}
)
If I remember correctly we put ${XERCES_LIBS} more towards the end of that list in
cppunit/CMakeLists.txt
python/CMakeLists.txt
java/CMakeLists.txt
I hope this helps. We have to check this more thoroughly.
-thomas natschlaeger
________________________________
Von: Grzegorz M. Wojcik [mailto:gmw...@gm...]
Gesendet: Mi 12/10/2008 6:19
An: pcs...@li...
Betreff: [Pcsim-users] problem with xerces in Ubuntu 8.04
Hello!
I came across serious problem when trying to compile pcsim on Ubuntu
8.04 Hardy Heron. I receive some errors concerning xerces-c, I suppose
in same the end of my compilation process. They look like:
NeuroMLImporterTest.cpp:(.text._ZN11xercesc_2_710XMLRefInfoD0Ev[xercesc_2_7::XMLRefInfo::~XMLRefInfo()]+0x35):
undefined reference to `xercesc_2_7::XMemory::operator delete(void*)'
with very often repeating phrase: undefined reference to `xercesc_2_7
I have libxerces-c v. 2.7.0 located in /usr/lib (I think it is typical
location).
I was trying with no result doing the following things:
1) Telling the linker where libxerces is located.
2) libxerces 2.8
3) libxerces 3.0
4) compiling libxerces of all above versions from te scratch by the
same compiler I compile pcsim
To make matters worse (or better) when I run python setup.py test - a
lot of tests end up with a positive 'OK' message.
Do you have any ideas?
best regards,
Grzegorz
P.S. Here is the whole set of error messages:
[ 63%] Building CXX object
python/CMakeFiles/pypcsim.dir/pypcsim/CuBaSyn_AlphaFunction.pypp.o
[ 63%] Building CXX object
cppunittests/CMakeFiles/pcsim_test.dir/HHNeuronTraubMiles91Test.o
[ 64%] Building CXX object
python/CMakeFiles/pypcsim.dir/pypcsim/SpatialSimObjectPopulation.pypp.o
[ 64%] Building CXX object cppunittests/CMakeFiles/pcsim_test.dir/commonUtils.o
Linking CXX executable ../bin/pcsim_test
CMakeFiles/pcsim_test.dir/NeuroMLImporterTest.o: In function
`xercesc_2_7::DefaultHandler::fatalError(xercesc_2_7::SAXParseException
const&)':
NeuroMLImporterTest.cpp:(.text._ZN11xercesc_2_714DefaultHandler10fatalErrorERKNS_17SAXParseExceptionE[xercesc_2_7::DefaultHandler::fatalError(xercesc_2_7::SAXParseException
const&)]+0x2b): undefined reference to
`xercesc_2_7::SAXParseException::SAXParseException(xercesc_2_7::SAXParseException
const&)'
NeuroMLImporterTest.cpp:(.text._ZN11xercesc_2_714DefaultHandler10fatalErrorERKNS_17SAXParseExceptionE[xercesc_2_7::DefaultHandler::fatalError(xercesc_2_7::SAXParseException
const&)]+0x4b): undefined reference to
`xercesc_2_7::SAXParseException::~SAXParseException()'
NeuroMLImporterTest.cpp:(.text._ZN11xercesc_2_714DefaultHandler10fatalErrorERKNS_17SAXParseExceptionE[xercesc_2_7::DefaultHandler::fatalError(xercesc_2_7::SAXParseException
const&)]+0x50): undefined reference to `typeinfo for
xercesc_2_7::SAXParseException'
CMakeFiles/pcsim_test.dir/NeuroMLImporterTest.o: In function
`xercesc_2_7::DTDEntityDecl::~DTDEntityDecl()':
NeuroMLImporterTest.cpp:(.text._ZN11xercesc_2_713DTDEntityDeclD0Ev[xercesc_2_7::DTDEntityDecl::~DTDEntityDecl()]+0xc):
undefined reference to `xercesc_2_7::XMLEntityDecl::~XMLEntityDecl()'
NeuroMLImporterTest.cpp:(.text._ZN11xercesc_2_713DTDEntityDeclD0Ev[xercesc_2_7::DTDEntityDecl::~DTDEntityDecl()]+0x14):
undefined reference to `xercesc_2_7::XMemory::operator delete(void*)'
CMakeFiles/pcsim_test.dir/NeuroMLImporterTest.o: In function
`xercesc_2_7::DTDEntityDecl::~DTDEntityDecl()':
NeuroMLImporterTest.cpp:(.text._ZN11xercesc_2_713DTDEntityDeclD1Ev[xercesc_2_7::DTDEntityDecl::~DTDEntityDecl()]+0xc):
undefined reference to `xercesc_2_7::XMLEntityDecl::~XMLEntityDecl()'
CMakeFiles/pcsim_test.dir/NeuroMLImporterTest.o: In function
`xercesc_2_7::XMLRefInfo::~XMLRefInfo()':
NeuroMLImporterTest.cpp:(.text._ZN11xercesc_2_710XMLRefInfoD0Ev[xercesc_2_7::XMLRefInfo::~XMLRefInfo()]+0x35):
undefined reference to `xercesc_2_7::XMemory::operator delete(void*)'
CMakeFiles/pcsim_test.dir/NeuroMLImporterTest.o: In function
`xercesc_2_7::XMLAttDefList::~XMLAttDefList()':
NeuroMLImporterTest.cpp:(.text._ZN11xercesc_2_713XMLAttDefListD0Ev[xercesc_2_7::XMLAttDefList::~XMLAttDefList()]+0xc):
undefined reference to `xercesc_2_7::XMemory::operator delete(void*)'
CMakeFiles/pcsim_test.dir/NeuroMLImporterTest.o:(.rodata._ZTVN11xercesc_2_710XMLRefInfoE[vtable
for xercesc_2_7::XMLRefInfo]+0x20): undefined reference to
`xercesc_2_7::XMLRefInfo::isSerializable() const'
CMakeFiles/pcsim_test.dir/NeuroMLImporterTest.o:(.rodata._ZTVN11xercesc_2_710XMLRefInfoE[vtable
for xercesc_2_7::XMLRefInfo]+0x28): undefined reference to
`xercesc_2_7::XMLRefInfo::serialize(xercesc_2_7::XSerializeEngine&)'
CMakeFiles/pcsim_test.dir/NeuroMLImporterTest.o:(.rodata._ZTVN11xercesc_2_710XMLRefInfoE[vtable
for xercesc_2_7::XMLRefInfo]+0x30): undefined reference to
`xercesc_2_7::XMLRefInfo::getProtoType() const'
CMakeFiles/pcsim_test.dir/NeuroMLImporterTest.o:(.rodata._ZTVN11xercesc_2_713DTDEntityDeclE[vtable
for xercesc_2_7::DTDEntityDecl]+0x20): undefined reference to
`xercesc_2_7::DTDEntityDecl::isSerializable() const'
CMakeFiles/pcsim_test.dir/NeuroMLImporterTest.o:(.rodata._ZTVN11xercesc_2_713DTDEntityDeclE[vtable
for xercesc_2_7::DTDEntityDecl]+0x28): undefined reference to
`xercesc_2_7::DTDEntityDecl::serialize(xercesc_2_7::XSerializeEngine&)'
CMakeFiles/pcsim_test.dir/NeuroMLImporterTest.o:(.rodata._ZTVN11xercesc_2_713DTDEntityDeclE[vtable
for xercesc_2_7::DTDEntityDecl]+0x30): undefined reference to
`xercesc_2_7::DTDEntityDecl::getProtoType() const'
CMakeFiles/pcsim_test.dir/NeuroMLImporterTest.o:(.rodata._ZTVN11xercesc_2_713XMLAttDefListE[vtable
for xercesc_2_7::XMLAttDefList]+0x20): undefined reference to
`xercesc_2_7::XMLAttDefList::isSerializable() const'
CMakeFiles/pcsim_test.dir/NeuroMLImporterTest.o:(.rodata._ZTVN11xercesc_2_713XMLAttDefListE[vtable
for xercesc_2_7::XMLAttDefList]+0x28): undefined reference to
`xercesc_2_7::XMLAttDefList::serialize(xercesc_2_7::XSerializeEngine&)'
CMakeFiles/pcsim_test.dir/NeuroMLImporterTest.o:(.rodata._ZTVN11xercesc_2_713XMLAttDefListE[vtable
for xercesc_2_7::XMLAttDefList]+0x30): undefined reference to
`xercesc_2_7::XMLAttDefList::getProtoType() const'
CMakeFiles/pcsim_test.dir/NeuroMLImporterTest.o:(.rodata._ZTIN11xercesc_2_713DTDEntityDeclE[typeinfo
for xercesc_2_7::DTDEntityDecl]+0x10): undefined reference to
`typeinfo for xercesc_2_7::XMLEntityDecl'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::SAX2XMLReaderImpl::SAX2XMLReaderImpl(xercesc_2_7::MemoryManager*,
xercesc_2_7::XMLGrammarPool*)'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::XMLUni::fgXercesValidationErrorAsFatal'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::XMemory::operator delete(void*,
xercesc_2_7::MemoryManager*)'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::XMLUni::fgSAX2CoreValidation'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::SAXParseException::SAXParseException(unsigned
short const*, unsigned short const*, unsigned short const*, long,
long, xercesc_2_7::MemoryManager*)'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::SAXParseException::getPublicId() const'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::SAXParseException::getSystemId() const'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::XMLUni::fgSAX2CoreNameSpacePrefixes'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::XMLUni::fgXercescDefaultLocale'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::XMLUni::fgXercesSchema'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::XMLUni::fgXercesSchemaFullChecking'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::XMLPlatformUtils::Terminate()'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::SAXParseException::getColumnNumber() const'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::SchemaSymbols::fgURI_XSI'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::XMLUni::fgXercesSchemaExternalSchemaLocation'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::XMLPlatformUtils::fgMemoryManager'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::XMemory::operator new(unsigned long,
xercesc_2_7::MemoryManager*)'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::XMLUni::fgSAX2CoreNameSpaces'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::XMLPlatformUtils::Initialize(char const*,
char const*, xercesc_2_7::PanicHandler*, xercesc_2_7::MemoryManager*,
bool)'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::SchemaSymbols::fgXSI_TYPE'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::SAXParseException::getLineNumber() const'
/home/gmwojcik/install/pypcsim-0.5.2/_build/lib/libpcsim.so: undefined
reference to `xercesc_2_7::XMLUni::fgXercesSchemaExternalNoNameSpaceSchemaLocation'
collect2: ld returned 1 exit status
--
gmwojcik
Registered Linux User #388348
----------------------------------------------------------------
PER ASPERA AD ASTRA
----------------------------------------------------------------
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Pcsim-users mailing list
Pcs...@li...
https://lists.sourceforge.net/lists/listinfo/pcsim-users
|