This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Build changes for AIX
Type: Stage:
Components: Build Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: loewis, uberning
Priority: normal Keywords: patch

Created on 2003-11-05 12:13 by uberning, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
Python-2.3.2.patch uberning, 2003-11-05 12:13 A patch file (diff -uNr)
Messages (2)
msg44854 - (view) Author: Ulrich Berning (uberning) Date: 2003-11-05 12:13
On AIX the file dynload_aix.c is used to load shared
modules. This code uses the load() and loadbind() calls
to load and bind a shared module. These functions do
not work with C++ extensions. Since AIX 4.2 the
dlopen() and dlsym() calls are available and should be
used in preference because they also work with C++
modules. The patch changes the configure(.in) script to
prefer the usage of dynload_shlib.c when the dlopen()
function is available (configure checks this).

Another problem is the definition of _XOPEN_SOURCE =
600 in the configure(.in) script. On AIX 4, some
typedefs are only available when _XOPEN_SOURCE has a
value of 500, but are used even if _XOPEN_SOURCE has
another value. This seems to be a bug in the AIX
include files. If _XOPEN_SOURCE is undefined, the AIX
include files define it with the value 500 and
everything works as expected. So the patch sets
"define_xopen_source=no" for AIX 4 in configure(.in)

The attached patch contains the changes for
configure.in and configure but normally only
configure.in needs to be patched and then configure
should be recreated with autoconf.
msg44855 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-11-18 20:01
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as

configure 1.416.4.11
configure.in 1.427.4.10
configure 1.431
configure.in 1.441

In the future, please omit the configure part of the patch,
as autoconf has to be run, anyway.
History
Date User Action Args
2022-04-11 14:56:00adminsetgithub: 39507
2003-11-05 12:13:22uberningcreate