Hi,
I am trying to build Xalan on Redhat 8.0 with gcc 3.2. But the build is not going through. Also there are 2 distributions there on the download page.
Should I be using Xalan-C_1_9_0-src.zip or Xalan-C_1_9_0-src.tar.gz ?
I tried to build using Xalan-C_1_9_0-src.zip , and getting following errors. I didn't have enough time to debug it myself, so I am just putting the errors here, if someone could point out what could be wrong, i would appreciate it.
Thanks!!!
g++ -O2 -DNDEBUG -fno-elide-constructors -Wall -fPIC -DLINUX -D_REENTRANT -DXALAN_INMEM_MSG_LOADER -c -I/home/Xalan/xml-xalan/c/src -I/home/Xalan/xml-xalan/c/include -I../../nls/include -I/home/Xalan/Xerces/xerces-c-src_2_6_0/src/ -I/home/Xalan/Xerces/xerces-c-src_2_6_0/include/xercesc -I/home/Xalan/Xerces/xerces-c-src_2_6_0/include/ -o ../../obj/process.o /home/Xalan/xml-xalan/c/src/xalanc/TestXSLT/process.cpp
/home/Xalan/xml-xalan/c/src/xalanc/TestXSLT/process.cpp: In function
`xalanc_1_9::FormatterListener* createFormatter(int, bool, bool, bool, bool,
xalanc_1_9::PrintWriter&, int, const xalanc_1_9::XalanDOMString&, const
xalanc_1_9::StylesheetRoot*, xalanc_1_9::XercesParserLiaison&,
xalanc_1_9::XalanSourceTreeParserLiaison&, const
xalanc_1_9::PrefixResolver&, const xalanc_1_9::XalanDocument*&)':
/home/Xalan/xml-xalan/c/src/xalanc/TestXSLT/process.cpp:631: no matching
function for call to `xalanc_1_9::FormatterToText::FormatterToText(
xercesc_2_6::MemoryManager&, xalanc_1_9::PrintWriter&, const
xalanc_1_9::XalanDOMString&)'
/home/Xalan/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp:224: candidates
are: xalanc_1_9::FormatterToText::FormatterToText(const
xalanc_1_9::FormatterToText&)
/home/Xalan/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp:82:
/home/Xalan/xml-xalan/c/src/xalanc/TestXSLT/process.cpp: In function
`xalanc_1_9::FormatterListener* createFormatter(int, bool, bool, bool, bool,
xalanc_1_9::PrintWriter&, int, const xalanc_1_9::XalanDOMString&, const
xalanc_1_9::StylesheetRoot*, xalanc_1_9::XercesParserLiaison&,
xalanc_1_9::XalanSourceTreeParserLiaison&, const
xalanc_1_9::PrefixResolver&, const xalanc_1_9::XalanDocument*&)':
/home/Xalan/xml-xalan/c/src/xalanc/TestXSLT/process.cpp:631: no matching
function for call to `xalanc_1_9::FormatterToText::FormatterToText(
xercesc_2_6::MemoryManager&, xalanc_1_9::PrintWriter&, const
xalanc_1_9::XalanDOMString&)'
/home/Xalan/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp:224: candidates
are: xalanc_1_9::FormatterToText::FormatterToText(const
xalanc_1_9::FormatterToText&)
/home/Xalan/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp:82:
xalanc_1_9::FormatterToText::FormatterToText(xalanc_1_9::Writer&, const
xalanc_1_9::XalanDOMString&, bool = true, bool = true,
xalanc_1_9::MemoryManagerType& =
xalanc_1_9::XalanMemMgrs::getDefaultXercesMemMgr()())
/home/Xalan/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp:67:
xalanc_1_9::XalanDOMString&, bool = true, bool = true,
xalanc_1_9::MemoryManagerType& =
xalanc_1_9::XalanMemMgrs::getDefaultXercesMemMgr()())
/home/Xalan/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp:67:
xalanc_1_9::FormatterToText::FormatterToText(xalanc_1_9::Writer&, bool =
true, bool = true, xalanc_1_9::MemoryManagerType& =
xalanc_1_9::XalanMemMgrs::getDefaultXercesMemMgr()())
/home/Xalan/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp:54:
true, bool = true, xalanc_1_9::MemoryManagerType& =
xalanc_1_9::XalanMemMgrs::getDefaultXercesMemMgr()())
/home/Xalan/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp:54:
xalanc_1_9::FormatterToText::FormatterToText(xalanc_1_9::MemoryManagerType&
= xalanc_1_9::XalanMemMgrs::getDefaultXercesMemMgr()())
/home/Xalan/xml-xalan/c/src/xalanc/TestXSLT/process.cpp:666: no matching
function for call to `xalanc_1_9::FormatterToHTML::FormatterToHTML(
xercesc_2_6::MemoryManager&, xalanc_1_9::PrintWriter&, const
xalanc_1_9::XalanDOMString&, xalanc_1_9::XalanDOMString&,
xalanc_1_9::XalanDOMString&, xalanc_1_9::XalanDOMString&, bool&, int&)'
/home/Xalan/xml-xalan/c/src/xalanc/XMLSupport/FormatterToHTML.hpp:51: candidates
are: xalanc_1_9::FormatterToHTML::FormatterToHTML(const
xalanc_1_9::FormatterToHTML&)
/home/Xalan/xml-xalan/c/src/xalanc/XMLSupport/FormatterToHTML.hpp:85:
= xalanc_1_9::XalanMemMgrs::getDefaultXercesMemMgr()())
/home/Xalan/xml-xalan/c/src/xalanc/TestXSLT/process.cpp:666: no matching
function for call to `xalanc_1_9::FormatterToHTML::FormatterToHTML(
xercesc_2_6::MemoryManager&, xalanc_1_9::PrintWriter&, const
xalanc_1_9::XalanDOMString&, xalanc_1_9::XalanDOMString&,
xalanc_1_9::XalanDOMString&, xalanc_1_9::XalanDOMString&, bool&, int&)'
/home/Xalan/xml-xalan/c/src/xalanc/XMLSupport/FormatterToHTML.hpp:51: candidates
are: xalanc_1_9::FormatterToHTML::FormatterToHTML(const
xalanc_1_9::FormatterToHTML&)
/home/Xalan/xml-xalan/c/src/xalanc/XMLSupport/FormatterToHTML.hpp:85:
xalanc_1_9::FormatterToHTML::FormatterToHTML(xalanc_1_9::Writer&, const
xalanc_1_9::XalanDOMString& =
XalanDOMString((+xalanc_1_9::XalanMemMgrs::getDummyMemMgr()())), const
xalanc_1_9::XalanDOMString& =
XalanDOMString((+xalanc_1_9::XalanMemMgrs::getDummyMemMgr()())), const
xalanc_1_9::XalanDOMString& =
XalanDOMString((+xalanc_1_9::XalanMemMgrs::getDummyMemMgr()())), const
xalanc_1_9::XalanDOMString& =
XalanDOMString((+xalanc_1_9::XalanMemMgrs::getDummyMemMgr()())), bool =
true, int = eDefaultIndentAmount, bool = true, bool = false,
xalanc_1_9::MemoryManagerType& =
xalanc_1_9::XalanMemMgrs::getDefaultXercesMemMgr()())
gmake[1]: *** [../../obj/process.o] Error 1
gmake[1]: Leaving directory `/home/Xalan/xml-xalan/c/src/xalanc'
gmake: *** [all] Error 2
xalanc_1_9::XalanDOMString& =
XalanDOMString((+xalanc_1_9::XalanMemMgrs::getDummyMemMgr()())), const
xalanc_1_9::XalanDOMString& =
XalanDOMString((+xalanc_1_9::XalanMemMgrs::getDummyMemMgr()())), const
xalanc_1_9::XalanDOMString& =
XalanDOMString((+xalanc_1_9::XalanMemMgrs::getDummyMemMgr()())), const
xalanc_1_9::XalanDOMString& =
XalanDOMString((+xalanc_1_9::XalanMemMgrs::getDummyMemMgr()())), bool =
true, int = eDefaultIndentAmount, bool = true, bool = false,
xalanc_1_9::MemoryManagerType& =
xalanc_1_9::XalanMemMgrs::getDefaultXercesMemMgr()())
gmake[1]: *** [../../obj/process.o] Error 1
gmake[1]: Leaving directory `/home/Xalan/xml-xalan/c/src/xalanc'
gmake: *** [all] Error 2
[EMAIL PROTECTED] wrote:
> Here is the compiler and OS version info.
>
> Linux version 2.4.18-3 (gcc version 2.96 20000731 (Red Hat Linux 7.3
2.96-110)
That version of GCC is not a true GCC release, and is known to be broken,
so you should not use it:
http://gcc.gnu.org/gcc-2.96.html
You should build a proper version of GCC and use that. The other
alternative is to get an updated compiler package from Red Hat.
Dave
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
