In search for questions.

Content by Tyches.
Licensed under CC by.

Theme by nostrich, altered by Tyches.

16th April 2010


Compiling SYSV_IPC python module with GCC on AIX 5.2

I had a need to use good old SYSV message queues to interoperate with a bunch of old C programs, straight from python. Come in sysv_ipc module to the rescue, which works great on a variety of systems, but I need it on AIX.

Using Perzl wonderful rpm packages for AIX, I was able to compile it with GCC 4.2 and setup it into Python 2.6.

Modify common.h to unset SHM_SIZE (Obsolete step as of sysv_ipc 0.6):

#undef SHM_SIZE


Export those two vars:

LDSHARED="/opt/freeware/lib/python2.6/config/ld_so_aix gcc -bI:/opt/freeware/lib/python2.6/config/python.exp"

You can then go on and:

python install [--user]

Update: common.h should not be modified anymore.