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 Andrei Popescu-Belis <An...@issco.unige.ch> on 2002/06/26 15:19:30 UTC

problems in building xerces-c on Solaris2.7/2.8

Dear all,

I am trying to build Xerces-c on Solaris machines (I installed
the binary distribution but the program I need that for does
not seem to be happy with the binaries only, esp. libxerces-c.so).

I have tried both Solaris2.7 and 2.8 machines, with
(cc[SC4.0 18 Oct 1995 C 4.0], CC[SC4.0 18 Oct 1995 C++ 4.1]) and
respectively (gcc[2.8.1], g++[2.8.1]) compilers.

I got two different compiling errors on these tries, listed
below, one for cc/CC (on 2.7 or 2.8 indifferently), another one
on gcc/g++ (on 2.7 or 2.8 indifferently).  Of course I had ran
runConfigure before, and the results looked OK.

So could someone please suggest what I can do to build Xerces-c ?

Thank you very much,
Andrei
-- 
ISSCO/TIM/ETI, Université de Genève 
tél: (41 22) 705 86 81       40, bd du Pont d'Arve
fax: (41 22) 705 86 89       1211 Genève 4 - Suisse
   http://www.issco.unige.ch/staff/andrei


--------------------------------------
Solaris2.7 with cc and CC
GNU Make version 3.76.1 (make)

....
CC: Warning: Option -features=rtti passed to ld, if ld is invoked, ignored
otherwise
CC -KPIC -mt -xs -ptr/local/opt/xerces-c-src1_7_0/obj/SOLARIS -features=rtti
-DSOLARIS -D_REENTRANT -c -O -DXML_USE_NATIVE_TRANSCODER
-DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET 
-I/local/opt/xerces-c-src1_7_0/include  -o
/local/opt/xerces-c-src1_7_0/obj/SOLARIS/XMLScanner2.o XMLScanner2.cpp
CC: Warning: Option -features=rtti passed to ld, if ld is invoked, ignored
otherwise
"/local/opt/xerces-c-src1_7_0/include/xercesc/internal/XMLReader.hpp", line 744:
Error: Different types for "?:" (int and void).
"/local/opt/xerces-c-src1_7_0/include/xercesc/internal/XMLReader.hpp", line 768:
Error: Different types for "?:" (int and void).
2 Error(s) detected.
make[1]: *** [XMLScanner2.o] Error 2
make[1]: Leaving directory `/local/opt/xerces-c-src1_7_0/src/xercesc/internal'
make: *** [Internal] Error 2
------------------------------------

Solaris 2.7 with gcc and g++
GNU Make version 3.76.1 (make)

...
g++ -fPIC -DSOLARIS -D_REENTRANT -c -O -DXML_USE_NATIVE_TRANSCODER
-DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET 
-I/local/opt/xerces-c-src1_7_0/include  -o
/local/opt/xerces-c-src1_7_0/obj/SOLARIS/XMLNumber.o XMLNumber.cpp
g++ -fPIC -DSOLARIS -D_REENTRANT -c -O -DXML_USE_NATIVE_TRANSCODER
-DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET 
-I/local/opt/xerces-c-src1_7_0/include  -o
/local/opt/xerces-c-src1_7_0/obj/SOLARIS/XMLBigDecimal.o XMLBigDecimal.cpp
XMLBigDecimal.cpp: In method `XMLBigDecimal::XMLBigDecimal(const short unsigned
int *)':
XMLBigDecimal.cpp:127: Internal compiler error.
XMLBigDecimal.cpp:127: Please submit a full bug report to
`bug-g++@prep.ai.mit.edu'.
make[1]: *** [XMLBigDecimal.o] Error 1
make[1]: Leaving directory `/local/opt/xerces-c-src1_7_0/src/xercesc/util'
make: *** [Util] Error 2

-----------------------------------------
Solaris 2.8 with gcc and g++
GNU Make version 3.79.1 (gmake)

...
g++ -fPIC -DSOLARIS -D_REENTRANT -c -O -DXML_USE_NATIVE_TRANSCODER
-DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET 
-I/home/andrei/utils/xerces-c-src1_7_0/include  -o
/home/andrei/utils/xerces-c-src1_7_0/obj/SOLARIS/XMLNumber.o XMLNumber.cpp
g++ -fPIC -DSOLARIS -D_REENTRANT -c -O -DXML_USE_NATIVE_TRANSCODER
-DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET 
-I/home/andrei/utils/xerces-c-src1_7_0/include  -o
/home/andrei/utils/xerces-c-src1_7_0/obj/SOLARIS/XMLBigDecimal.o
XMLBigDecimal.cpp
XMLBigDecimal.cpp: In method `XMLBigDecimal::XMLBigDecimal(const short unsigned
int *)':
XMLBigDecimal.cpp:127: Internal compiler error.
XMLBigDecimal.cpp:127: Please submit a full bug report to
`bug-g++@prep.ai.mit.edu'.
make[1]: *** [XMLBigDecimal.o] Error 1
make[1]: Leaving directory
`/home/andrei/utils/xerces-c-src1_7_0/src/xercesc/util'
make: *** [Util] Error 2

----------------------------------------

Solaris 2.8 with cc and CC
GNU Make version 3.79.1 (gmake)

...
CC -KPIC -mt -xs -ptr/home/andrei/utils/xerces-c-src1_7_0/obj/SOLARIS
-features=rtti -DSOLARIS -D_REENTRANT -c -O -DXML_USE_NATIVE_TRANSCODER
-DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET 
-I/home/andrei/utils/xerces-c-src1_7_0/include  -o
/home/andrei/utils/xerces-c-src1_7_0/obj/SOLARIS/XMLScanner2.o XMLScanner2.cpp
CC: Warning: Option -features=rtti passed to ld, if ld is invoked, ignored
otherwise
"/home/andrei/utils/xerces-c-src1_7_0/include/xercesc/internal/XMLReader.hpp",
line 744: Error: Different types for "?:" (int and void).
"/home/andrei/utils/xerces-c-src1_7_0/include/xercesc/internal/XMLReader.hpp",
line 768: Error: Different types for "?:" (int and void).
2 Error(s) detected.
gmake[1]: *** [XMLScanner2.o] Error 2
gmake[1]: Leaving directory
`/home/andrei/utils/xerces-c-src1_7_0/src/xercesc/internal'
gmake: *** [Internal] Error 2

-----------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org