[xsd-users] Undefined Symbol error while trying to 'make'

Ramalingam, Preethi preethi.ramalingam at credit-suisse.com
Thu Dec 8 21:20:03 EST 2011


[+Changed Subject]

Hi Boris,

I managed to figure that out. I had to append the env variable LDFLAGS
with a '-L'. It went on to give me the following errors: 

/share/mercury/dev/pramali4/xsd-3.3.0-sparc-solaris/examples/cxx/parser/
hello $ make
g++
-I/share/mercury/dev/pramali4/xerces-c-3.1.1-sparc-solaris-cc-5.10/inclu
de -I../../../../libxsd -W -Wall -O3 -c driver.cxx -o driver.o
g++
-I/share/mercury/dev/pramali4/xerces-c-3.1.1-sparc-solaris-cc-5.10/inclu
de -I../../../../libxsd -W -Wall -O3 -c hello-pskel.cxx -o hello-pskel.o
g++ -W -Wall -O3
-L/share/mercury/dev/pramali4/xerces-c-3.1.1-sparc-solaris-cc-5.10/lib
-o driver driver.o hello-pskel.o -lxerces-c -lxerces-c
Undefined                       first referenced
 symbol                             in file
xercesc_3_1::XMLAttDefList::serialize(xercesc_3_1::XSerializeEngine&)dri
ver.o
xercesc_3_1::XMLUni::fgXercesValidationErrorAsFatal      driver.o
xercesc_3_1::XMLAttDefList::getProtoType() const driver.o
xercesc_3_1::SAXParseException::getLineNumber() const driver.o
xercesc_3_1::SAXParseException::getSystemId() const driver.o
typeinfo for xercesc_3_1::SAXParseExceptiondriver.o
xercesc_3_1::XMemory::operator delete(void*)driver.o
xercesc_3_1::SAXParseException::~SAXParseException()driver.o
xercesc_3_1::XMLUni::fgXercesHandleMultipleImports      driver.o
xercesc_3_1::SAXParseException::SAXParseException(xercesc_3_1::SAXParseE
xception const&)driver.o
xercesc_3_1::XMLUni::fgSAX2CoreNameSpacePrefixes      driver.o
xercesc_3_1::SAXParseException::getColumnNumber() const driver.o
xercesc_3_1::XMLPlatformUtils::Initialize(char const*, char const*,
xercesc_3_1::PanicHandler*, xercesc_3_1::MemoryManager*)driver.o
xercesc_3_1::XMLUni::fgXercesSchemaFullChecking      driver.o
xercesc_3_1::XMLReaderFactory::createXMLReader(xercesc_3_1::MemoryManage
r*, xercesc_3_1::XMLGrammarPool*)driver.o
xercesc_3_1::SAXParseException::getPublicId() const driver.o
xercesc_3_1::SchemaSymbols::fgURI_XSI      driver.o
xercesc_3_1::XMLUni::fgXercesSchemaExternalNoNameSpaceSchemaLocation
driver.o
xercesc_3_1::XMLUni::fgXercescDefaultLocale      driver.o
xercesc_3_1::SAXParseException::SAXParseException(unsigned short const*,
unsigned short const*, unsigned short const*, unsigned long long,
unsigned long long, xercesc_3_1::MemoryManager*)driver.o
xercesc_3_1::XMLUni::fgXercesSchemaExternalSchemaLocation      driver.o
xercesc_3_1::XMLUni::fgSAX2CoreValidation      driver.o
xercesc_3_1::XMLUni::fgSAX2CoreNameSpaces      driver.o
xercesc_3_1::SchemaSymbols::fgXSI_TYPE       driver.o
xercesc_3_1::XMLPlatformUtils::fgMemoryManager       driver.o
xercesc_3_1::XMLPlatformUtils::Terminate()     driver.o
xercesc_3_1::XMLAttDefList::isSerializable() const driver.o
xercesc_3_1::XMLUni::fgXercesSchema      driver.o
ld: fatal: Symbol referencing errors. No output written to driver
collect2: ld returned 1 exit status
make: *** [driver] Error 1

Please help me with this.

Thanks,
Preethi

> _____________________________________________ 
> From: 	Ramalingam, Preethi  
> Sent:	Friday, December 09, 2011 10:13 AM
> To:	'xsd-users at codesynthesis.com'
> Subject:	[xsd-users] 'elf_begin' make error
> 
> Hi Boris,
> 
> I get the following error when I try to make the hello world parser
> example.
> 
> /share/mercury/dev/pramali4/xsd-3.3.0-sparc-solaris/examples/cxx/parse
> r/hello $ make
> g++ -W -Wall -O3
> /share/mercury/dev/pramali4/xerces-c-3.1.1-sparc-solaris-cc-5.10/lib
> -o driver driver.o hello-pskel.o -lxerces-c -lxerces-c
> ld: elf error: file
> /share/mercury/dev/pramali4/xerces-c-3.1.1-sparc-solaris-cc-5.10/lib:
> elf_begin: I/O error: region read: Is a directory
> ld: fatal: File processing errors. No output written to driver
> collect2: ld returned 1 exit status
> make: *** [driver] Error 1
> 
> Compiler : /share/mercury/SunStudio12/12/SUNWspro/prod/bin/CC
> 
> OS : SunOS 5.10 Generic_141444-09 sun4u sparc SUNW,Netra-T12
> 
> Could you please help me with this?
> 
> Many thanks,
> Preethi
> 

=============================================================================== 
Please access the attached hyperlink for an important electronic communications disclaimer: 
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html 
=============================================================================== 



More information about the xsd-users mailing list