[omniORB] OmniORB 2.8.0 HPUX 64-bits porting

Carlos Tomás carlos.tomas.herreros at hp.com
Wed Apr 28 17:02:20 BST 2004


Hello to everybody,

    I've been working for 2 months with omniORB 2.8.0 on HPUX 11.00; I
need to compile a CORBA process with a 64 bits library, but omniORB 2.8.0 is
implemented for 32 bits, so I found errors at the linking phase, because of
the differences between omniORB2 32-bits library and my 64-bits library.
    
    At the first time, I made these two changes in order to obtain a
64-bits version of omniORB 2.8.0 libraries :

- I included the +DA2.0W compilation option in the installation process
- I changed the CORBA_sysdep.h file line
#define SIZEOF_LONG 4
    for
#define SIZEOF_LONG 8

    The compilation of  the make process for building and installation
was successful and everything seemed to run OK until I used "long" types:
CORBA complained "LONG" size was 32 instead of 64 bits.

    Then, I changed the CORBA_basetypes.h file lines:
#if SIZEOF_LONG == 4
typedef long                      _CORBA_Long;
typedef unsigned long             _CORBA_ULong;
    for
#if SIZEOF_LONG == 8
typedef long                      _CORBA_Long;
typedef unsigned long             _CORBA_ULong;

    The compilation process finished successfully, but I got a 'Bus
Error' coredump when I tried to startup the omniNames or another CORBA
process. I realized these changes have lot of involvements in the
bufferedStream.h file, and I don't know if I should go further this way,
as perhaps there's a simpler solution other than severely modifying core
source files.

    I understand that some people like Neeraj Bathia have achieved a 64
bits version for omniORB 2.8.0.

Thanks in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20040428/63522765/attachment.htm


More information about the omniORB-list mailing list