You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Vladimir Marek <ma...@printsoft.cz> on 2003/10/21 20:22:04 UTC
xalan + icu + solaris - unistr.h
Hello,
I encountered problem compiling xalan on solaris:
g++ -m64 -mcpu=ultrasparc -DNDEBUG -I/press_mnt1/Vlada/icu/include
-DXML_BITSTOBUILD_64 -fno-elide-constructors -Wall -fPIC -DSOLARIS
-D_REENTRANT -DXALAN_USE_ICU -c -I/press_mnt1/Vlada/xml-xalan/c/src
-I/press_mnt1/Vlada/icu/include/ -I.
-I/press_mnt1/Vlada/xerces-c-src_2_3_0/src/
-I/press_mnt1/Vlada/xerces-c-src_2_3_0/include/xercesc
-I/press_mnt1/Vlada/xerces-c-src_2_3_0/include/ -o
/press_mnt1/Vlada/xml-xalan/c/obj/ICUBridgeCollationCompareFunctorImpl.o
/press_mnt1/Vlada/xml-xalan/c/src/xalanc/ICUBridge/ICUBridgeCollationCompareFunctorImpl.cpp
In file included from /usr/include/unicode/normlzr.h:13,
from coll.h:48,
from
/press_mnt1/Vlada/xml-xalan/c/src/xalanc/ICUBridge/ICUBridgeCollationCompareFunctorImpl.hpp:76,
from
/press_mnt1/Vlada/xml-xalan/c/src/xalanc/ICUBridge/ICUBridgeCollationCompareFunctorImpl.cpp:58:
/usr/include/unicode/unistr.h: In function `void uprv_arrayCopy(const
icu_2::UnicodeString*, int, icu_2::UnicodeString*, int, int)':
/usr/include/unicode/unistr.h:2961: error: declaration of C function
`void
uprv_arrayCopy(const icu_2::UnicodeString*, int,
icu_2::UnicodeString*, int,
int)' conflicts with
/usr/include/unicode/unistr.h:2956: error: previous declaration `void
uprv_arrayCopy(const icu_2::UnicodeString*, icu_2::UnicodeString*,
int)'
here
[...]
This might not be exactly problem of xalan, I know, but I hope that I am
not the only one who is/was fighting with this.
System specs:
uname -a:
SunOS hkpress1 5.9 Generic_112233-05 sun4u sparc SUNW,Sun-Fire-480R
gcc --version
gcc (GCC) 3.3
runscript:
./runConfigure -p solaris -t icu -x g++ -c gcc -b 64 -l -m64 -z -m64 -z -mcpu=ultrasparc -C --prefix=/press_mnt1/Vlada/xalan-build
(plus 'export XALAN_USE_ICU=1' and XALAN, XERCES and ICU roots exported
too)
Everything compiled 64bit, but I don't think it has anything to do with
this.
As this seems to be rather out-of-xalan problem, I would be grateful for
any hint.
Thank you,
Vladimir Marek
--
Vladimír Marek
Re: xalan + icu + solaris - unistr.h
Posted by Vladimir Marek <ma...@printsoft.cz>.
Ok, solved, it was including system unistr.h, and not ICU unistr.h:
Probably wrongly set ICUROOT.
> I encountered problem compiling xalan on solaris:
>
[...]
> /press_mnt1/Vlada/xml-xalan/c/src/xalanc/ICUBridge/ICUBridgeCollationCompareFunctorImpl.cpp:58:
> /usr/include/unicode/unistr.h: In function `void uprv_arrayCopy(const
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[...]
--
Vladimír Marek