Fetch a copy of the Xalan C 1.9 port for freebsd and then get the patch file 
from therein. (And these patch files are attached here. I don't remember 
anything specifically freebsd-ish about them...)

I believe your error has nothing to do with Solaris and perhaps arises due to 
a difference in leniency in compiler versions. (I ran into the same problem 
on Linux and FreeBSD - and haven't gotten around yet to our Solaris build).

On Tuesday 31 May 2005 01:41 pm, Pham Tran Quoc Viet wrote:
> Hi Developers,
> I am trying to build xalan on solaris 10 sparc and got this access
> violation error:
>
> class "class XALAN_XPATH_EXPORT ElementPrefixResolverProxy : public
> PrefixResolver" declares member function
> ElementPrefixResolverProxy(const ElementPrefixResolverProxy&)
> as private on line 89 as followed:
>
>         87      private:
>         88          //notimplemented
>         89          ElementPrefixResolverProxy(const
> ElementPrefixResolverProxy&);
>
> But this function is called in file: XPathEvaluator.cpp at line 278 as
> followed:
>    274      return evaluate(
>    275              domSupport,
>    276              contextNode,
>    277              xpathString,
>    278              ElementPrefixResolverProxy(namespaceNode,
> theEnvSupportDefault, domSupport, m_memoryManager),
>    279              theEnvSupportDefault);
>    280
>
> This bug was found on fedora and filed before by somebody else . It's
> been declared fixed in the CVS code
> (http://issues.apache.org/jira/browse/XALANC-446). I downloaded the CVS
>
> code and try to compile again. Other errors sneaked up. Here it is:
> >>>ld: fatal: Symbol referencing errors. No output written
> >>>to ../../../../bin/MsgCreator
> >>>collect2: ld returned 1 exit status
> >>>gmake[3]: *** [../../../../bin/MsgCreator] Error 1
> >>>gmake[3]: Leaving directory `/export/home/apache/xalan/xalan/xml-
> >>>xalan/c/src/xalanc/Utils/MsgCreator'
> >>>gmake[2]: *** [../../../bin/MsgCreator] Error 2
> >>>gmake[2]: Leaving directory `/export/home/apache/xalan/xalan/xml-
> >>>xalan/c/src/xalanc/Utils'
> >>>gmake[1]: *** [locale] Error 2
> >>>gmake[1]: Leaving directory `/export/home/apache/xalan/xalan/xml-
> >>>xalan/c/src/xalanc'
> >>>gmake: *** [all] Error 2
>
> Does any one volunteer to produce a stable build for Solaris 10? If yes,
> I can reserve super, super fast SPARC and x86 and x64 machines for you
> to build. Solaris 10, gcc, and even sun studio 10 are readily available
> for you to use. Thank you very much.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--- ./src/xalanc/ICUBridge/ICUFormatNumberFunctor.hpp.orig	Sat Mar  5 17:46:13 2005
+++ ./src/xalanc/ICUBridge/ICUFormatNumberFunctor.hpp	Sat Mar  5 17:46:23 2005
@@ -120,6 +120,8 @@ struct DecimalFormatCacheStruct
 private:
 
     DecimalFormatCacheStruct();
+
+public:
     DecimalFormatCacheStruct(const DecimalFormatCacheStruct& other);
     
 };
--- ./src/xalanc/TestXSLT/process.cpp.orig	Sat Dec 25 10:53:35 2004
+++ ./src/xalanc/TestXSLT/process.cpp	Sat Dec 25 12:05:48 2004
@@ -628,7 +628,7 @@
 	}
 	else if(FormatterListener::OUTPUT_METHOD_TEXT == outputType)
 	{
-		formatter = new FormatterToText( theManager, resultWriter, mimeEncoding);
+		formatter = new FormatterToText( resultWriter, mimeEncoding, true, true, theManager);
 	}
 	else if(FormatterListener::OUTPUT_METHOD_HTML == outputType)
 	{
@@ -656,14 +656,15 @@
 
 		FormatterToHTML* const	fToHTML =
 				new FormatterToHTML(
-                        theManager,
 						resultWriter,
 						mimeEncoding,
 						mediatype,
 						doctypeSystem,
 						doctypePublic,
 						outputIndent,
-						indentAmount);
+						indentAmount,
+						true, false,
+						theManager);
 
 		fToHTML->setPrefixResolver(&prefixResolver);
 
--- ./src/xalanc/XMLSupport/FormatterToText.hpp.orig	Sat Dec 25 10:50:53 2004
+++ ./src/xalanc/XMLSupport/FormatterToText.hpp	Sat Dec 25 10:50:57 2004
@@ -221,7 +221,9 @@
 private:
 
 	// These are not implemented.
+#if 0
 	FormatterToText(const FormatterToText&);
+#endif
 
 	FormatterToText&
 	operator=(const FormatterToText&);
--- ./src/xalanc/XPath/ElementPrefixResolverProxy.hpp.orig	Sat Dec 25 09:51:20 2004
+++ ./src/xalanc/XPath/ElementPrefixResolverProxy.hpp	Sat Dec 25 09:51:28 2004
@@ -86,7 +86,9 @@
 
 private:
     //notimplemented
+#if 0
     ElementPrefixResolverProxy(const ElementPrefixResolverProxy&);
+#endif
 
 	const XalanElement* const		m_namespaceContext;
 
--- ./src/xalanc/XPath/NameSpace.hpp.orig	Sat Dec 25 10:17:01 2004
+++ ./src/xalanc/XPath/NameSpace.hpp	Sat Dec 25 10:17:15 2004
@@ -191,7 +191,9 @@
 	}	
 
 private:
+#if 0
 	NameSpace(const NameSpace&);
+#endif
 
 	XalanDOMString	m_prefix;
 
--- ./src/xalanc/XPath/XalanQNameByValue.hpp.orig	Sat Dec 25 10:30:57 2004
+++ ./src/xalanc/XPath/XalanQNameByValue.hpp	Sat Dec 25 10:31:09 2004
@@ -290,7 +290,9 @@
 
 private:
     // not implemented
+#if 0
     XalanQNameByValue(const XalanQNameByValue&	theSource);
+#endif
 	void
 	initialize(
 			const XalanDOMChar*			qname,
--- ./src/xalanc/XSLT/FunctionSystemProperty.hpp.orig	Sat Dec 25 10:29:12 2004
+++ ./src/xalanc/XSLT/FunctionSystemProperty.hpp	Sat Dec 25 10:30:13 2004
@@ -73,7 +73,9 @@
 
 private:
 
+#if 0
 	FunctionSystemProperty(const FunctionSystemProperty&);
+#endif
 
 	// Not implemented...
 	FunctionSystemProperty&
--- ./src/xalanc/XSLT/TopLevelArg.hpp.orig	Sat Dec 25 10:26:41 2004
+++ ./src/xalanc/XSLT/TopLevelArg.hpp	Sat Dec 25 10:27:01 2004
@@ -147,7 +147,9 @@
 
 private:
     // not implemented
+#if 0
     TopLevelArg(const TopLevelArg&	theSource);
+#endif
 
 	XalanQNameByValue	m_qname;
 
--- src/xalanc/Makefile.in.orig	Mon Mar  7 17:31:00 2005
+++ src/xalanc/Makefile.in	Mon Mar  7 17:31:57 2005
@@ -259,22 +259,10 @@ endif ## OS390
 	$(MKINSTALLDIRS) $(DESTDIR)/$(includedir)/xalanc
 	for hdir in $(ALL_HEADERS_DIRS); do \
 	  $(MKINSTALLDIRS) $(DESTDIR)/$(includedir)/xalanc/$$hdir; \
-	  cp $(XALANCROOT)/src/xalanc/$$hdir/*.h* \
+	  $(INSTALL_DATA) $(XALANCROOT)/src/xalanc/$$hdir/*.h* \
              $(DESTDIR)/$(includedir)/xalanc/$$hdir \
 	     2> /dev/null; \
 	done
-ifdef XALAN_USE_ICU
-	$(INSTALL_PROGRAM) $(ICUROOT)/lib/$(ICU_LIBI18N_LIB) \
-                           $(DESTDIR)/$(libdir)
-  ifneq ($PLATFORM), OS390)
-	rm -f $(DESTIDR)/$(libdir)/$(ICU_LIBI18N_LINK_NAME) && \
-		$(LN) -fs $(ICU_LIBI18N_LIB) \
-			$(DESTDIR)/$(libdir)/$(ICU_LIBI18N_LINK_NAME)
-	rm -f $(DESTDIR)/$(libdir)/$(ICU_LIBI18N_SO_NAME) && \
-		$(LN) -fs $(ICU_LIBI18N_LIB) \
-			$(DESTDIR)/$(libdir)/$(ICU_LIBI18N_SO_NAME)
-  endif ## OS390
-endif
 
 clean:	prepare doClean
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to