Embedded Python 2.1 and AIX

Donn Cave donn at u.washington.edu
Wed Jul 18 14:18:13 EDT 2001

Quoth "Galen Swint" <hcsgss at texlife.com>:

| I'm embedding Python 2.1 in an AIX 4.3 library and it's crashing every time the
| embedded Python calls for an import of the 'string' or 'math' module. With a
| little bit of gdb work I can find that it's crashing with SIGSEGV in the
| 'initstrop' function (or 'initmath' -- take your pick) when it calls
| Py_InitModule4. Apparently, when the library is linked the reference to
| Py_InitModule4 is not resolved.
| Some more info
| -Python configured with
|     ./configure --with-threads --with-gcc --prefix=/opt/local
| (also, it is loading the library from the correct directory
| (/opt/local/lib/python2.1/lib-dynload) according to gdb)

Must you use gcc?  I suggest you try the simplest test program
that illustrates this problem, and build it with the compiler
tools that come with the platform, with the options as specified
in /usr/local/lib/python2.1/config/Makefile.

	Donn Cave, donn at u.washington.edu

More information about the Python-list mailing list