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 Python2.4.1 on AIX5 using xlc v6
Type: Stage:
Components: Build Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, loewis, npkg
Priority: normal Keywords: patch

Created on 2005-05-27 11:53 by npkg, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
AIX-Python241-diff.txt npkg, 2005-05-27 11:53 Patch to get Python-2.4.1 to compile on AIX using IBM's xlc
Messages (4)
msg48388 - (view) Author: Gangadhar NPK (npkg) Date: 2005-05-27 11:53
Using IBM's Visualage compiler to build Python on AIX,
requires small changes to the code, to let it compile
cleanly.
OS version: AIX 5.2
xlc version: 6

The changes are:
1 AIX defines hz as a preprocessor symbol and it
creates a conflict during preprocessing in the
_codecs_cn.c. This symbol has been selectively
undefined for AIX only
2.Trailing commas in an enum
3. Multiple defines of the _THREAD_SAFE symbol in
python/thread.c. This has been selectively undefined.

msg48389 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-05-30 08:25
Logged In: YES 
user_id=21627

These patches look fine except for the last chunk. I very
much doubt that xlc cannot handle multiple defines; ISO C
mandates that a redefine is allowed as long as the
replacement lists of the macros are identical (6.10.3p2). So
if xlc complains, it is likely that it has a different
definition than the one it reports a conflict is.

Also, it is unclear what precisely the conflict is: AFAICT,
Python never defines _THREAD_SAFE itself. So the conflict
must be between two AIX header files.

Can you please investigate this aspect further?
msg48390 - (view) Author: Gangadhar NPK (npkg) Date: 2005-06-16 17:41
Logged In: YES 
user_id=587037

Sorry for not responding, was a little busy. I will check
the last one - could be because of the patch levels too.
Will check and post it here.
msg48391 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-02-19 15:29
Logged In: YES 
user_id=1188172

Most of this was already done by Guido's AIX patches. I
removed only the trailing commas in rev. 42498.
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 42023
2005-05-27 11:53:36npkgcreate