[omniORB] Installation problem with OmniOrb 4.0 64 bit and Solaris 8

Niklas Iveslatt niklas.iveslatt@ams.com
Fri Nov 1 15:24:00 2002


Hi all,

I finally got something to work. Below is the process for anyone else who
might be doing the same thing. It might not win a beauty contest though :)

Thanks,

Niklas


OmniORB 4.0 and Solaris 8 64 bit. Omnicpp only seems to work in 32 bit mode
so the steps are a bit involved:

1. Install python 2.2.2 (32bit)
2. Build Omniorb (32bit) using platform make files
   -- Change ./config/config.mk to use platform sun4_sosV_5.7
   -- Uncomment PYTHON = /usr/local/bin/python in sun4_sosV_5.7.mk
3. Follow supplied instructions to make.
4. Could not get omnicpp to work in 64 bit mode (it coredumps on strcpy)
so;
  a. copy lib/sun4_sosV_5.7/omnicpp to /tmp
  b. cp lib/sun4_sosV_5.7/_omniidlmodule.so.1.0 /tmp
  ** This saves the 32 bit version of omnicpp for use later
5. Clean (make clean in src)
6. cp /tmp/omnicpp to src/tool/omniidl/cxx/cccp/
7. cp /tmp/_omniidlmodule.so.1.0 to src/tool/omniidl/cxx/
8. Modify make files for 64 bit (add -xtarget=ultra -xarch=v9):
   a. sun4_sosV_5.7.mk
      CXXOPTIONS = -xtarget=ultra -xarch=v9
      COPTIONS   = -xtarget=ultra -xarch=v9
      CLINK             = $(CC) -xtarget=ultra -xarch=v9
      SharedLibraryPlatformLinkFlagsTemplate = -G -xtarget=ultra -xarch=v9
-h $$soname
   b. src/tool/omniidl/cxx/dir.mk
      $(CXX) -ptv -G -xtarget=ultra -xarch=v9 -o $@ -h $(soname)
$(IMPORT_LIBRARY_FLAGS) \
      $(CXXLINK) $(CXXLINKOPTIONS) -xtarget=ultra -xarch=v9 -shared -o $@
-Wl-soname,$(soname) $(IMPORT_LIBRARY_FLAGS) \
9. MOdify include/omniORB4/CORBA_sysdep_trad.h
    SIZEOF_LONG 8
    SIZEOF_PTR 8
10. Build omniorb 64 bit (make export in src)
11. cp /tmp/omnicpp to lib/sun4_sosV_5.7/
12. cp /tmp/_omniidlmodule.so.1.0 to lib/sun4_sosV_5.7/
13. To build examples: make in src/examles
14. done.