Arundhati,
Thanks for the response. Attached is the error messages.
James
-----Original Message-----
From: Arundhati Bhowmick [mailto:[EMAIL PROTECTED]
Sent: Monday, January 31, 2000 1:01 PM
To: [EMAIL PROTECTED]
Subject: Re: Compiling libxerces-c1_0.so
James,
I'm not sure why you're getting those linking errors. We over here also use
solaris 2.6 with gcc 2.8.1. And I've been compiling most of the time with
out
-d option but don't get any linking problems.
Did you have you LD_LIBRARY_PATH set to the right directories of system
libraries?
What were the linking errors? Can you paste them up here?
Arundhati
"Ching, James" wrote:
> I downloaded Xerces-C-src_1_0_1 (XML parser for C++) and compiled it on
> Solaris 2.6 with gcc 2.8.1.
>
> I can successfully link the resulting shared library with the debug flag
> turned on
> % runConfigure -p solaris -c gcc -x g++ -d
>
> Yet once I remove the "-d" flag, I got a list of linking errors on symbols
> referenced
> not found. Does anyone had the similar problem?
>
> Any suggestion is greatly appreciated!
>
> James
******************************************
This is the size compiling with -d flag
******************************************
-rwxr-xr-x 1 siuc earthlink5110132 Jan 27 21:39 libxerces-c1_0.so*
******************************************
Result when ./runConfigure without -d
******************************************
Generating makefiles with the following options ...
Platform: solaris
C Compiler: gcc
C++ Compiler: g++
Extra compile options:
Extra link options:
Message Loader: inmem
Net Accessor: fileonly
Transcoder: native
Thread option:
Debug is OFF
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -O -DXML_USE_NATIVE_TRANSCODER
-DXML_USE_INMEM_MESSAGELOADER ) works... yes
checking whether the C compiler (gcc -O -DXML_USE_NATIVE_TRANSCODER
-DXML_USE_INMEM_MESSAGELOADER ) 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++ -O -DXML_USE_NATIVE_TRANSCODER
-DXML_USE_INMEM_MESSAGELOADER ) works... yes
checking whether the C++ compiler (g++ -O -DXML_USE_NATIVE_TRANSCODER
-DXML_USE_INMEM_MESSAGELOADER ) 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 how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for XMLByte... no
checking host system type... sparc-sun-solaris2.6
updating cache ./config.cache
creating ./config.status
creating Makefile
creating util/Makefile
creating util/Transcoders/ICU/Makefile
creating util/Transcoders/Iconv/Makefile
creating util/Platforms/Makefile
creating util/Compilers/Makefile
creating util/MsgLoaders/InMemory/Makefile
creating util/MsgLoaders/ICU/Makefile
creating util/MsgLoaders/MsgCatalog/Makefile
creating validators/DTD/Makefile
creating framework/Makefile
creating dom/Makefile
creating parsers/Makefile
creating internal/Makefile
creating sax/Makefile
creating ../obj/Makefile
If the result of the above commands look OK to you, go to the directory
/src and type "make" to make the XERECS-C system.
******************************************
New size after making shared library
******************************************
-rwxr-xr-x 1 siuc earthlink 740684 Jan 31 14:55 libxerces-c1_0.so*
******************************************
ldd shows it finds all necessary libs
******************************************
Jan 31 Mon 15:12 siuc/lola/lib (301) ldd libxerces-c1_0.so
libpthread.so.1 => /usr/lib/libpthread.so.1
libm.so.1 => /usr/lib/libm.so.1
libw.so.1 => /usr/lib/libw.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libthread.so.1 => /usr/lib/libthread.so.1
**************************************************
Errors when making one of the samples : DOMPrint
**************************************************
Jan 31 Mon 14:57 siuc/lola/DOMPrint (292) 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
_._19DOM_EntityReference
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
__12DOM_Document
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
getNodeType__C8DOM_Node
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
__ne__C8DOM_NodePC11DOM_NullPtr
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
item__16DOM_NamedNodeMapi
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
createCDATASection__12DOM_DocumentRC9DOMString
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
appendChild__8DOM_NodeRC8DOM_Node
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
__12DOM_DocumentRC12DOM_Document
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
__12DTDValidatorP16XMLErrorReporter
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
__8DOM_NodeRC8DOM_Node
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
__as__8DOM_NodePC11DOM_NullPtr
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
createEntityReference__12DOM_DocumentRC9DOMString
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
_._12DOM_Document
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
appendData__17DOM_CharacterDataRC9DOMString
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
__8DOM_TextRC8DOM_Text
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
__9DOMStringPCUs
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
_._16DOM_NamedNodeMap
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
length__C9DOMString
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
createProcessingInstruction__12DOM_DocumentRC9DOMStringT1
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
_._25DOM_ProcessingInstruction
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
__as__11DOM_ElementRC11DOM_Element
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
createDocument__12DOM_Document
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
_._16DOM_CDATASection
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
createElement__12DOM_DocumentPCUs
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
getNodeName__C8DOM_Node
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
__as__12DOM_DocumentRC12DOM_Document
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
getAttributes__C8DOM_Node
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
_._11DOM_Element
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
_._9DOMString
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
__8DOM_Node
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
__as__8DOM_NodeRC8DOM_Node
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
createComment__12DOM_DocumentRC9DOMString
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
getNextSibling__C8DOM_Node
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
__9DOMStringPCUsi
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
getLength__16DOM_NamedNodeMap
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
__11DOM_Element
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
__9DOMStringi
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
substringData__C9DOMStringii
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
transcode__C9DOMString
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
_._11DOM_Comment
/home/siuc/code/xml/Xerces-C-src_1_0_1/lib/libxerces-c1_0.so
rawBuffer__C9DOMString
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
_._8DOM_Node
/home/siuc/code/xml/Xerces-C-src_1_0_1/bin/obj/DOMPrint/DOMPrint.o
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