Hi,
 
I tried to build a xerces-2.7.0 on HPUX-11, with a g++ (4.x??) .. and I didn't 
manage to get a working shared lib (multi unresolved externals, maybe a problem 
with the linker), but we got a static lib!!!
 
Apply the attached mini-patches to a fresh src-tree and try:
 
1.)Build the lib 

cd  xerces-c-src_2_7_0
export XERCESCROOT=`pwd`
cd $XERCESCROOT/src/xercesc
./runConfigure -php-11 -cgcc -xg++ 
gmake clean
gmake
## in $XERCESCROOT/lib there should be the libxerces-c.a 
ls -l $XERCESCROOT/lib/libxerces-c.a
 
 
2.) Test a little 
cd  xerces-c-src_2_7_0
export XERCESCROOT=`pwd`
cd $XERCESCROOT/samples
./runConfigure -php-11 -cgcc -xg++ 
cd SAXPrint
gmake -B
## should exist now: $XERCESCROOT/bin/SAXPrint 
ls -l $XERCESCROOT/bin/SAXPrint
ldd $XERCESCROOT/bin/SAXPrint
$XERCESCROOT/bin/SAXPrint $XERCESCROOT/samples/data/personal.xml
## 
cd $XERCESCROOT/samples
cd SAXCount
gmake -B
## should exist now: $XERCESCROOT/bin/SAXCount 
ls -l $XERCESCROOT/bin/SAXCount
ldd $XERCESCROOT/bin/SAXCount
$XERCESCROOT/bin/SAXCount $XERCESCROOT/samples/data/personal.xml
## result should be like:
## ..personal.xml: 1 ms (37 elems, 12 attrs, 134 spaces, 134 chars)

 
ciao
martin
 

Reply via email to