[omniORB] failed to build the omniORB version 4.1.2 on Solaris 5.8 box

Xie, Wensheng wxie at verisign.com
Thu Mar 13 11:10:59 GMT 2008


Hi:  
 
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.
 
make[4]: Entering directory
`/export/workspace/omni/omniORB-4.1.2/build/src/lib/omniORB/orbcore'
/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
"../omniORB4/boxes_defs.hh", line 205: Error: "<" expected instead of
"<:".
"../omniORB4/boxes_defs.hh", line 205: Error: Type name expected instead
of "<:".
"../omniORB4/boxes_defs.hh", line 205: Error: Expected an expression.

 
I found the problem is cause by the following statement in boxes_defs.hh
inline WStringValue()
    :
_pd_boxed(OMNI_CONST_CAST(::CORBA::WChar*,_CORBA_WString_helper::empty_w
string))
  {}

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.
 
Please advice how to solve the problem.
 
Thanks;
 
Wensheng 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20080313/5f1995d5/attachment.htm


More information about the omniORB-list mailing list