Building xerces 2.8.0

Guest Author

Some notes on the building xerces 2.8.0 on Solaris. You can find the build instructions on the xerces site. But there's some changes that are needed to make it work with recent Studio compilers.

  • Remove -ptr from Makefile.incl. This is a deprecated option and should be removed from the Makefile.
  • Add -library=stlport4 into Makefile.incl. Need this flag on the compile and link lines in order that stlport4 is used instead of the default libCstd. Most recent C++ codes require a more up to date version of the Standard Library than the default provides.
  • -xarch=sparcv9 with -m64 in runConfigure. This stops the compiler from emitting a warning message about deprecated options.

Build with:

$ ./runConfigure -p solaris -c cc -x CC -r pthread -b 64
$ ./configure
$ ./gmake

Hopefully this gives you sufficient information to build the 2.8.0 version of the library.

Update: On 19th March 2015 they removed the 2.8 branch of xerces. So the instructions are rather redundant now :)

Join the discussion

Comments ( 1 )
  • opk Tuesday, March 3, 2015

    2.8.0 is fairly ancient. I've been using Xerces (currently 3.1.1 but previously 2.8) in production on Solaris for years. This has been 32-bit and with the default STL. Checking my notes, I used configure options of --enable-transcoder-iconv CC=cc CXX=CC LIBS="-lm" and manually relinked it afterwards with -Bdirect. I've also built Xalan against it but that needs patches.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.