Hello,

Compiling Xalan had problems following:
http://xml.apache.org/xalan-c/readme.html#unix.  I've included the commands
I used (in proper order), environment variables, and what I did to solve the
problems.  The Xerces compile went rather smoothly -- I compiled it before
Xalan.

Sincerely,
Dave Jarvis
--
$ set | grep CROOT
XALANCROOT=/usr/local/src/xml-xalan
XERCESCROOT=/usr/local/src/xerces-c-src2_0_0

$ pwd
/usr/local/src/xml-xalan/c/src

$ uname -a
Linux xerces 2.4.9-34 #1 Sat Jun 1 06:25:16 EDT 2002 i686 unknown

$ ./runConfigure -p linux
Generating makefiles with the following options ...
[ ... snip ... ]
creating Makefile

If the result of the above commands look OK to you, go to the directory
/usr/local/src/xml-xalan/src and type "make" to make the XALAN-C system.

$ make clean
rm -rf /usr/local/src/xml-xalan/obj/*
[ ... snip ... ]
rm -f /usr/local/src/xml-xalan/bin/XPathWrapper

$ make
Preparing the directory structure for a build ...
mkdir -p /usr/local/src/xml-xalan/obj
mkdir -p /usr/local/src/xml-xalan/lib
mkdir -p /usr/local/src/xml-xalan/bin
c++ -O -DNDEBUG   -fpic -Wall -instances=static -DLINUX -D_REENTRANT  -c -I.
 -I/
usr/local/src/xerces-c-src2_0_0/src/ -I/usr/local/src/xerces-c-src2_0_0/incl
ude/
xercesc -I/usr/local/src/xerces-c-src2_0_0/include/  -o
/usr/local/src/xml-xalan
/obj/XalanAttr.o XalanDOM/XalanAttr.cpp
cpp0: Invalid option -instances=static
make: *** [/usr/local/src/xml-xalan/obj/XalanAttr.o] Error 1

************************************************************
*
* Here I removed "-instances=static" from the Makefile, then
* compiled once more.
*
************************************************************

$ make
[ ... snip ... ]
c++ -O -DNDEBUG   -fpic -Wall -DLINUX -D_REENTRANT  -c -I. -I/usr/local/src/
xerc
es-c-src2_0_0/src/ -I/usr/local/src/xerces-c-src2_0_0/include/xercesc -I/usr
/loc
al/src/xerces-c-src2_0_0/include/  -o
/usr/local/src/xml-xalan/obj/XalanSourceTr
eeDOMSupport.o XalanSourceTree/XalanSourceTreeDOMSupport.cpp
In file included from XalanSourceTree/XalanSourceTreeParserLiaison.hpp:72,
                 from XalanSourceTree/XalanSourceTreeDOMSupport.cpp:77:
XercesParserLiaison/XercesParserLiaison.hpp:74:32: dom/DOM_Document.hpp: No
such
 file or directory
make: *** [/usr/local/src/xml-xalan/obj/XalanSourceTreeDOMSupport.o] Error 1

************************************************************
*
* Here I changed the offending file to include
* <dom/deprecated/DOM_Document.hpp> instead of
* <dom/DOM_Document.hpp> and compiled once more.
*
************************************************************
$ make
[ ... snip ... ]
c++ -O -DNDEBUG   -fpic -Wall -DLINUX -D_REENTRANT  -c -I. -I/usr/local/src/
xerces-c-src2_0_0/src/
-I/usr/local/src/xerces-c-src2_0_0/include/xercesc -I/usr/local/src/xerces-c
-src2_0_0/include/
-o /usr/local/src/xml-xalan/obj/CountersTable.o XSLT/CountersTable.cpp
In file included from XSLT/ElemNumber.hpp:68,
                 from XSLT/CountersTable.cpp:65:
XSLT/ElemTemplateElement.hpp:835: conflicting return type specified for
`virtual int ElemTemplateElement::LocatorProxy::getLineNumber () const'
/usr/local/src/xerces-c-src2_00/include/xercesc/sax/Locator.hpp:168:
   overriding `virtual XMLSSize_t Locator::getLineNumber () const'
XSLT/ElemTemplateElement.hpp:838: conflicting return type specified for
`virtual int ElemTemplateElement::LocatorProxy::getColumnNumber () const'
/usr/local/src/xerces-c-src2_0_0/include/xercesc/sax/Locator.hpp:178:
overriding `virtual XMLSSize_t
Locator::getColumnNumber () const'
make: *** [/usr/local/src/xml-xalan/obj/CountersTable.o] Error 1

************************************************************
*
* XSLT/ElemTemplateElement.hpp:835 returns XMLSSize_t
* XSLT/ElemTemplateElement.hpp:838 returns XMLSSize_t
* ... and compiled once more.
*
************************************************************
$ make
c++ -O -DNDEBUG   -fpic -Wall -DLINUX -D_REENTRANT  -c -I. -I/usr/local/src/
xerc
es-c-src2_0_0/src/ -I/usr/local/src/xerces-c-src2_0_0/include/xercesc -I/usr
/loc
al/src/xerces-c-src2_0_0/include/  -o
/usr/local/src/xml-xalan/obj/ElemTemplateE
lement.o XSLT/ElemTemplateElement.cpp
XSLT/ElemTemplateElement.cpp:1463: new declaration `int
ElemTemplateElement::LocatorProxy::getLineNumber () const'
XSLT/ElemTemplateElement.hpp:835: ambiguates old declaration
`XMLSSize_t ElemTemplateElement::LocatorProxy::getLineNumber () const'
XSLT/ElemTemplateElement.cpp:1471: new declaration `int
ElemTemplateElement::LocatorProxy::getColumnNumber () const'
XSLT/ElemTemplateElement.hpp:838: ambiguates old declaration
`XMLSSize_t ElemTemplateElement::LocatorProxy::getColumnNumber ()
const'
make: *** [/usr/local/src/xml-xalan/obj/ElemTemplateElement.o] Error 1

************************************************************
*
* Gave Up Compiling; going to use Java
*
************************************************************

Reply via email to