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 Peng Liang <ML...@ntu.edu.sg> on 2006/06/23 07:48:29 UTC

Xalan compilatino issue with Sun Studio 11 compiler

Hi folks,

I got some issues in compiling Xalan 1.10 and Xerces2.7 with sun studio 11 compiler on Solaris 10/UltraSPARC IV. Seems that the C++ syntax cannot be recognized by the compiler. The $PATH has be set already. Looks like some head file are not really included, or some macro need to be defined/undefined. Any hints? The error messages are as follows. Thanks in advance.


*** Start compiling the C code(s):

xml_class.cpp xml_common.cpp xml_fml2xml.cpp xml_gxform.cpp xml_xml2fml.cpp xsl_cache.cpp xml_init.cpp

CC -I/app/oraclient/920/precomp/public -I/app/bea/tuxedo8.1/include -I/staglib/ELK/consolidated/include -I/opt/mqm/inc \

-I/staglib/ELK/consolidated/xml-xalan1.10/c/src -I/staglib/ELK/consolidated/xml-xerces2.7/include -c -DSVC_TEMPLATE_MAIN -L/app/bea/tuxedo8.1/lib xml_init.cpp

"/staglib/ELK/consolidated/xml-xalan1.10/c/src/xalanc/PlatformSupport/XalanLocator.hpp", line 48: Error: "," expected instead of "size_type".

"/staglib/ELK/consolidated/xml-xalan1.10/c/src/xalanc/PlatformSupport/XalanLocator.hpp", line 50: Error: Use ";" to terminate declarations.

"/staglib/ELK/consolidated/xml-xalan1.10/c/src/xalanc/PlatformSupport/XalanLocator.hpp", line 62: Error: Virtual function xalanc_1_10::XalanLocator::getLineNumber() const returns unsigned, while Locator::getLineNumber() const returns int.

"/staglib/ELK/consolidated/xml-xalan1.10/c/src/xalanc/PlatformSupport/XalanLocator.hpp", line 65: Error: Virtual function xalanc_1_10::XalanLocator::getColumnNumber() const returns unsigned, while Locator::getColumnNumber() const returns int.

"/staglib/ELK/consolidated/xml-xalan1.10/c/src/xalanc/PlatformSupport/XSLException.hpp", line 43: Error: size_type is not a member of xalanc_1_10::XalanLocator.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/dom/DOMDocument.hpp", line 870: Error: ")" expected instead of "lineNum".

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/dom/DOMDocument.hpp", line 871: Error: ) is not defined.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/dom/DOMDocument.hpp", line 871: Error: A member cannot be initialized except in a constructor.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/framework/psvi/PSVIItem.hpp", line 40: Error: XMemory is not defined.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/framework/psvi/PSVIItem.hpp", line 90: Error: fgMemoryManager is not a member of XMLPlatformUtils.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/framework/psvi/PSVIElement.hpp", line 54: Error: fgMemoryManager is not a member of XMLPlatformUtils.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/framework/psvi/XSObject.hpp", line 41: Error: XMemory is not defined.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/framework/psvi/XSObject.hpp", line 61: Error: fgMemoryManager is not a member of XMLPlatformUtils.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/framework/psvi/XSTypeDefinition.hpp", line 71: Error: fgMemoryManager is not a member of XMLPlatformUtils.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/framework/psvi/XSSimpleTypeDefinition.hpp", line 165: Error: fgMemoryManager is not a member of XMLPlatformUtils.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/framework/psvi/PSVIAttribute.hpp", line 54: Error: fgMemoryManager is not a member of XMLPlatformUtils.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/framework/psvi/PSVIAttributeList.hpp", line 39: Error: XMemory is not defined.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/framework/psvi/PSVIAttributeList.hpp", line 53: Error: fgMemoryManager is not a member of XMLPlatformUtils.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/util/BaseRefVectorOf.hpp", line 33: Error: XMemory is not defined.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/util/RefArrayVectorOf.hpp", line 29: Where: While specializing "BaseRefVectorOf<unsigned short>".

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/util/RefArrayVectorOf.hpp", line 29: Where: Specialized in RefArrayVectorOf<unsigned short>.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/framework/psvi/PSVIAttributeList.hpp", line 172: Where: Specialized in non-template code.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/util/BaseRefVectorOf.hpp", line 43: Error: fgMemoryManager is not a member of XMLPlatformUtils.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/util/RefArrayVectorOf.hpp", line 29: Where: While specializing "BaseRefVectorOf<unsigned short>".

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/util/RefArrayVectorOf.hpp", line 29: Where: Specialized in RefArrayVectorOf<unsigned short>.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/framework/psvi/PSVIAttributeList.hpp", line 172: Where: Specialized in non-template code.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/util/RefArrayVectorOf.hpp", line 36: Error: fgMemoryManager is not a member of XMLPlatformUtils.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/framework/psvi/PSVIAttributeList.hpp", line 172: Where: While specializing "RefArrayVectorOf<unsigned short>".

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/framework/psvi/PSVIAttributeList.hpp", line 172: Where: Specialized in non-template code.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/parsers/AbstractDOMParser.hpp", line 54: Error: XMemory is not defined.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/parsers/AbstractDOMParser.hpp", line 1552: Error: fgMemoryManager is not a member of XMLPlatformUtils.

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/parsers/AbstractDOMParser.hpp", line 1756: Warning: AbstractDOMParser::endElement hides the virtual function XMLDocumentHandler::endElement(const XMLElementDecl&, const unsigned, const bool).

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/parsers/AbstractDOMParser.hpp", line 1756: Warning: AbstractDOMParser::doctypeDecl hides the virtual function DocTypeHandler::doctypeDecl(const DTDElementDecl&, const unsigned short*const, const unsigned short*const, const bool).

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/parsers/AbstractDOMParser.hpp", line 1837: Error: Could not find a match for XMLString::replicate(const unsigned short*const, MemoryManager*) needed in AbstractDOMParser::useImplementation(const unsigned short*const).

"/staglib/ELK/consolidated/xml-xerces2.7/include/xercesc/parsers/XercesDOMParser.hpp", line 404: Error: ")" expected instead of "lineNum".

Compilation aborted, too many Error messages.

make: *** [c] Error 1



Regards,
Peng Liang (Dr.)
--
Research Fellow 
Nanyang Center for Supercomputing and Visualisation
Nanyang Technological University
and 
Research Scientist
Asia Pacific Science & Technology Center
Sun Microsystems Inc.