Hi James,

I have some HP-UX results, and I think we're pretty close.

Building on HP-11 IA64 with GCC 3.3.2, I get the following when the first 
sample links:

g++ -g -O2 -D_REENTRANT -pthread -o .libs/CreateDOMDocument 
src/CreateDOMDocument/CreateDOMDocument.o  ../obj/.libs/libxerces.so 
-L/opt/bintmp/gcc-3.3.2/gcc/ia64-hp-hpux11.22/hpux32/libstdc++-v3/src 
-L/opt/bintmp/gcc-3.3.2/gcc/ia64-hp-hpux11.22/hpux32/libstdc++-v3/src/.libs 
-L/opt/bintmp/gcc-3.3.2/gcc/gcc/hpux32 -L/opt/bintmp/gcc-3.3.2/gcc/gcc 
-L/usr/local/ia64-hp-hpux11.22/bin -L/usr/local/lib/hpux32 
-L/usr/local/lib -L/usr/local/lib/gcc-lib/ia64-hp-hpux11.22/3.3.2/hpux32 
-L/usr/ccs/lib/hpux32 
-L/usr/local/lib/gcc-lib/ia64-hp-hpux11.22/3.3.2/../../../hpux32 
-L/lib/hpux32 -L/usr/lib/hpux32 /usr/local/lib/hpux32/libstdc++.so 
-lgcc_s_hpux32 -lnsl -L/home/xalan/apache.svn/temp/lib
ld: Can't find library or mismatched ABI for -lgcc_s_hpux32
Fatal error.

I'm not sure where the offending library is located, but if I edit 
libxerces.la, and remove "-lgcc_s_hpux32" from the dependency_libs line, 
the samples link correctly.  This library appears in libstdc++.la in the 
dependency_libs line, so maybe this is a error with the configuration of 
GCC on this particular machine.

Building on HP-11 IA64 with aCC A.06.00, I get the following interesting 
output:

source='xercesc/dom/impl/DOMChildNode.cpp' 
object='xercesc/dom/impl/DOMChildNode.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../config/depcomp \
 /bin/sh ../libtool --quiet --tag=CXX --mode=compile aCC -DHAVE_CONFIG_H 
-DXERCES_BUILDING_LIBRARY -I. -I. -I.. -I../src/xercesc/util     +W930 
-D_REENTRANT -mthreads -c -o xercesc/dom/impl/DOMChildNode.lo 
xercesc/dom/impl/DOMChildNode.cpp
aCC: warning 901: unknown option: `-hreads': use +help for online 
documentation. 

So it looks like configure thinks -mthreads is the correct option for 
threaded code.  The correct option is just "-mt".  Here is the relevant 
section of config.log:

configure:23694: checking whether pthreads work with -mthreads
configure:23780: cc -o conftest -g -mthreads   conftest.c  -lnsl  >&5
cc: warning 901: unknown option: `-hreads': use +help for online 
documentation.
"conftest.c", line 73: warning #2549-D: variable "th" is used before its 
value is set
  pthread_t th; pthread_join(th, 0);

Building on HP-11 PA-RISC works just fine.

Also, I have no idea how to enable a 64-bit build explicitly.  Is there a 
standard configure option, or does that require some CXXFLAGS magic?

Thanks!

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to