Hi, after some investigations I was finaly able to successfully compile Xalan 1.2 with sun C++ 5.1. I append the describtion I have written about how to do it. Hopefully it's usefull to somebody. I would be happy if the patch (three simple typecasts, which should not change anything) goes into the next official Xalan release.
Gerald =item * Get the sources for XERCES and XALAN =item * Untar the files Use GNU tar, solaris tar doesn't work! GNU tar can be found at ftp://ftp.mcc.ac.uk/pub/gnu/tar/tar-1.13.tar.gz =item * Set the root directories export XERCESCROOT=/path/to/xerces-c-src1_5_1 export XALANCROOT=/path/to/xml-xalan/c =item * Compile XERCES cd xerces-c-src1_5_1/src sh runConfigure -p solaris -c cc -x CC make =item * Patch XALAN There must be one typecast inserted in the following three files: "c/src/XSLT/ExtensionFunctionHandler.cpp", line 156 156c156 < return m_functions.find(function) != m_functions.end(); --- > return StringSetType::const_iterator(m_functions.find(function)) != m_functions.end(); "c/src/XSLT/ExtensionNSHandler.cpp", line 200 200c200 < return (m_elements.find(element) != m_elements.end()); --- > return (ExtensionSetType::const_iterator(m_elements.find(element)) != m_elements.end()); "c/src/XSLT/NamespacesHandler.cpp", line 366 366c366 < || m_extensionNamespaceURIs.find(theURI) != m_extensionNamespaceURIs.end() --- > || ExtensionNamespaceURISetType::const_iterator(m_extensionNamespaceURIs.find(t heURI)) != m_extensionNamespaceURIs.end() =item * Compile XALAN cd xml-xalan/c/src sh runConfigure -p solaris -c cc -x CC -z "-D__GNUC__" make B<NOTE:> I found that only the above parameters to configure work. Don't worry that __GNUC__ is defined. It works with sun C++ 5.1. When using sun C++ 5.1 you don't need the STLPort template library. ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131 WWW: http://www.ecos.de Fax: +49 6133 925152 -------------------------------------------------------------
