You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Peng Liang <ML...@ntu.edu.sg> on 2006/06/23 07:50:19 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 
--
Research Fellow 
Nanyang Center for Supercomputing and Visualisation
Nanyang Technological University

RE: Xalan compilatino issue with Sun Studio 11 compiler

Posted by Peng Liang <ML...@ntu.edu.sg>.
David, 

Thanks a lot for your reply. We actually have issues in compiling both Xalan and Xerces (the complete error message is attached below). Will a reinstallation of Xalan and Xerces be helpful? 

Another thing is that we had no problem in building Xalan and Xerces itself, however we have the compilation issues when using Xalan and Xerces in our own code. It seems that some declarations for  the class members are not visible. Does it imply that the problem might be failure to include a necessary file in our code, including xalan files in the wrong order, or something wrong with the xalan configuration files? Or could it be some macros that I need to change in Include/SolarisDefinitions.hpp file? Or could it be even OS or compiler configuration problem? Please advise. Thanks.

The complete error message: 

*** 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



Thanks!


Regards,
Liang Peng

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. 




-----Original Message-----
From: David Bertoni [mailto:dbertoni@apache.org]
Sent: Sat 6/24/2006 2:13 AM
To: xalan-dev@xml.apache.org
Subject: Re: Xalan compilatino issue with Sun Studio 11 compiler
 
Peng Liang wrote:
> 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.
> 

These error seem to indicate the Xerces-C header files are corrupt.  Were you able to build Xerces-C successfully?  If 
not, then there's no point in trying to build Xalan-C.  If you were able to build Xerces-C, then something must have 
happened to the header files when they were being copied.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org



Re: Xalan compilatino issue with Sun Studio 11 compiler

Posted by David Bertoni <db...@apache.org>.
Peng Liang wrote:
> 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.
> 

These error seem to indicate the Xerces-C header files are corrupt.  Were you able to build Xerces-C successfully?  If 
not, then there's no point in trying to build Xalan-C.  If you were able to build Xerces-C, then something must have 
happened to the header files when they were being copied.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org