- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- xerces build using gnu g++ error -- forward declar...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 02:13 AM
05-13-2009 02:13 AM
xerces build using gnu g++ error -- forward declaration error.
I am trying to build xerces 2.5.0 using g++ version 4.2.3. I have added this to my makefile.incl
http://marc.info/?l=xerces-c-dev&m=113163501028049&w=2
Here are my commands afterwards,
# export XERCESCROOT=/data1/rui/xerces-c-src_2_5_0
and then I execute these commands sitting in the $XERCESCROOT/src/xercesc directory
# runConfigure -php-11 -cgcc -xg++ -z"-fPIC" -minmem -nsocket -tnative -rpthread
# gmake
it compiles for a long time with most of the directories built, but ultimately gives this error, can anybody point me to what could be the problem -- any sort of code modification related to xerces code can be done as i just want to compile and get the lib ready.
mkdir -p /data1/rui/xerces-c-src_2_5_0/include/xercesc/framework/psvi
cp -fp PSVIAttribute.hpp PSVIAttributeList.hpp PSVIElement.hpp PSVIHandler.hpp PSVIItem.hpp XSAnnotation.hpp XSAttributeDeclaration.hpp XSAttributeGroupDefinition.hpp XSAttributeUse.hpp XSComplexTypeDefinition.hpp XSConstants.hpp XSElementDeclaration.hpp XSFacet.hpp XSIDCDefinition.hpp XSModel.hpp XSModelGroup.hpp XSModelGroupDefinition.hpp XSMultiValueFacet.hpp XSNamedMap.hpp XSNamespaceItem.hpp XSNotationDeclaration.hpp XSObject.hpp XSParticle.hpp XSSimpleTypeDefinition.hpp XSTypeDefinition.hpp XSWildcard.hpp XSNamedMap.c /data1/rui/xerces-c-src_2_5_0/include/xercesc/framework/psvi
g++ -fPIC -D_HP_UX -DXERCES_TMPLSINC -DHPUX11 -D_REENTRANT -c -I/data1/rui/xerces-c-src_2_5_0/include -w -O -DPROJ_XMLPARSER -DPROJ_XMLUTIL -DPROJ_PARSERS -DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM -DPROJ_VALIDATORS -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET -o /data1/rui/xerces-c-src_2_5_0/obj/HPUX/XSAttributeGroupDefinition.o XSAttributeGroupDefinition.cpp
XSAttributeGroupDefinition.cpp: In member function 'virtual const XMLCh* xercesc_2_5::XSAttributeGroupDefinition::getName()':
XSAttributeGroupDefinition.cpp:122: error: invalid use of incomplete type 'struct xercesc_2_5::XMLStringPool'
/data1/rui/xerces-c-src_2_5_0/include/xercesc/framework/psvi/XSNamedMap.hpp:80: error: forward declaration of 'struct xercesc_2_5::XMLStringPool'
XSAttributeGroupDefinition.cpp: In member function 'virtual const XMLCh* xercesc_2_5::XSAttributeGroupDefinition::getNamespace()':
XSAttributeGroupDefinition.cpp:127: error: invalid use of incomplete type 'struct xercesc_2_5::XMLStringPool'
/data1/rui/xerces-c-src_2_5_0/include/xercesc/framework/psvi/XSNamedMap.hpp:80: error: forward declaration of 'struct xercesc_2_5::XMLStringPool'
gmake[2]: *** [XSAttributeGroupDefinition.o] Error 1
gmake[2]: Leaving directory `/data1/rui/xerces-c-src_2_5_0/src/xercesc/framework/psvi'
gmake[1]: *** [psvi] Error 2
gmake[1]: Leaving directory `/data1/rui/xerces-c-src_2_5_0/src/xercesc/framework'
Regards,
rui
- Tags:
- g++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 06:23 PM
05-13-2009 06:23 PM
Re: xerces build using gnu g++ error -- forward declaration error.
Has xercesc_2_5::XMLStringPool been defined before line 122? Is this used in a template?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2009 07:50 PM
05-14-2009 07:50 PM
Re: xerces build using gnu g++ error -- forward declaration error.
When I built Xerces-2.5 with HP ANSI C and aCC compiler on 11.23
around August 2004, I didn't encounter this error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2009 09:24 PM
05-14-2009 09:24 PM
Re: xerces build using gnu g++ error -- forward declaration error.
You might be able to get the same error with aCC6's +strict option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2009 12:41 AM
05-15-2009 12:41 AM
Re: xerces build using gnu g++ error -- forward declaration error.
% aCC +strict -D_HP_UX -DHPaCC -DHPUX11 +Z -c \
-I/home/shinji/oss/xerces-c-src_2_5_0/include \
-AA -w -O -DPROJ_XMLPARSER -DPROJ_XMLUTIL -DPROJ_PARSERS \
-DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM -DPROJ_VALIDATORS \
-DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER \
-DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET
-o /home/shinji/oss/xerces-c-src_2_5_0/obj/HPUX/XSAttributeGroupDefinition.o \
XSAttributeGroupDefinition.o-test XSAttributeGroupDefinition.cpp
"/home/shinji/oss/xerces-c-src_2_5_0/include/xercesc/util/NameIdPool.c", line 416: error #2137:
expression must be a modifiable lvalue
fMemoryManager = toAssign.fMemoryManager;
Without +strict option, Xerces-C 2.5.0 build on 11.23 works
successfully with our HP compiler A.06.22 as when I used A.05.57
5 years ago.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2009 01:08 PM
05-15-2009 01:08 PM
Re: xerces build using gnu g++ error -- forward declaration error.
error #2137: expression must be a modifiable lvalue
Where is the caret pointing? To the LHS or which of the tokens on the RHS? What are the types of each?
Basically it says the source is illegal and may be related to the incomplete class that g++ gave. The source has to be reordered and xercesc_2_5::XMLStringPool must be defined before it is used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2009 06:27 PM
05-16-2009 06:27 PM
Re: xerces build using gnu g++ error -- forward declaration error.
MemoryManager* const fMemoryManager;
After removing "const" from this line, aCC6 +strict doesn't cause
the #2137 error in XSAttributeGroupDefinition.cpp.
I needed one more changes in util/RefArrayOf.hpp to build successfully
whole of Xerces-C 2.5 source code using aCC6 +strict to prevent
the error #2393 "pointer to incomplete class type is not allowed":
% diff util/RefArrayOf.hpp.orig util/RefArrayOf.hpp
104c104
<
---
> #include
%
NOTE: I was able to build successfully Xerces-C 2.8 and 3.0 using
gcc 4.0.0 and aCC6 +strict respectively without any source code
changes.
Rui, can't you use the newer Xerces-C version, either Xerces-C
2.8 or 3.0 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2009 07:48 PM
05-16-2009 07:48 PM
Re: xerces build using gnu g++ error -- forward declaration error.
>After removing "const" from this line
Hmm, that seems like a useless definition unless it is mutable, initialized in a constructor init list or a cast hammer is used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2009 09:25 PM
05-19-2009 09:25 PM
Re: xerces build using gnu g++ error -- forward declaration error.
To build Xerces-C 2.5 using gcc and g++, you have to change some files:
1. Add #include
- framework/psvi/XSAttributeGroupDefinition.cpp
- framework/psvi/XSModelGroupDefinition.cpp
- framework/psvi/XSNotationDeclaration.cpp
2. Add #include
- framework/psvi/XSNamespaceItem.hpp
3. Change Makefile.incl you referenced as follows:
< EXTRA_LINK_OPTIONS = -b -Wl,+s -Wl,+b,.
--
> EXTRA_LINK_OPTIONS =
I'm using gcc/gcc 4.0 on 11.23. So I hope the same changes work
for your environment, too !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2009 07:05 AM
05-20-2009 07:05 AM
Re: xerces build using gnu g++ error -- forward declaration error.
Thanks for all the support on this thread, i tried the last option and it works great -- it seems you have to add certain changes into source.
Now afterwards i am generating an archive file using
ar r xerceslib.a *.o
but the thing is when I link to xerces using
g++ -o ../cr_api_test.hp -lstdc++ -lX11 -L. -L../ -Wall -Wno-deprecated -lpthread -lm -lsec -lnsl -lrt -L/usr/X11R6/lib ../crxrdlin/crreadline01.a ../unittest/crunittest001.a ../dwmonitor/crdwmonitor001.a ../dwmonitor/systemmonitor/crsysmon001.a ../common/crcommon01.a ../xerceslib.a
I get lot of messages, a few are given below, all have to do with "unsatisfied symbol". Am I missing some linker flag, also xerces code was compiled using -fPIC flag as the same code would be used for shared library, does it make any difference -- if not where lies the problem???
ld: Unsatisfied symbol "xercesc_2_5::RefStackOf<:domnode>::empty()" in file ../xerceslib.a[DOMDocumentImpl.o]
ld: Unsatisfied symbol "xercesc_2_5::ValueStackOf
ld: Unsatisfied symbol "xercesc_2_5::ArrayJanitor
ld: Unsatisfied symbol "xercesc_2_5::Janitor<:schemaattdef>::reset(xercesc_2_5::SchemaAttDef*)" in file ../xerceslib.a[TraverseSchema.o]
ld: Unsatisfied symbol "xercesc_2_5::ValueHashTableOfEnumerator
ld: Unsatisfied symbol "xercesc_2_5::ValueStackOf<:complextypeinfo>::pop()" in file ../xerceslib.a[SchemaValidator.o]
ld: Unsatisfied symbol "xercesc_2_5::NameIdPoolEnumerator<:dtdelementdecl>::nextElement()" in file ../xerceslib.a[XTemplateSerializer.o]
ld: Unsatisfied symbol "xercesc_2_5::ValueVectorOf<:schemagrammar>::removeAllElements()" in file ../xerceslib.a[GrammarResolver.o]
ld: Unsatisfied symbol "xercesc_2_5::ArrayJanitor
ld: Unsatisfied symbol "xercesc_2_5::ArrayJanitor
ld: Unsatisfied symbol "xercesc_2_5::ArrayJanitor
ld: Unsatisfied symbol "xercesc_2_5::ArrayJanitor
ld: Unsatisfied symbol "xercesc_2_5::ArrayJanitor
Regards,
RUI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2009 04:05 PM
05-20-2009 04:05 PM
Re: xerces build using gnu g++ error -- forward declaration error.
same problem. On the other hand, libxerces-c.sl generated by
cc/aCC doesn't have the problem.
Double-checking the changes may be needed for gcc/g++.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2009 04:49 PM
05-20-2009 04:49 PM
Re: xerces build using gnu g++ error -- forward declaration error.
This may help. Are those references in those object files also in the aC++ version? If so, does the aC++ version also have definitions elsewhere?
Linking with -Wl,-ymangled-symbol-name would show both.
Or you can use nm to find them:
nm -pxAN lib*.a *.o | grep ValueVectorOf | grep removeAllElements
- Tags:
- nm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2009 02:15 AM
05-21-2009 02:15 AM
Re: xerces build using gnu g++ error -- forward declaration error.
I have just played a little bit more with it and now my "link line" is changed to have xerceslib.a as first archive to link with, given below -- and i think it feels a lot better now, before there were 100s of error even referring to xercelib itself like "one of the errors before" given below
Now the problem is that i get definite link errors, which amount to 78, called "new link error" given below and all the linking errors are with my source code which is better then before where there was linking error from with xerces itself.
The out of nm command for "new unsatisfied symbols" is given below at the end in order and it shows that the AbstractDOMParser::parse is available in the xerceslib.a but my link line can't link to it in two places given right below from the 78 errors
../xml/crxml001.a[xmlmatchlistm4dwdrxml.o]
../ddl/crddl001.a[ddli_docimplm4dwddl.o]
Regards,
RUI
link line:
-----------
g++ -o ../cr_api_test.hp -lstdc++ -lX11 -L. -L../ -Wall -Wno-deprecated -lpthread -lm -lsec -lnsl -lrt -L/usr/X11R6/lib ../xerceslib.a ../crxrdlin/crreadline01.a ../unittest/crunittest001.a ../dwmonitor/crdwmonitor001.a ../dwmonitor/systemmonitor/crsysmon001.a ../common/crcommon01.a
one of the errors before:
------------------------
ld: Unsatisfied symbol "xercesc_2_5::RefStackOf<:domnode>::empty()" in file ../xerceslib.a[DOMDocumentImpl.o]
new link error:
--------------
ld: Unsatisfied symbol "xercesc_2_5::XMLPlatformUtils::Terminate()" in file ../ddl/crddl001.a[ddli_interfacem4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLUni::fgDOMWRTFormatPrettyPrint" in file ../ddl/crddl001.a[ddli_docimplm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::DOMImplementation::loadDOMExceptionMsg(xercesc_2_5::DOMException::ExceptionCode, unsigned short*, unsigned int)" in file ../comms/crcomms01.a[xmlapireqrep.o]
ld: Unsatisfied symbol "xercesc_2_5::DTDEntityDecl::getProtoType() const" in file ../csm/crcsm01.a[ccsmm4smcsm.o]
ld: Unsatisfied symbol "typeinfo for xercesc_2_5::XMLException" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLString::lowerCase(unsigned short*)" in file ../ddl/crddl001.a[unicode_stringm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::Match::Match(xercesc_2_5::MemoryManager*)" in file ../ddl/crddl001.a[ddl_regularexpressionm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XMemory::operator delete(void*)" in file ../csm/crcsm01.a[ccsmm4smcsm.o]
ld: Unsatisfied symbol "typeinfo for xercesc_2_5::BinInputStream" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::SAXParseException::SAXParseException(xercesc_2_5::SAXParseException const&)" in file ../csm/crcsm01.a[ccsmm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLUni::fgArrayIndexOutOfBoundsException_Name" in file ../ddl/crddl001.a[ddl_regularexpressionm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::Match::~Match()" in file ../ddl/crddl001.a[ddl_regularexpressionm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLPlatformUtils::fgMemoryManager" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "typeinfo for xercesc_2_5::XMLEntityDecl" in file ../csm/crcsm01.a[ccsmm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::DTDEntityDecl::isSerializable() const" in file ../csm/crcsm01.a[ccsmm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::LocalFileInputSource::LocalFileInputSource(unsigned short const*, xercesc_2_5::MemoryManager*)" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::StdOutFormatTarget::StdOutFormatTarget()" in file ../ddl/crddl001.a[ddli_docimplm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLException::loadExceptText(xercesc_2_5::XMLExcepts::Codes)" in file ../ddl/crddl001.a[ddl_regularexpressionm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::AbstractDOMParser::setDoNamespaces(bool)" in file ../xml/crxml001.a[xmlmatchlistm4dwdrxml.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLFormatter::~XMLFormatter()" in file ../ddl/crddl001.a[event_driven_xml_writerm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLException::XMLException(char const*, unsigned int, xercesc_2_5::MemoryManager*)" in file ../ddl/crddl001.a[ddl_regularexpressionm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLRefInfo::getProtoType() const" in file ../csm/crcsm01.a[ccsmm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::XercesDOMParser::setErrorHandler(xercesc_2_5::ErrorHandler*)" in file ../xml/crxml001.a[xmlmatchlistm4dwdrxml.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLRefInfo::isSerializable() const" in file ../csm/crcsm01.a[ccsmm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLString::transcode(char const*, unsigned short*, unsigned int, xercesc_2_5::MemoryManager*)" in file ../ddl/crddl001.a[ddli_docimplm4dwddl.o]
ld: Unsatisfied symbol "typeinfo for xercesc_2_5::DOMException" in file ../ddl/crddl001.a[ddli_docimplm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLAttDefList::getProtoType() const" in file ../csm/crcsm01.a[ccsmm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::InputSource::setEncoding(unsigned short const*)" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::InputSource::InputSource(unsigned short const*, xercesc_2_5::MemoryManager*)" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::AbstractDOMParser::adoptDocument()" in file ../comms/crcomms01.a[xmlapireqrep.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLRefInfo::serialize(xercesc_2_5::XSerializeEngine&)" in file ../csm/crcsm01.a[ccsmm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::InputSource::~InputSource()" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLFormatter::formatBuf(unsigned short const*, unsigned int, xercesc_2_5::XMLFormatter::EscapeFlags, xercesc_2_5::XMLFormatter::UnRepFlags)" in file ../ddl/crddl001.a[event_driven_xml_writerm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::InputSource::setPublicId(unsigned short const*)" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLException::~XMLException()" in file ../ddl/crddl001.a[ddl_regularexpressionm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLUni::fgXercescDefaultLocale" in file ../xml/crxml001.a[ddl2_ctrlm4dwdrxml.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLAttDefList::serialize(xercesc_2_5::XSerializeEngine&)" in file ../csm/crcsm01.a[ccsmm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::MemBufInputSource::MemBufInputSource(unsigned char const*, unsigned int, unsigned short const*, bool, xercesc_2_5::MemoryManager*)" in file ../xml/crxml001.a[xmlmatchlistm4dwdrxml.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLString::upperCase(unsigned short*)" in file ../ddl/crddl001.a[unicode_stringm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::RegularExpression::~RegularExpression()" in file ../ddl/crddl001.a[ddl_regularexpressionm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLAttDefList::isSerializable() const" in file ../csm/crcsm01.a[ccsmm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLChar1_0::isValidName(unsigned short const*, unsigned int)" in file ../ddl/crddl001.a[event_driven_xml_writerm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::SAXParseException::getSystemId() const" in file ../ddl/crddl001.a[ddli_errorreportm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLString::release(char**)" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::SAXParseException::getColumnNumber() const" in file ../ddl/crddl001.a[ddli_errorreportm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLString::trim(unsigned short*)" in file ../ddl/crddl001.a[unicode_stringm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::MemBufInputSource::MemBufInputSource(unsigned char const*, unsigned int, char const*, bool, xercesc_2_5::MemoryManager*)" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::InputSource::setSystemId(unsigned short const*)" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLUni::fgRuntimeException_Name" in file ../ddl/crddl001.a[ddl_regularexpressionm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::SAXParseException::getLineNumber() const" in file ../ddl/crddl001.a[ddli_errorreportm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XercesDOMParser::XercesDOMParser(xercesc_2_5::XMLValidator*, xercesc_2_5::MemoryManager*, xercesc_2_5::XMLGrammarPool*)" in file ../xml/crxml001.a[xmlmatchlistm4dwdrxml.o]
ld: Unsatisfied symbol "xercesc_2_5::XMemory::operator new(unsigned long)" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::DOMImplementationRegistry::getDOMImplementation(unsigned short const*)" in file ../ddl/crddl001.a[ddli_docimplm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::RegularExpression::RegularExpression(char const*, char const*, xercesc_2_5::MemoryManager*)" in file ../ddl/crddl001.a[ddl_regularexpressionm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLString::compareString(unsigned short const*, unsigned short const*)" in file ../ddl/crddl001.a[unicode_stringm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::AbstractDOMParser::setCalculateSrcOfs(bool)" in file ../xml/crxml001.a[xmlmatchlistm4dwdrxml.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLString::compareIString(unsigned short const*, unsigned short const*)" in file ../ddl/crddl001.a[unicode_stringm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::SAXParseException::~SAXParseException()" in file ../csm/crcsm01.a[ccsmm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLString::regionIMatches(unsigned short const*, int, unsigned short const*, int, unsigned int)" in file ../ddl/crddl001.a[unicode_stringm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XMemory::operator delete(void*, xercesc_2_5::MemoryManager*)" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::XMemory::operator new(unsigned long, xercesc_2_5::MemoryManager*)" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::AbstractDOMParser::getDocument()" in file ../xml/crxml001.a[xmlmatchlistm4dwdrxml.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLFormatter::XMLFormatter(char const*, char const*, xercesc_2_5::XMLFormatTarget*, xercesc_2_5::XMLFormatter::EscapeFlags, xercesc_2_5::XMLFormatter::UnRepFlags, xercesc_2_5::MemoryManager*)" in file ../ddl/crddl001.a[event_driven_xml_writerm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::BinInputStream::~BinInputStream()" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "typeinfo for xercesc_2_5::InputSource" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "typeinfo for xercesc_2_5::SAXParseException" in file ../csm/crcsm01.a[ccsmm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::BinInputStream::BinInputStream()" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::DTDEntityDecl::serialize(xercesc_2_5::XSerializeEngine&)" in file ../csm/crcsm01.a[ccsmm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLString::transcode(unsigned short const*)" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLString::transcode(char const*)" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::SAX2XMLReaderImpl::SAX2XMLReaderImpl(xercesc_2_5::MemoryManager*, xercesc_2_5::XMLGrammarPool*)" in file ../csm/crcsm01.a[crxmlm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::AbstractDOMParser::parse(xercesc_2_5::InputSource const&)" in file ../xml/crxml001.a[xmlmatchlistm4dwdrxml.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLString::isAllWhiteSpace(unsigned short const*)" in file ../ddl/crddl001.a[ddli_pretty_printm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLEntityDecl::~XMLEntityDecl()" in file ../csm/crcsm01.a[ccsmm4smcsm.o]
ld: Unsatisfied symbol "xercesc_2_5::RegularExpression::matches(char const*, xercesc_2_5::Match*, xercesc_2_5::MemoryManager*)" in file ../ddl/crddl001.a[ddl_regularexpressionm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::AbstractDOMParser::parse(char const*)" in file ../ddl/crddl001.a[ddli_docimplm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLException::XMLException(xercesc_2_5::XMLException const&)" in file ../ddl/crddl001.a[ddl_regularexpressionm4dwddl.o]
ld: Unsatisfied symbol "xercesc_2_5::XMLPlatformUtils::Initialize(char const*, char const*, xercesc_2_5::PanicHandler*, xercesc_2_5::MemoryManager*)" in file ../xml/crxml001.a[ddl2_ctrlm4dwdrxml.o]
78 errors.
collect2: ld returned 1 exit status
new unsatisfied symbol:
-----------------------
bash-3.2$ nm -pxAN xerceslib.a | grep AbstractDOMParser | grep parse
0x00000620 T xerceslib.a[AbstractDOMParser.o]:_ZN11xercesc_2_517AbstractDOMParser9parseNextERNS_13XMLPScanTokenE
0x00001770 T xerceslib.a[AbstractDOMParser.o]:_ZN11xercesc_2_517AbstractDOMParser5parseEPKt
0x000021f0 T xerceslib.a[AbstractDOMParser.o]:_ZN11xercesc_2_517AbstractDOMParser10parseResetERNS_13XMLPScanTokenE
0x00004d40 T xerceslib.a[AbstractDOMParser.o]:_ZN11xercesc_2_517AbstractDOMParser10parseFirstERKNS_11InputSourceERNS_13XMLPScanTokenE
0x00005160 T xerceslib.a[AbstractDOMParser.o]:_ZN11xercesc_2_517AbstractDOMParser5parseERKNS_11InputSourceE
0x00005630 T xerceslib.a[AbstractDOMParser.o]:_ZN11xercesc_2_517AbstractDOMParser10parseFirstEPKcRNS_13XMLPScanTokenE
0x000057c0 T xerceslib.a[AbstractDOMParser.o]:_ZN11xercesc_2_517AbstractDOMParser10parseFirstEPKtRNS_13XMLPScanTokenE
0x00005950 T xerceslib.a[AbstractDOMParser.o]:_ZN11xercesc_2_517AbstractDOMParser5parseEPKc
0x00000000 U xerceslib.a[DOMBuilderImpl.o]:_ZN11xercesc_2_517AbstractDOMParser5parseEPKc
0x00000000 U xerceslib.a[DOMBuilderImpl.o]:_ZN11xercesc_2_517AbstractDOMParser5parseEPKt
0x00000000 U xerceslib.a[DOMBuilderImpl.o]:_ZN11xercesc_2_517AbstractDOMParser5parseERKNS_11InputSourceE
0x00000000 U xerceslib.a[IGXMLScanner2.o]:_ZN11xercesc_2_517AbstractDOMParser5parseERKNS_11InputSourceE
0x00000000 U xerceslib.a[SGXMLScanner.o]:_ZN11xercesc_2_517AbstractDOMParser5parseERKNS_11InputSourceE
0x00000000 U xerceslib.a[TraverseSchema.o]:_ZN11xercesc_2_517AbstractDOMParser5parseERKNS_11InputSourceE
0x00000000 U xerceslib.a[XSAnnotation.o]:_ZN11xercesc_2_517AbstractDOMParser5parseERKNS_11InputSourceE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2009 05:05 PM
05-23-2009 05:05 PM
Re: xerces build using gnu g++ error -- forward declaration error.
>it shows that the AbstractDOMParser::parse is available in the xerceslib.a
Yes. You may want to give up on ordering and just let ld figure it out with -Wl,+n.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2009 02:16 AM
05-24-2009 02:16 AM
Re: xerces build using gnu g++ error -- forward declaration error.
the unsat problem goes away perfectly. But I think you can have
much more improvements.
As you already know, -fPIC is not required when generating *.o
for the archive library.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2009 02:51 AM
06-05-2009 02:51 AM
Re: xerces build using gnu g++ error -- forward declaration error.
Thank you both for keeping up with me and helping me out.
Tried both the things, adding +Wl,+n doesn't work and the errors increase.
Also if I remove -DXERCES_TMPLSINC, then its even more problematic with xercesc compilation even failing after adding your mentioned changes.
I have seen that there are some linker patches available at, should I upgrade to them.
http://www13.itrc.hp.com/service/patch/patchDetail.do?patchid=PHSS_34860&sel={hpux:11.23,0}&BC=main|sbs|systemDesc{0}|
http://www13.itrc.hp.com/service/patch/patchDetail.do?BC=main|sbs|systemDesc{0}|patchDetail{PHSS_34860,{hpux:11.23,0}}|&patchid=PHSS_39093&sel={hpux:11.23,0}
Is it problem with the linker, my ld is this:
ld_msgs.cat: $Revision: 1.85 $
92453-07 linker ld HP Itanium(R) B.12.42 IPF/IPF
REL Fri Dec 1 11:36:57 2006 PST
HP aC++ for Integrity Servers B3910B A.06.10 [Mar 22 2006] Classic Iostream Library
HP aC++ for Integrity Servers B3910B A.06.10 [Mar 22 2006] Language Support Library
Or should i try the linker with gcc which doesn't seem to be present.
Regards,
rui
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2009 04:47 AM
06-05-2009 04:47 AM
Re: xerces build using gnu g++ error -- forward declaration error.
Possibly, it's pretty old.
But typically this is due to a missing lib or incorrect path.
Basically you need to know where a symbol is being used and have some idea where it should be defined.
>Or should I try the linker with gcc which doesn't seem to be present.
Using a foreign devil ld would be taking 10 steps backwards.
- Tags:
- foreign devil tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2009 08:55 AM
06-05-2009 08:55 AM
Re: xerces build using gnu g++ error -- forward declaration error.
Any help regarding problem compiling xerces 2.5.0 on hp itanium using gcc would be greatly appreciated.
rui
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2009 05:48 AM
06-06-2009 05:48 AM
Re: xerces build using gnu g++ error -- forward declaration error.
You've solved your above unsat problems? And the symbols are now different?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2009 05:57 PM
06-06-2009 05:57 PM
Re: xerces build using gnu g++ error -- forward declaration error.
Makefile.incl. If you want to have static library, you don't
have to specify -fPIC and -shared. Actually both MAKE_SHARED and
MAKE_SHARED_C are not required.
Anyway, I'd like to recommend to use Xerces-c 2.8 once again
rather than still sticking to out-of-date 2.5 version. As I
mentioned in my past message, you don't have to any changes to
the source code for gcc/g++. Also I just noticed runConfigure is
providing the "-s" option support for static building.
% ./runConfigure -p hp-11 -c gcc -x g++ -s -r pthread
With "-s", you can have both libxerces-a.a and libxerces-depdom.a
in the lib directory. Without "-s", those shared libraries are
built in the directory.