[omniORB] omniORBpy: AIX patch (actually makes it work on AIX)

Alex Tingle alex.tingle at bronermetals.com
Wed Apr 27 16:37:53 BST 2005


Hi Duncan,

This patch fixes a longstanding problem with omniORBpy on AIX. The 
problem was that it wouldn't link. And even when it did link, python 
would crash when you tried to import the CORBA module.

I've read up in the subject, and discovered that the recommended way to 
build Python modules on AIX is through a script (ld_so_aix). For 
details see the file Misc/AIX-NOTES that is distributed with the Python 
source code.

This patch changes omniORBpy to use this script on AIX. I've tested it, 
and it works perfectly. (First time I've ever seen omniORBpy work on 
the AIX - w00t!)

I confess that I'm not very happy with the details of the patch. 
Basically, I've thrown out the idea of using the make variables 
`SharedLibraryPlatformLinkFlagsTemplate' & 
'PythonLibraryPlatformLinkFlagsTemplate', and I've just redefined 
MakeCXXSharedLibrary instead. This means that `beforeauto.mk.in' now 
ONLY knows how to make Python shared libs, not any other kind of lib. I 
suppose that you would rather keep this file the same between omniORBpy 
& omniORB itself - this change does not achieve that.

Anyway, this is still a major step forward, so I thought I'd share it.

-Alex Tingle

-------------- next part --------------
A non-text attachment was scrubbed...
Name: aix-link.patch
Type: application/octet-stream
Size: 1481 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20050427/872d35ba/aix-link.obj
-------------- next part --------------

--
Dammit Jim, I'm a programmer... not a mind reader!


More information about the omniORB-list mailing list