You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Chun Lin Zhang <ch...@hotmail.com> on 2004/04/28 10:11:52 UTC
How to build on solaris machine -- error messages
Anybody can help me to solve this problem? Thank you very much.
Rgds
-chunlin
The steps I used.
1, ./src/xercesc/autoconf
2, ./src/xercesc/runConfigure -psolaris -cgcc -xg++ -minmem -nsocket -tnative -rpthread
3, gmake
I didn't get any error.
Then I go to ./samples
1, ./runConfigure -psolaris -cgcc -xg++
2, gmake
I got the following error message.
gmake
Building SAXPrint
gmake -C SAXPrint
gmake[1]: Entering directory `/tools/xerces-c-src_2_5_0/samples/SAXPrint'
mkdir -p /tools/xerces-c-src_2_5_0/bin/obj/SAXPrint
g++ -DSOLARIS -fpic -L/usr/lib -L/usr/local/lib /tools/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o /tools/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrintHandlers.o -o /tools/xerces-c-src_2_5_0/bin/SAXPrint -L/tools/xerces-c-src_2_5_0/lib -lxerces-c -lc
ld: warning: global symbol `_GLOBAL_OFFSET_TABLE_' has non-global binding:
(file /usr/local/lib/libgcc_s.so.1 value=LOCL);
Undefined first referenced
symbol in file
cerr /tools/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o
cout /tools/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o
ostream::flush(void) /tools/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrintHandlers.o
ostream::write(char const *, int) /tools/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrintHandlers.o
ostream::operator<<(char const *) /tools/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o
endl(ostream &) /tools/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrint.o
ostream::operator<<(int) /tools/xerces-c-src_2_5_0/bin/obj/SAXPrint/SAXPrintHandlers.o
ld: fatal: Symbol referencing errors. No output written to /tools/xerces-c-src_2_5_0/bin/SAXPrint
collect2: ld returned 1 exit status
gmake[1]: *** [/tools/xerces-c-src_2_5_0/bin/SAXPrint] Error 1
gmake[1]: Leaving directory `/tools/xerces-c-src_2_5_0/samples/SAXPrint'
gmake: *** [saxprint] Error 2
The gcc version is gcc version 2.95.3 20010315 (release)