Greenplum patched xerces-c in order to compile GPORCA
mkdir build
cd build
../configure --prefix=/usr/local
make
make install
mkdir build
cd build
env CFLAGS="-m32" CXXFLAGS="-m32" ../configure --prefix=/usr/local
make
make install
mkdir build
cd build
env CFLAGS="-g" CXXFLAGS="-g" ../configure --prefix=/usr/local
make
make install