On Mon, Nov 16, 2009 at 4:40 PM, GALVAN, Jean-Pierre < jean-pierre.gal...@sage.com> wrote:
> Hello. > > As I am registered now in the Xalan-c mailing list, I can now send this > message so as to get help… > > > > I’m try to build sources files of Xalan-c with Xerces 3-0-1. > You will need to use the head of the Subversion repository. > The build of Xerces 3-0-1 was OK > > I ran ./runConfigure for Xalan and it was OK > > After I tried to launch make and I have un error when accessing > XalanMsgLib.cpp > > But the build stopped with error. > > * * > > *Heres my machine :* > > [r...@aylinux64 c]# uname -a > > Linux aylinux64 2.6.18-92.el5 #1 SMP Fri May 23 23:40:43 EDT 2008 x86_64 > x86_64 x86_64 GNU/Linux > > > > *Here’s the output** :* > > [r...@aylinux64 c]# make > > make -C src/xalanc all > > make[1]: Entering directory > `/home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc' > > Preparing the directory structure for a build ... > > mkdir -p ../../obj > > mkdir -p ../../lib > > mkdir -p ../../bin > > make -C Utils prepare > > make[2]: Entering directory > `/home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc/Utils' > > mkdir -p ../../../nls > > mkdir -p ../../../nls/include > > make[2]: Leaving directory > `/home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc/Utils' > > make -C Utils locale > > make[2]: Entering directory > `/home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc/Utils' > > make -C MsgCreator > > make[3]: Entering directory > `/home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc/Utils/MsgCreator' > > g++ -O2 -DNDEBUG -DXML_BITSTOBUILD_64 -fno-elide-constructors -Wall > -fPIC -DLINUX -D_REENTRANT -DXALAN_INMEM_MSG_LOADER -c > -I/home/jpgalvan/TEST/xalan/xml-xalan/c/src > -I/home/jpgalvan/TEST/xalan/xml-xalan/c/include -I../../../../nls/include > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/src/ > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/include/xercesc > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/include/ -o > ../../../../obj/MsgFileOutputStream.o > /home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc/Utils/MsgCreator/MsgFileOutputStream.cpp > > g++ -O2 -DNDEBUG -DXML_BITSTOBUILD_64 -fno-elide-constructors -Wall > -fPIC -DLINUX -D_REENTRANT -DXALAN_INMEM_MSG_LOADER -c > -I/home/jpgalvan/TEST/xalan/xml-xalan/c/src > -I/home/jpgalvan/TEST/xalan/xml-xalan/c/include -I../../../../nls/include > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/src/ > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/include/xercesc > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/include/ -o > ../../../../obj/ICUResHandler.o > /home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc/Utils/MsgCreator/ICUResHandler.cpp > > g++ -O2 -DNDEBUG -DXML_BITSTOBUILD_64 -fno-elide-constructors -Wall > -fPIC -DLINUX -D_REENTRANT -DXALAN_INMEM_MSG_LOADER -c > -I/home/jpgalvan/TEST/xalan/xml-xalan/c/src > -I/home/jpgalvan/TEST/xalan/xml-xalan/c/include -I../../../../nls/include > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/src/ > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/include/xercesc > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/include/ -o > ../../../../obj/InMemHandler.o > /home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc/Utils/MsgCreator/InMemHandler.cpp > > g++ -O2 -DNDEBUG -DXML_BITSTOBUILD_64 -fno-elide-constructors -Wall > -fPIC -DLINUX -D_REENTRANT -DXALAN_INMEM_MSG_LOADER -c > -I/home/jpgalvan/TEST/xalan/xml-xalan/c/src > -I/home/jpgalvan/TEST/xalan/xml-xalan/c/include -I../../../../nls/include > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/src/ > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/include/xercesc > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/include/ -o > ../../../../obj/MsgCreator.o > /home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc/Utils/MsgCreator/MsgCreator.cpp > > g++ -O2 -DNDEBUG -DXML_BITSTOBUILD_64 -fno-elide-constructors -Wall > -fPIC -DLINUX -D_REENTRANT -DXALAN_INMEM_MSG_LOADER -c > -I/home/jpgalvan/TEST/xalan/xml-xalan/c/src > -I/home/jpgalvan/TEST/xalan/xml-xalan/c/include -I../../../../nls/include > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/src/ > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/include/xercesc > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/include/ -o > ../../../../obj/NLSHandler.o > /home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc/Utils/MsgCreator/NLSHandler.cpp > > g++ -O2 -DNDEBUG -DXML_BITSTOBUILD_64 -fno-elide-constructors -Wall > -fPIC -DLINUX -D_REENTRANT -DXALAN_INMEM_MSG_LOADER -c > -I/home/jpgalvan/TEST/xalan/xml-xalan/c/src > -I/home/jpgalvan/TEST/xalan/xml-xalan/c/include -I../../../../nls/include > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/src/ > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/include/xercesc > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/include/ -o > ../../../../obj/SAX2Handler.o > /home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc/Utils/MsgCreator/SAX2Handler.cpp > > g++ -DLINUX -fPIC -DXALAN_INMEM_MSG_LOADER \ > > -L/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/lib -lxerces-c > ../../../../obj/MsgFileOutputStream.o ../../../../obj/ICUResHandler.o > ../../../../obj/InMemHandler.o ../../../../obj/MsgCreator.o > ../../../../obj/NLSHandler.o ../../../../obj/SAX2Handler.o -o > ../../../../bin/MsgCreator > > make[3]: Leaving directory > `/home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc/Utils/MsgCreator' > > ../../../bin/MsgCreator > /home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc/NLS/en_US/XalanMsg_en_US.xlf > -TYPE inmem -LOCALE en_US > > make -C XalanMsgLib > > make[3]: Entering directory > `/home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc/Utils/XalanMsgLib' > > g++ -O2 -DNDEBUG -DXML_BITSTOBUILD_64 -fno-elide-constructors -Wall > -fPIC -DLINUX -D_REENTRANT -DXALAN_INMEM_MSG_LOADER -c > -I/home/jpgalvan/TEST/xalan/xml-xalan/c/src > -I/home/jpgalvan/TEST/xalan/xml-xalan/c/include -I../../../../nls/include > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/src/ > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/include/xercesc > -I/home/jpgalvan/TEST/xerces/xerces-c-3.0.1/include/ -o > ../../../../obj/XalanMsgLib.o > /home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc/Utils/XalanMsgLib/XalanMsgLib.cpp > > /home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc/Utils/XalanMsgLib/XalanMsgLib.cpp:25: > error: expected â,â or â;â before ânamespaceâ > > /home/jpgalvan/TEST/xalan/xml-xalan/c/src/xalanc/Utils/XalanMsgLib/XalanMsgLib.cpp:74: > error: expected `}' at end of input > > ../../../../nls/include/LocalMsgData.hpp:34: warning: > âxalanc_1_10::msgArrayâ defined but not used > Xerces-C 3.x made some API changes that were not backwards-compatible. Although you can attempt to build Xalan-C, as you see, it is not successful. You can either use Xerces-C 2.6 with Xalan-C 1.10, or use the head of the subversion repository. Since you're using Linux, it's trivial for you to install Subversion and check out the correct sources: 1. Make sure Subversion is installed, using the appropriate package manager for your distribution. 2. Check out the head of the repository: svn co http://svn.apache.org/repos/asf/xalan/c/trunk/home/dbertoni/xml-xalan/c 3. Set the XALANCROOT environment variable appropriately: export XALANCROOT=/home/dbertoni/xml-xalan/c 4. cd into the new source tree, configure and build: cd /home/dbertoni/xml-xalan/c ./runConfigure -p linux -c gcc -x g++ make all samples tests 5. You can run the conformance tests to verify your build by checking out the test directory: svn co http://svn.apache.org/repos/asf/xalan/test/trunk<http://svn.apache.org/repos/asf/xalan/test/tests>/home/dbertoni/xml-xalan/test export LD_LIBRARY_PATH=$XERCESCROOT/lib:$XALANCROOT/lib:$LD_LIBRARY_PATH cd /home/dbertoni/xml-xalan/c/bin ./Conf ../../test/tests/conf Dave