<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=733235616-13032008>Hi:
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=733235616-13032008><FONT face=Arial size=2>I failed to build
omniORB 4.1.2 version on Solaris 5.8 box. The complier is Sun WorkShop
6. I got the following the error.</FONT></SPAN></DIV>
<DIV><SPAN class=733235616-13032008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Arial size=2>make[4]: Entering directory
`/export/workspace/omni/omniORB-4.1.2/build/src/lib/omniORB/orbcore'<BR>/opt/SUNWspro/bin/CC
-c -O2 -g -I.. -I../../../../../src/lib/omniORB/orbcore/..
-I../../../../include/omniORB4/internal
-I../../../../../include/omniORB4/internal -DUsePthread -D_REENTRANT -mt
-DUSE_omniORB_logStream -D_OMNIORB_LIBRARY -DOMNIORB_VERSION_STRING='"4.1.2"'
-DOMNIORB_VERSION_HEX='0x040101F1'
-DCONFIG_DEFAULT_LOCATION='"/etc/omniORB.cfg"' -DCONFIG_ENV='"OMNIORB_CONFIG"'
-DUnixArchitecture -DBSD_COMP -I.
-I../../../../../src/lib/omniORB/orbcore -I../../../../include
-I../../../../../include -D__OSVERSION__=5 -D__sunos__ -D__sparc__ -o
static/anonObject.o
../../../../../src/lib/omniORB/orbcore/anonObject.cc<BR>"../omniORB4/boxes_defs.hh",
line 205: Error: "<" expected instead of
"<:".<BR>"../omniORB4/boxes_defs.hh", line 205: Error: Type name expected
instead of "<:".<BR>"../omniORB4/boxes_defs.hh", line 205: Error: Expected an
expression.<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT><SPAN class=733235616-13032008><FONT face=Arial size=2>I found the
problem is cause by the following statement in
boxes_defs.hh</FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=733235616-13032008><FONT face=Arial size=2>inline
WStringValue()<BR> : _pd_boxed(OMNI_CONST_CAST<FONT
color=#ff0000>(::</FONT>CORBA::WChar*,_CORBA_WString_helper::empty_wstring))<BR>
{}<BR></FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=733235616-13032008><FONT face=Arial size=2>Since version
4.1.1, omniORB add :: (double colon) before CORBA to reference global namespace.
After the marco OMNI_CONST_CAST expands, the statement changes to
const_cast<::CORBA::WChar*>, Sun CC compiler complains it. As I remember,
the default namespace is global namespace if no double colon(::). After I
removed the double colon(::) in file value.py, I succeeded to build
it.</FONT></SPAN></FONT></DIV>
<DIV><FONT><SPAN class=733235616-13032008><FONT face=Arial
size=2></FONT></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=733235616-13032008>Please advice how to
solve the problem.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=733235616-13032008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=733235616-13032008>Thanks;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=733235616-13032008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=733235616-13032008>Wensheng
</SPAN></FONT></DIV>
<DIV><FONT><SPAN class=733235616-13032008><FONT face=Arial
size=2> </DIV></FONT></SPAN></FONT></BODY></HTML>