[omniORB] omniORB3, HPUX 10.20, gcc2.95 , omniidl problem

mahadevan mahadevan@iocl.co.in
Sun, 23 Jul 2000 19:54:00 +0530 (IST)


Hi

I am working on project in which I have connect Alpha OpenVMS 7.1, Linux6.1
and NT4.0 + HPUX 10.20 m/c. I compiled omniORB2_80 succesfully on
Alpha OpenVMS 7.1, Linux6.1 and NT4.0. But I am facing problems in getting it
compiled on HPUX.

HP CC & cc were giving various troubles and I tried to compile with gcc
So I tried to compile recent omniORB3 on HPUX

My HPUX 10.20  System details are:

GNU assembler version 2.9.1 (hppa1.1-hp-hpux10.20), using BFD version 2.9.1 
gcc version 2.95.2 19991024 (release)        
ld: 92453-07 linker linker ld B.10.28 971016
HP-UX ims B.10.20 A 9000/778 2011521363 two-user license      
GNU Make version 3.79, Built for hppa1.1-hp-hpux10.20

But getting stucked up in _omniidlmodule.so. I tweaked some
dir.mk files and I got the modulecompiled  and I kept in the location where it
asks both in .sl & .so files.                      
$make export 
<==================
...
../../../bin/hppa_hpux_10.20/omniidl -bcxx -Wba -p../../../src/lib/omniORB2  -ComniORB3 ../../../idl/Naming.idl
omniidl: ERROR!
omniidl: Could not find IDL compiler module _omniidlmodule.so
omniidl: Please make sure it is in directory /home/ocsmgr/download/omni/lib/hppa_hpux_10.20
omniidl: (or set the PYTHONPATH environment variable)
omniidl: (The error was `dynamic module does not define init function (init_omniidl)')                                               
...
=========>
But I have all of the files in the specified dirs
$ find ../|grep _omniidlmodule
../src/tool/omniidl/cxx/_omniidlmodule.sl.0.1
../src/tool/omniidl/cxx/_omniidlmodule.so.0.1
../lib/hppa_hpux_10.20/_omniidlmodule.sl.0.1
../lib/hppa_hpux_10.20/_omniidlmodule.sl.0
../lib/hppa_hpux_10.20/_omniidlmodule.sl
../lib/hppa_hpux_10.20/_omniidlmodule.so
../lib/hppa_hpux_10.20/_omniidlmodule.so.0.1
../lib/hppa_hpux_10.20/_omniidlmodule.so.0    

Then I added PYTHONVERBOSE

$ export PYTHONVERBOSE=1
$ cd /home/ocsmgr/download/omni/src/lib/omniORB2  
$ make 2>errors
../../../bin/hppa_hpux_10.20/omniidl -bcxx -Wba -p../../../src/lib/omniORB2  -ComniORB3 ../../../idl/Naming.idl
shl_load /home/ocsmgr/download/omni/lib/hppa_hpux_10.20/_omniidlmodule.sl
shl_findsym init_omniidl
<=========errors file contents =======
...
/usr/lib/dld.sl: Unresolved symbol: __pure_virtual_called (code)  from /home/ocsm
gr/download/omni/lib/hppa_hpux_10.20/_omniidlmodule.sl
/usr/lib/dld.sl: Unresolved symbol: __pure_virtual_called (code)  from /home/ocsmgr/download/omni/lib/hppa_hpux_10.20/_omniidlmodule.sl
/usr/lib/dld.sl: Unresolved symbol: __dt__13Iostream_initFv (code)  from /home/ocsmgr/download/omni/lib/hppa_hpux_10.20/_omniidlmodule.sl
/usr/lib/dld.sl: Unresolved symbol: __dt__13Iostream_initFv (code)  from /home/ocsmgr/download/omni/lib/hppa_hpux_10.20/_omniidlmodule.sl
/usr/lib/dld.sl: Unresolved symbol: __dt__13Iostream_initFv (code)  from /home/ocsmgr/download/omni/lib/hppa_hpux_10.20/_omniidlmodule.sl
... similiar kinds of messages
... finally
import omniidl_be.cxx.impl.template # precompiled from ../../../src/lib/omniORB2
/omniidl_be/cxx/impl/template.pyc
../../../bin/hppa_hpux_10.20/omniidl[32]: 29034 Memory fault(coredump)
make: *** [omniORB3/Naming.hh] Error 139 
===========>
I feel these unresolved symbols are causing omniidl to core dump

What is the way out?


Mahadevan

G.S.S.Mahadevan,
Senior Process Engineer,
Advanced Process Control & Optimization Dept,
Indian Oil Corporation Ltd,
Mathura Refinery,
Mathura -281006,
India.