I've hit this as well, cross-compiling on RedHat8 for bluecat/ppc.  I
was also compiling on gcc 3.4.3; private copy ctors caused issues.  The
following patch made everything compile, but bin/testXPath is still
failing half way through.

Is there a newer development snapshot available? 

diff -Naur xml-xalan/src/xalanc/TestXSLT/process.cpp
xalan-c-1.9.0/src/xalanc/TestXSLT/process.cpp
--- xml-xalan/src/xalanc/TestXSLT/process.cpp   2004-12-20
21:55:48.000000000 -0800
+++ xalan-c-1.9.0/src/xalanc/TestXSLT/process.cpp       2005-07-21
15:53:30.000000000 -0700
@@ -628,7 +628,7 @@
        }
        else if(FormatterListener::OUTPUT_METHOD_TEXT == outputType)
        {
-               formatter = new FormatterToText( theManager,
resultWriter, mimeEncoding);
+               formatter = FormatterToText::FormatterToText::create(
theManager, 
+resultWriter, mimeEncoding);
        }
        else if(FormatterListener::OUTPUT_METHOD_HTML == outputType)
        {
@@ -655,7 +655,7 @@
                }
 
                FormatterToHTML* const  fToHTML =
-                               new FormatterToHTML(
+
FormatterToHTML::FormatterToHTML::create(
                         theManager,
                                                resultWriter,
                                                mimeEncoding,
diff -Naur xml-xalan/src/xalanc/XMLSupport/FormatterToHTML.hpp
xalan-c-1.9.0/src/xalanc/XMLSupport/FormatterToHTML.hpp
--- xml-xalan/src/xalanc/XMLSupport/FormatterToHTML.hpp 2004-12-20
21:55:54.000000000 -0800
+++ xalan-c-1.9.0/src/xalanc/XMLSupport/FormatterToHTML.hpp
2005-07-21 15:53:30.000000000 -0700
@@ -94,8 +94,8 @@
                        const XalanDOMString&   doctypePublic,
                        bool
doIndent,
                        int
indent,
-                       bool
escapeURLs,
-                       bool
omitMetaTag);
+                       bool
escapeURLs = true,
+                       bool
omitMetaTag = true);
        virtual
        ~FormatterToHTML();
 
diff -Naur xml-xalan/src/xalanc/XPath/ElementPrefixResolverProxy.hpp
xalan-c-1.9.0/src/xalanc/XPath/ElementPrefixResolverProxy.hpp
--- xml-xalan/src/xalanc/XPath/ElementPrefixResolverProxy.hpp
2004-12-20 21:55:54.000000000 -0800
+++ xalan-c-1.9.0/src/xalanc/XPath/ElementPrefixResolverProxy.hpp
2005-07-21 15:53:29.000000000 -0700
@@ -86,7 +86,7 @@
 
 private:
     //notimplemented
-    ElementPrefixResolverProxy(const ElementPrefixResolverProxy&);
+    //ElementPrefixResolverProxy(const ElementPrefixResolverProxy&);
 
        const XalanElement* const               m_namespaceContext;
 
diff -Naur xml-xalan/src/xalanc/XPath/NameSpace.hpp
xalan-c-1.9.0/src/xalanc/XPath/NameSpace.hpp
--- xml-xalan/src/xalanc/XPath/NameSpace.hpp    2004-12-20
21:55:54.000000000 -0800
+++ xalan-c-1.9.0/src/xalanc/XPath/NameSpace.hpp        2005-07-21
15:53:29.000000000 -0700
@@ -191,7 +191,7 @@
        }       
 
 private:
-       NameSpace(const NameSpace&);
+       //NameSpace(const NameSpace&);
 
        XalanDOMString  m_prefix;
 
diff -Naur xml-xalan/src/xalanc/XPath/XalanQNameByValue.hpp
xalan-c-1.9.0/src/xalanc/XPath/XalanQNameByValue.hpp
--- xml-xalan/src/xalanc/XPath/XalanQNameByValue.hpp    2004-12-20
21:55:55.000000000 -0800
+++ xalan-c-1.9.0/src/xalanc/XPath/XalanQNameByValue.hpp
2005-07-21 15:53:30.000000000 -0700
@@ -290,7 +290,7 @@
 
 private:
     // not implemented
-    XalanQNameByValue(const XalanQNameByValue& theSource);
+    //XalanQNameByValue(const XalanQNameByValue&       theSource);
        void
        initialize(
                        const XalanDOMChar*                     qname,
diff -Naur xml-xalan/src/xalanc/XSLT/FunctionSystemProperty.hpp
xalan-c-1.9.0/src/xalanc/XSLT/FunctionSystemProperty.hpp
--- xml-xalan/src/xalanc/XSLT/FunctionSystemProperty.hpp
2004-12-20 21:55:58.000000000 -0800
+++ xalan-c-1.9.0/src/xalanc/XSLT/FunctionSystemProperty.hpp
2005-07-21 15:53:29.000000000 -0700
@@ -73,7 +73,7 @@
 
 private:
 
-       FunctionSystemProperty(const FunctionSystemProperty&);
+       //FunctionSystemProperty(const FunctionSystemProperty&);
 
        // Not implemented...
        FunctionSystemProperty&
diff -Naur xml-xalan/src/xalanc/XSLT/TopLevelArg.hpp
xalan-c-1.9.0/src/xalanc/XSLT/TopLevelArg.hpp
--- xml-xalan/src/xalanc/XSLT/TopLevelArg.hpp   2004-12-20
21:55:59.000000000 -0800
+++ xalan-c-1.9.0/src/xalanc/XSLT/TopLevelArg.hpp       2005-07-21
15:53:30.000000000 -0700
@@ -147,7 +147,7 @@
 
 private:
     // not implemented
-    TopLevelArg(const TopLevelArg&     theSource);
+    //TopLevelArg(const TopLevelArg&   theSource);
 
        XalanQNameByValue       m_qname;
 

-----Original Message-----
From: cristi [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 22, 2005 3:02 AM
To: xalan-c-users@xml.apache.org
Subject: compilation error on debian

Hello all

I try to compile Xalan C on my machine.

I have installed Xerces C and my the sample aplication work.
When I want to compile Xalan, all seems to work well. It compiles the
library for about 5 minutes and then I receive the compilation error
below. Can somebody tell me what to do ?

My system is a Debian one.

Thx
Cristi

g++ -O2 -DNDEBUG     -fno-elide-constructors -Wall -fPIC -DLINUX
-D_REENTRANT 
-DXALAN_INMEM_MSG_LOADER -c -I/root/xml-xalan/c/src
-I/root/xml-xalan/c/include -I../../nls/include
-I/root/xerces-c-src_2_6_0//src/
-I/root/xerces-c-src_2_6_0//include/xercesc
-I/root/xerces-c-src_2_6_0//include/  -o ../../obj/process.o
/root/xml-xalan/c/src/xalanc/TestXSLT/process.cpp
/root/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*&)':
/root/xml-xalan/c/src/xalanc/TestXSLT/process.cpp:631: error: no
matching
    function for call to `xalanc_1_9::FormatterToText::FormatterToText(
    xercesc_2_6::MemoryManager&, xalanc_1_9::PrintWriter&, const
    xalanc_1_9::XalanDOMString&)'
/root/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp:224: error:
candidates
    are: xalanc_1_9::FormatterToText::FormatterToText(const
    xalanc_1_9::FormatterToText&)
/root/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp:82: error:
 
xalanc_1_9::FormatterToText::FormatterToText(xalanc_1_9::Writer&,
    const xalanc_1_9::XalanDOMString&, bool, bool,
    xalanc_1_9::MemoryManagerType&)
/root/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp:67: error:
 
xalanc_1_9::FormatterToText::FormatterToText(xalanc_1_9::Writer&,
    bool, bool, xalanc_1_9::MemoryManagerType&)
/root/xml-xalan/c/src/xalanc/XMLSupport/FormatterToText.hpp:54: error:

 
xalanc_1_9::FormatterToText::FormatterToText(xalanc_1_9::MemoryManagerTy
pe&)
/root/xml-xalan/c/src/xalanc/TestXSLT/process.cpp:666: error: 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&)'
/root/xml-xalan/c/src/xalanc/XMLSupport/FormatterToHTML.hpp:51: error:
candidates
    are: xalanc_1_9::FormatterToHTML::FormatterToHTML(const
    xalanc_1_9::FormatterToHTML&)
/root/xml-xalan/c/src/xalanc/XMLSupport/FormatterToHTML.hpp:85: error:
 
xalanc_1_9::FormatterToHTML::FormatterToHTML(xalanc_1_9::Writer&,
    const xalanc_1_9::XalanDOMString&, const
xalanc_1_9::XalanDOMString&, const
    xalanc_1_9::XalanDOMString&, const xalanc_1_9::XalanDOMString&,
bool, int,
    bool, bool, xalanc_1_9::MemoryManagerType&)
make[1]: *** [../../obj/process.o] Error 1
make[1]: Leaving directory `/root/xml-xalan/c/src/xalanc'
make: *** [all] Error 2

Reply via email to