I'm using Xerces-C++ 1.0.1 on Solaris 2.6 with gcc, g++.

It appears that if I don't turn "-d" debug flag on, there are some
UNDEF symbols in the .so file which cause errors linking the sample
programs.

Below is a list of output I got,

------------ 8< --------------
% ./runConfigure -c gcc -x g++ -p solaris
Generating makefiles with the following options ...
Platform: solaris
C Compiler: gcc
C++ Compiler: g++
Debug is OFF

creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -w -O  -lc) works... yes
checking whether the C compiler (gcc -w -O  -lc) is a cross-compiler...
no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... g++
checking whether the C++ compiler (g++ -w -O  -lc) works... yes
checking whether the C++ compiler (g++ -w -O  -lc) is a
cross-compiler... no
checking whether we are using GNU C++... yes
checking whether g++ accepts -g... yes
checking for a BSD compatible install... ./install-sh -c
checking for autoconf... true
checking for floor in -lm... yes
checking for pthread_create in -lpthread... yes
checking how to run the C preprocessor... gcc -E
checking for inttypes.h... yes
checking host system type... sparc-sun-solaris2.6
updating cache ./config.cache
creating ./config.status
creating Makefile
creating SAXCount/Makefile
creating DOMCount/Makefile
creating SAXPrint/Makefile
creating DOMPrint/Makefile
creating MemParse/Makefile
creating Redirect/Makefile
creating PParse/Makefile
creating StdInParse/Makefile
creating EnumVal/Makefile

If the result of the above commands look OK to you, go to the directory
/home/siuc/code/xml/Xerces-C-src_1_0_1/src and type "make" to make the
XERCES-C system.

% cd DOMPrint/
% make 
mkdir -p /home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint
g++ -c -DSOLARIS -D_REENTRANT -fpic -instances=static -c -w -O  -I.
-I/home/siuc/code/xml/Xerces-C-src_1_0_1/include -o
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
/home/siuc/code/xml/Xerces-C-src_1_0_1/samples/DOMPrint/DOMPrint.cpp
g++ -c -DSOLARIS -D_REENTRANT -fpic -instances=static -c -w -O  -I.
-I/home/siuc/code/xml/Xerces-C-src_1_0_1/include -o
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMTreeErrorReporter.o
/home/siuc/code/xml/Xerces-C-src_1_0_1/samples/DOMPrint/DOMTreeErrorReporter.cpp
g++ -DSOLARIS -fpic -L/usr/lib -L/usr/local/lib
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMTreeErrorReporter.o
-o /home/siuc/code/xml/Xerces-C-src_1_0_1/bin/DOMPrint
-L/home/siuc/code/xml/Xerces-C-src_1_0_1/lib -lxerces-c1_0 -lc 
Undefined                       first referenced
 symbol                             in file
setAttribute__11DOM_ElementRC9DOMStringT1
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
getFirstChild__C8DOM_Node          
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
__as__9DOMStringRC9DOMString       
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
createTextNode__12DOM_DocumentRC9DOMString
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
setAttributeNS__11DOM_ElementRC9DOMStringN21
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
getNodeValue__C8DOM_Node           
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
_._8DOM_Text                       
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
createElementNS__12DOM_DocumentRC9DOMStringT1
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so

...

ld: fatal: Symbol referencing errors. No output written to
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/DOMPrint
make: *** [/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/DOMPrint] Error 1

-------------- 8< ----------------

If I rerun runConfigure with "-d", then rebuild, the above errors
dissppear.

Any idea?
Thanks


James

Reply via email to