Help AIX 5.3 build on Python-3.1a2

Jeroen Ruigrok van der Werven asmodai at in-nomine.org
Sun Apr 26 05:14:54 EDT 2009


-On [20090425 19:17], Aahz (aahz at pythoncraft.com) wrote:
>In article <acf6ccbd-fcdb-4141-b2ef-0c83cae99622 at x5g2000yqk.googlegroups.com>,
> <pruebauno at latinmail.com> wrote:
>>"Include/token.h", line 42.9: 1506-213 (S) Macro name TILDE cannot be
>>redefined.
>>"Include/token.h", line 42.9: 1506-358 (I) "TILDE" is defined on line
>>250 of /usr/include/sys/ioctl.h.
>
>Can you try trimming down the compilation to a small reproducible case?

I thought it was already clear from what was provided?

Include/token.h has a #define for TILDE and apparently AIX has a #define for
TILDE in /usr/include/sys/ioctl.h as well. So you can a redefinition.

One way around it, depending how AIX protects headers might be to change
Include/token.h to either:

#if defined(_SYS_IOCTL_H_)
#undef TILDE
#define TILDE		32
#endif

or

#if defined(aix)
#undef TILDE
#define TILDE		32
#endif

-- 
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B
A rose is a rose is a rose is a rose...



More information about the Python-list mailing list