[Patches] [ python-Patches-836434 ] Build changes for AIX
SourceForge.net
noreply at sourceforge.net
Tue Nov 18 15:01:32 EST 2003
Patches item #836434, was opened at 2003-11-05 13:13
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=836434&group_id=5470
Category: Build
Group: Python 2.3
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Ulrich Berning (uberning)
Assigned to: Nobody/Anonymous (nobody)
Summary: Build changes for AIX
Initial Comment:
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.
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2003-11-18 21:01
Message:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=836434&group_id=5470
More information about the Patches
mailing list