Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redefinition of TILDE macro on AIX platform #48749

Closed
apaprocki mannequin opened this issue Dec 2, 2008 · 6 comments
Closed

redefinition of TILDE macro on AIX platform #48749

apaprocki mannequin opened this issue Dec 2, 2008 · 6 comments
Labels
build The build process and cross-build

Comments

@apaprocki
Copy link
Mannequin

apaprocki mannequin commented Dec 2, 2008

BPO 4499
Nosy @benjaminp, @bitdancer

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2010-10-18.00:20:57.545>
created_at = <Date 2008-12-02.23:00:08.002>
labels = ['build']
title = 'redefinition of TILDE macro on AIX platform'
updated_at = <Date 2010-10-18.00:20:57.543>
user = 'https://bugs.python.org/apaprocki'

bugs.python.org fields:

activity = <Date 2010-10-18.00:20:57.543>
actor = 'r.david.murray'
assignee = 'none'
closed = True
closed_date = <Date 2010-10-18.00:20:57.545>
closer = 'r.david.murray'
components = ['Build']
creation = <Date 2008-12-02.23:00:08.002>
creator = 'apaprocki'
dependencies = []
files = []
hgrepos = []
issue_num = 4499
keywords = []
message_count = 6.0
messages = ['76800', '109600', '110441', '110771', '115694', '118992']
nosy_count = 6.0
nosy_names = ['sable', 'benjamin.peterson', 'apaprocki', 'r.david.murray', 'srid', 'BreamoreBoy']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue4499'
versions = ['Python 3.1', 'Python 2.7', 'Python 3.2']

@apaprocki
Copy link
Mannequin Author

apaprocki mannequin commented Dec 2, 2008

"Include/token.h", line 42.9: 1506-236 (W) Macro name TILDE has been
redefined.
"Include/token.h", line 42.9: 1506-358 (I) "TILDE" is defined on line
250 of /usr/include/sys/ioctl.h.

@apaprocki apaprocki mannequin added the build The build process and cross-build label Dec 2, 2008
@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Jul 8, 2010

Is this still a problem or can the issue be closed?

@BreamoreBoy BreamoreBoy mannequin added the build The build process and cross-build label Jul 8, 2010
@bitdancer
Copy link
Member

The define in question by that name still exists in token.h in 3.x. I've added srid to nosy since as an AIX user he probably knows if this is a real problem or not, and Benjamin because he's done a lot with the parser.

@srid
Copy link
Mannequin

srid mannequin commented Jul 19, 2010

I've located the following patch in our ActivePython source tree.

$ cat src/patches/3.1/general/aix_tilde.patch 
--- Include/token.h.orig        2008-10-08 11:51:52.000000000 -0700
+++ python/Include/token.h      2008-10-08 11:52:53.000000000 -0700
@@ -7,6 +7,8 @@
 extern "C" {
 #endif
 
+#undef TILDE   /* Prevent clash of our definition with system macro. Ex AIX, ioctl.h */
+
 #define ENDMARKER      0
 #define NAME           1
 #define NUMBER         2

@sable
Copy link
Mannequin

sable mannequin commented Sep 6, 2010

I can confirm that this problem is still present with Python 3.1.2 on AIX 6.1. This is just a compilation warning, but the patch in
msg110771 correctly cleans it.

xlc_r -c -DNDEBUG -O -I. -IInclude -I./Include -I/home/cis/data/bamboo-home-agent-runtime/xml-data/build-dir/RTAIX30-SUP/target/support/include -I/home/cis/data/bamboo-home-agent-runtime/xml-data/build-dir/RTAIX30-SUP/target/support/include/ncurses -I/home/cis/data/bamboo-home-agent-runtime/xml-data/build-dir/RTAIX30-SUP/target/support/include -DPy_BUILD_CORE -o Parser/acceler.o Parser/acceler.c
"Include/token.h", line 42.9: 1506-236 (W) Macro name TILDE has been redefined.
"Include/token.h", line 42.9: 1506-358 (I) "TILDE" is defined on line 270 of /usr/include/sys/ioctl.h.

@bitdancer
Copy link
Member

Committed to py3k in r85675, 3.1 in r85676, and 2.7 in r85677.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build
Projects
None yet
Development

No branches or pull requests

1 participant