[omniORB] A hello and a question relating to Solaris 8 and omniORBpy

Steffen Ries steffen.ries@sympatico.ca
Sat Oct 19 14:05:02 2002


Gary Greyling <gary@egenetics.com> writes:

> I compiled both omniORB and omniORBpy on solaris 8 using gcc 2.95 and
> got no errors. However when i try to import any of the omniORBpy
> modules i get the following. 
> 
> 
> ImportError: ld.so.1: python2: fatal: relocation error: file
> /usr/local/stackpack/lib/_omnipymodule.so: symbol
> truncate64__CQ25CORBA5FixedUs: referenced symbol not found
> 
> Checking with nm you see that this is true, however i have no idea
> whereto link this to in order to get it to work.
> 
> Any suggestion at this point will be most appreciated.

I ran into the same problem a couple of weeks ago. The problem is that
/usr/include/unistd.h defines "#define truncate truncate64" which screws
the "truncate" method in CORBA::Fixed.

The workaround I used is to modify omniORBpy/modules/omnipy.h and put
#ifdef truncate
#undef truncate
#endif

after #include <Python.h>

hth,
/steffen
-- 
steffen.ries@sympatico.ca	<> Gravity is a myth -- the Earth sucks!