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
Comments
"Include/token.h", line 42.9: 1506-236 (W) Macro name TILDE has been |
Is this still a problem or can the issue be closed? |
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. |
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 |
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 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 |
Committed to py3k in r85675, 3.1 in r85676, and 2.7 in r85677. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: