You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Vinay Kumar <wi...@yahoo.com> on 2011/11/24 10:02:49 UTC

Unsatisfied Symbol Error

Hi All,

I am trying to build Xalan-1.10 with Xerces-C 2.8.0 library. I am using gcc(3.4.4) as C compiler and g++ as c++ compiler. I am building on HPUX Itanium Architecture, during build i am getting following error:

ld: Unsatisfied symbol "xercesc_2_7::XMLPlatformUtils::Terminate()" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgSAX2CoreNameSpacePrefixes" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLString::stringLen(char const*)" in file ../../../../obj/SAX2Handler.o
ld: Unsatisfied symbol "xercesc_2_7::DTDEntityDecl::getProtoType() const" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgXercesSchema" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::SAXParseException::getSystemId() const" in file ../../../../obj/SAX2Handler.o
ld: Unsatisfied symbol "xercesc_2_7::XMLString::release(unsigned short**)" in file ../../../../obj/MsgFileOutputStream.o
ld: Unsatisfied symbol "xercesc_2_7::XMLString::release(char**)" in file ../../../../obj/MsgFileOutputStream.o
ld: Unsatisfied symbol "typeinfo for xercesc_2_7::XMLException" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMemory::operator delete(void*)" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::SAX2XMLReaderImpl::SAX2XMLReaderImpl(xercesc_2_7::MemoryManager*, xercesc_2_7::XMLGrammarPool*)" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLPlatformUtils::fgMemoryManager" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::SAXParseException::SAXParseException(xercesc_2_7::SAXParseException const&)" in file ../../../../obj/ICUResHandler.o
ld: Unsatisfied symbol "xercesc_2_7::XMLRefInfo::isSerializable() const" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLAttDefList::getProtoType() const" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::DTDEntityDecl::isSerializable() const" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLAttDefList::serialize(xercesc_2_7::XSerializeEngine&)" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgXercescDefaultLocale" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgXercesSchemaFullChecking" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLAttDefList::isSerializable() const" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgXercesDynamic" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgSAX2CoreValidation" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::SAXParseException::getLineNumber() const" in file ../../../../obj/SAX2Handler.o
ld: Unsatisfied symbol "xercesc_2_7::XMLString::compareString(unsigned short const*, unsigned short const*)" in file ../../../../obj/ICUResHandler.o
ld: Unsatisfied symbol "xercesc_2_7::XMemory::operator new(unsigned long, xercesc_2_7::MemoryManager*)" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::SAXParseException::~SAXParseException()" in file ../../../../obj/ICUResHandler.o
ld: Unsatisfied symbol "typeinfo for xercesc_2_7::XMLEntityDecl" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::SAXParseException::getColumnNumber() const" in file ../../../../obj/SAX2Handler.o
ld: Unsatisfied symbol "xercesc_2_7::XMLPlatformUtils::Initialize(char const*, char const*, xercesc_2_7::PanicHandler*, xercesc_2_7::MemoryManager*, bool)" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMemory::operator delete(void*, xercesc_2_7::MemoryManager*)" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLRefInfo::getProtoType() const" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgSAX2CoreNameSpaces" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "typeinfo for xercesc_2_7::SAXParseException" in file ../../../../obj/ICUResHandler.o
ld: Unsatisfied symbol "xercesc_2_7::DTDEntityDecl::serialize(xercesc_2_7::XSerializeEngine&)" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLString::transcode(unsigned short const*)" in file ../../../../obj/MsgFileOutputStream.o
ld: Unsatisfied symbol "xercesc_2_7::XMLString::transcode(char const*)" in file ../../../../obj/MsgFileOutputStream.o
ld: Unsatisfied symbol "xercesc_2_7::XMLRefInfo::serialize(xercesc_2_7::XSerializeEngine&)" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLEntityDecl::~XMLEntityDecl()" in file ../../../../obj/MsgCreator.o
38 errors.
collect2: ld returned 1 exit status
make[3]: *** [../../../../bin/MsgCreator] Error 1

What are the reasons for getting this error? Please let me know the modifications to be done to compile it smoothly.

Thanks & Regards,
Vinay

RE: Unsatisfied Symbol Error

Posted by Saurabh Bhatnagar <sa...@oracle.com>.
You need to make sure you use the same arguments in configuring both.
 
-- 
Warm Regards,

HYPERLINK "http://www.oracle.com/"Oracle
Saurabh Bhatnagar | Development Manager- Software config & Build Mgmt.
Phone: HYPERLINK "tel:+18041836080"+918041836080 | Fax: HYPERLINK "fax:+918041526000"+918041526000 | VOIP: HYPERLINK "tel:+18041836080"+918041836080 
Oracle Product Life cycle Services

ORACLE India | Plot #1, NR ENCLAVE, EPIP INDUSTRIAL AREA, WHITEFIELD | 560066 BANGALORE 


HYPERLINK "http://www.oracle.com/commitment"Green Oracle	 Oracle is committed to developing practices and products that help protect the environment	

Oracle engineers hardware and software to work together in the cloud and in your data center. 

 

  _____  

From: Vinay Kumar [mailto:win_i008@yahoo.com] 
Sent: Thursday, November 24, 2011 2:33 PM
To: xalan-c-users@xml.apache.org
Cc: xerces dev; xalan-dev@xml.apache.org
Subject: Unsatisfied Symbol Error


Hi All,

I am trying to build Xalan-1.10 with Xerces-C 2.8.0 library. I am using gcc(3.4.4) as C compiler and g++ as c++ compiler. I am building on HPUX Itanium Architecture, during build i am getting following error:

ld: Unsatisfied symbol "xercesc_2_7::XMLPlatformUtils::Terminate()" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgSAX2CoreNameSpacePrefixes" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLString::stringLen(char const*)" in file ../../../../obj/SAX2Handler.o
ld: Unsatisfied symbol "xercesc_2_7::DTDEntityDecl::getProtoType() const" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgXercesSchema" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::SAXParseException::getSystemId() const" in file ../../../../obj/SAX2Handler.o
ld: Unsatisfied symbol "xercesc_2_7::XMLString::release(unsigned short**)" in file ../../../../obj/MsgFileOutputStream.o
ld: Unsatisfied symbol "xercesc_2_7::XMLString::release(char**)" in file ../../../../obj/MsgFileOutputStream.o
ld: Unsatisfied symbol "typeinfo for xercesc_2_7::XMLException" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMemory::operator delete(void*)" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::SAX2XMLReaderImpl::SAX2XMLReaderImpl(xercesc_2_7::MemoryManager*, xercesc_2_7::XMLGrammarPool*)" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLPlatformUtils::fgMemoryManager" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::SAXParseException::SAXParseException(xercesc_2_7::SAXParseException const&)" in file ../../../../obj/ICUResHandler.o
ld: Unsatisfied symbol "xercesc_2_7::XMLRefInfo::isSerializable() const" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLAttDefList::getProtoType() const" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::DTDEntityDecl::isSerializable() const" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLAttDefList::serialize(xercesc_2_7::XSerializeEngine&)" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgXercescDefaultLocale" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgXercesSchemaFullChecking" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLAttDefList::isSerializable() const" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgXercesDynamic" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgSAX2CoreValidation" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::SAXParseException::getLineNumber() const" in file ../../../../obj/SAX2Handler.o
ld: Unsatisfied symbol "xercesc_2_7::XMLString::compareString(unsigned short const*, unsigned short const*)" in file ../../../../obj/ICUResHandler.o
ld: Unsatisfied symbol "xercesc_2_7::XMemory::operator new(unsigned long, xercesc_2_7::MemoryManager*)" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::SAXParseException::~SAXParseException()" in file ../../../../obj/ICUResHandler.o
ld: Unsatisfied symbol "typeinfo for xercesc_2_7::XMLEntityDecl" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::SAXParseException::getColumnNumber() const" in file ../../../../obj/SAX2Handler.o
ld: Unsatisfied symbol "xercesc_2_7::XMLPlatformUtils::Initialize(char const*, char const*, xercesc_2_7::PanicHandler*, xercesc_2_7::MemoryManager*, bool)" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMemory::operator delete(void*, xercesc_2_7::MemoryManager*)" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLRefInfo::getProtoType() const" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgSAX2CoreNameSpaces" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "typeinfo for xercesc_2_7::SAXParseException" in file ../../../../obj/ICUResHandler.o
ld: Unsatisfied symbol "xercesc_2_7::DTDEntityDecl::serialize(xercesc_2_7::XSerializeEngine&)" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLString::transcode(unsigned short const*)" in file ../../../../obj/MsgFileOutputStream.o
ld: Unsatisfied symbol "xercesc_2_7::XMLString::transcode(char const*)" in file ../../../../obj/MsgFileOutputStream.o
ld: Unsatisfied symbol "xercesc_2_7::XMLRefInfo::serialize(xercesc_2_7::XSerializeEngine&)" in file ../../../../obj/MsgCreator.o
ld: Unsatisfied symbol "xercesc_2_7::XMLEntityDecl::~XMLEntityDecl()" in file ../../../../obj/MsgCreator.o
38 errors.
collect2: ld returned 1 exit status
make[3]: *** [../../../../bin/MsgCreator] Error 1

What are the reasons for getting this error? Please let me know the modifications to be done to compile it smoothly.

Thanks & Regards,
Vinay
	

Re: Unsatisfied Symbol Error

Posted by Steve Hathaway <sh...@e-z.net>.
On 11/24/2011 1:02 AM, Vinay Kumar wrote:
> Hi All,
>
> I am trying to build Xalan-1.10 with Xerces-C 2.8.0 library. I am 
> using gcc(3.4.4) as C compiler and g++ as c++ compiler. I am building 
> on HPUX Itanium Architecture, during build i am getting following error:
>
> ld: Unsatisfied symbol "xercesc_2_7::XMLPlatformUtils::Terminate()" in 
> file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol 
> "xercesc_2_7::XMLUni::fgSAX2CoreNameSpacePrefixes" in file 
> ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLString::stringLen(char 
> const*)" in file ../../../../obj/SAX2Handler.o
> ld: Unsatisfied symbol "xercesc_2_7::DTDEntityDecl::getProtoType() 
> const" in file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgXercesSchema" in file 
> ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol "xercesc_2_7::SAXParseException::getSystemId() 
> const" in file ../../../../obj/SAX2Handler.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLString::release(unsigned 
> short**)" in file ../../../../obj/MsgFileOutputStream.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLString::release(char**)" in 
> file ../../../../obj/MsgFileOutputStream.o
> ld: Unsatisfied symbol "typeinfo for xercesc_2_7::XMLException" in 
> file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol "xercesc_2_7::XMemory::operator delete(void*)" 
> in file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol 
> "xercesc_2_7::SAX2XMLReaderImpl::SAX2XMLReaderImpl(xercesc_2_7::MemoryManager*, 
> xercesc_2_7::XMLGrammarPool*)" in file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol 
> "xercesc_2_7::XMLPlatformUtils::fgMemoryManager" in file 
> ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol 
> "xercesc_2_7::SAXParseException::SAXParseException(xercesc_2_7::SAXParseException 
> const&)" in file ../../../../obj/ICUResHandler.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLRefInfo::isSerializable() 
> const" in file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLAttDefList::getProtoType() 
> const" in file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol "xercesc_2_7::DTDEntityDecl::isSerializable() 
> const" in file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol 
> "xercesc_2_7::XMLAttDefList::serialize(xercesc_2_7::XSerializeEngine&)" in 
> file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgXercescDefaultLocale" 
> in file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol 
> "xercesc_2_7::XMLUni::fgXercesSchemaFullChecking" in file 
> ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLAttDefList::isSerializable() 
> const" in file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgXercesDynamic" in file 
> ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgSAX2CoreValidation" in 
> file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol 
> "xercesc_2_7::SAXParseException::getLineNumber() const" in file 
> ../../../../obj/SAX2Handler.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLString::compareString(unsigned 
> short const*, unsigned short const*)" in file 
> ../../../../obj/ICUResHandler.o
> ld: Unsatisfied symbol "xercesc_2_7::XMemory::operator new(unsigned 
> long, xercesc_2_7::MemoryManager*)" in file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol 
> "xercesc_2_7::SAXParseException::~SAXParseException()" in file 
> ../../../../obj/ICUResHandler.o
> ld: Unsatisfied symbol "typeinfo for xercesc_2_7::XMLEntityDecl" in 
> file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol 
> "xercesc_2_7::SAXParseException::getColumnNumber() const" in file 
> ../../../../obj/SAX2Handler.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLPlatformUtils::Initialize(char 
> const*, char const*, xercesc_2_7::PanicHandler*, 
> xercesc_2_7::MemoryManager*, bool)" in file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol "xercesc_2_7::XMemory::operator delete(void*, 
> xercesc_2_7::MemoryManager*)" in file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLRefInfo::getProtoType() const" 
> in file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLUni::fgSAX2CoreNameSpaces" in 
> file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol "typeinfo for xercesc_2_7::SAXParseException" 
> in file ../../../../obj/ICUResHandler.o
> ld: Unsatisfied symbol 
> "xercesc_2_7::DTDEntityDecl::serialize(xercesc_2_7::XSerializeEngine&)" in 
> file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLString::transcode(unsigned 
> short const*)" in file ../../../../obj/MsgFileOutputStream.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLString::transcode(char 
> const*)" in file ../../../../obj/MsgFileOutputStream.o
> ld: Unsatisfied symbol 
> "xercesc_2_7::XMLRefInfo::serialize(xercesc_2_7::XSerializeEngine&)" 
> in file ../../../../obj/MsgCreator.o
> ld: Unsatisfied symbol "xercesc_2_7::XMLEntityDecl::~XMLEntityDecl()" 
> in file ../../../../obj/MsgCreator.o
> 38 errors.
> collect2: ld returned 1 exit status
> make[3]: *** [../../../../bin/MsgCreator] Error 1
>
> What are the reasons for getting this error? Please let me know the 
> modifications to be done to compile it smoothly.
>
> Thanks & Regards,
> Vinay
>

Vinay,

You probably need to edit the configuration or makefiles.  Your build is 
trying to reference "xercesc_2_7" where you should probably reference 
"xercesc_2_8".

Steven J. Hathaway