[omniORB] building omniORB4.0.1 on HP-UX11

Song Li sli at fueltechnv.com
Fri Jul 25 11:59:56 BST 2003


Hi,

I have problems to build omniORB4.0.1 on HP-UX11, first the error 
meeesage was:
================================================================
Error 742: "../../../../../include/omniORB4/stringtypes.h", line 397 # 
Source type char *& and target type char * in a const_cast can only 
differ in their qualifiers
            pd_data = OMNI_CONST_CAST(char*, s.pd_data);
================================================================
After commented out the line of "#define HAVE_CONST_CAST" in acconfig.h, 
it can go a little further, and produce other error looks like:
================================================================
aCC -c -O -w +inst_v +DAportable -D_THREAD_SAFE -DRWSTD_MULTI_THREAD 
-DRW_MULTI_THREAD  -I.. -I../../../../../src/lib/omniORB/orbcore/.. 
-I../../../../include/omniORB4/internal 
-I../../../../../include/omniORB4/internal -D_HPUX_SOURCE 
-D_POSIX_C_SOURCE=199506L -DUSE_omniORB_logStream -D_OMNIORB_LIBRARY 
-DCONFIG_DEFAULT_LOCATION='"/etc/omniORB.cfg"' 
-DCONFIG_ENV='"OMNIORB_CONFIG"' -DUnixArchitecture -I. 
-I../../../../../src/lib/omniORB/orbcore -I../../../../include 
-I../../../../../include -D__OSVERSION__=11 -D__hpux__ -D__hppa__ -o 
static/omniInternal.o ../../../../../src/lib/omniORB/orbcore/omniInternal.cc
Error 708: "../../../../../src/lib/omniORB/orbcore/omniInternal.cc", 
line 273 # A definition of a namespace declaration must be written in 
directly in the namespace
    (unqualified) or in an enclosing namespace (qualified).
    const CORBA::Char                omni::myByteOrder = 
_OMNIORB_HOST_BYTE_ORDER_;
...
===============================================================
And many similiar errors. Any idea about this ...??? My OS version is 
HP-UX B.11.00 U 9000/785, aCC version is: aCC: HP ANSI C++ B3910B 
A.03.37.  Thanks in advance!

Song




More information about the omniORB-list mailing list