[omniORB] problems with omniORB-4.0.1 on hpux_11.00 with aCC
Claudio Scafuri
claudio.scafuri@elettra.trieste.it
Tue Apr 8 12:32:02 2003
Hi, I am trying to compile omniORB-4.0.1 on hpux 11.00 without success.
Here are the infromation about my system:
uname -a: HP-UX hostname B.11.00 U 9000/782
aCC: HP ANSI C++ B3910B A.03.39
Here are the error messages form the compiler:
/../../../../src/lib/omniORB/orbcore/anonObject.cc
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);
^^^^^^^^^^^^^^^
This has been solved by modifying acconfig.h, line 14 , commenting out
#define HAVE_CONST_CAST.
-> modify acconfig.h, line 14 : comment out #define HAVE_CONST_CAST
Then the copiler complais about other errors:
../../../../../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_ORD
^^^^^^^^^^^
Error 708: "../../../../../src/lib/omniORB/orbcore/omniInternal.cc",
line 274
# A definition of a namespace declaration must be written in
directly in
the namespace (unqualified) or in an enclosing namespace
(qualified).
omni_tracedmutex* omni::internalLock = 0;
^^^^^^^^^^^^^^^^^^
The same error applies for lines 275,276,277,280,281,283.
Before trying to recopile with namespaces disabled, I wonder if someone
managed to build
omniORB-4.0.1 on hpux 11.
Thanks in advance.
Claudio Scafuri