[omniORB] AIX 64 bit

Giga Giguashvili gregoryg@ParadigmGeo.com
Sun, 08 Jul 2001 12:41:00 +0200


Duncan,

I describe the list of changes I made in order to make OMNI compile on AI=
X 64
bit with VA 5.0. You might want to integrate the changes to OMNI build tr=
ee in
a more "standard" way... I'll be glad to receive patches from you to test=
 them
on AIX 64 bit platform.

Source related changes
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
1) Run /bin/patch =96p0 < patches/aix*
2) In file: lib/omniORB2/orbcore/tcpSocketMTfactory.cc
    - Accept call receives socklen_t as the third argument
3) In file: lib/omniORB2/orbcore/gatekeepers/alone/gatekeeper.cc
    - getpeername call receives socklen_t as the third argument
4) In file include/omniORB3/CORBA_sysdep.h add the following in __xlC__ c=
ase:
    #ifdef __64BIT__
    # define SIZEOF_LONG 8
    # define SIZEOF_PTR 8
    #endif

Make related changes
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
1) Copy mk/platforms/powerpc_aix_4.3_xlc5.mk into a new file with _64 suf=
fix.
2) In the above mentioned file:
    a. Add =96q64 option to CXXOPTIONS, CXXLINKOPTIONS and COPTIONS,
CLINKOPTIONS
    b. Add =96X 64 option to ar call
3) =93setenv OBJECT_MODE 64=94 to be able to link 64 bit objects with
makeC++SharedLib
4) Uncomment powerpc_aix_4.3_xlc5_64 in config/config.mk

I want to add that I didn't test the IDL related stuff. I only compiled t=
he
library and it seems to be running OK.

Best regards,
Giga.

P.S. Sorry for the delay... I was too busy...

Duncan Grisby wrote:

> On Monday 2 July, Giga Giguashvili wrote:
>
> > I managed to port Omni 3 to AIX 64 bit platform lately. I think it wo=
uld
> > be great if you start supporting it on a regular basis. After all, if
> > you support 32 bit AIX 4.3, you should be able to compile 64 bit
> > libraries as well.
>
> We do not have access to any AIX machines, so all of omniORB's AIX
> support is contributed by users. If you have patches to make it
> compile on 64-bit AIX, please send them to us and we'll add them to
> the distribution.
>
> Cheers,
>
> Duncan.
>
> --
>  -- Duncan Grisby  \  Research Engineer  --
>   -- AT&T Laboratories Cambridge          --
>    -- http://www.uk.research.att.com/~dpg1 --

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Gregory Giguashvili
Senior Software Engineer
Email: gregoryg@ParadigmGeo.com
Tel: 972-9-9709379 Fax: 972-3-9709337
Paradigm Geophysical Ltd.
http://www.math.tau.ac.il/~gregoryg