Hi Dave
ld: Can't find library or mismatched ABI for -lgcc_s_hpux32
-lgcc_s_hpux32 library refers to the hp-ux 32 bit standard c library of
gcc. It's not a good idea to skip this library.
I have built gcc for sparc-solaris-2.8 and there we get a similar name
libgcc_s_sparcv9.so for 64 bit library.
The 32 bit has the name name viz. libgcc_s.so .
I expect the same pattern to be repeated for any other platform.
Looks like this library path is not present in SHLIB_PATH, else under
another name like libgcc_s.sl or libgcc_s.so .
In your case, This should be built in
/usr/local/lib/gcc-lib/ia64-hp-hpux11.22/3.3.2/hpux32.
Building on HP-11 IA64 with aCC A.06.00
I had sucesfully built Xerces2.3.0 on IA64 using aCC6.0.
64:
runConfigure -php-11v2 -ccc -xaCC -b64
Inside runConfigure set the CXXFLAGS etc. for this platform viz. hp-11v2.
Set:
bitstobuildLink=" +DD64 "
netaccessorLibs="-lnsl"
CFLAGS="$CFLAGS +DSitanium2 " -- Tunes up the performance of
Xerces for the Itanium2 processor.
CXXFLAGS="$CXXFLAGS +DSitanium2 " --- Use +DSitanium if you have
the Itanium processor.
Hope that helped!
warm regards
Saurabh
[EMAIL PROTECTED]
06/16/2005 12:39 PM
Please respond to
[email protected]
To
[email protected]
cc
Subject
Some HP-UX results for the 3.0 branch
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]