...
- The source can be found here /nfs/farm/g/glast/u05/extlib/xerces/xerces-c-src_2_7_0-gl1-mac.tar.gz
- Copy the source to a temporary directory
- Run the following
Code Block tar -zxvf xerces-c-src_2_7_0-gl1-mac.tar.gz setenv XERCESCROOT <path-to-xerces-c-src_2_7_0-gl1-mac>/xerces-c-src_2_7_0-gl1-mac cd xerces-c-src_2_7_0-gl1-mac cd src/xercesc ./runConfigure -p macosx -n native -t native -P <install-path>
Why the patch?
The version of xerces that was being used assumes a PPC mac only so it builds as big endian (breaking xml parsing on intel macs). The newer (3.x) versions of xerces check at runtime but it is easy to check at build time in the version we use.
...
No need to fix this file because xerces-c-src_2_7_0-gl1-mac.tar.gz already contains the patch.
Obtaining the original MacOSDefs.hpp (without the patch)
If for any reason you need the original file, then it's located in
<path-to-xerces-c-src_2_7_0-gl1-mac>/xerces-c-src_2_7_0-gl1-mac/MacOSDefs.hpp-original
Building xerces-2.7.0 against the original MacOSDefs.hpp
If you want to build this xerces-2.7.0-gl1 against the original MacOSDefs.hpp file there are 2 methods to do it
...