2.4.2 on AIX fails compiling _codecs_cn.c

Paul Watson pwatson at redlinepy.com
Wed Nov 23 18:45:41 EST 2005


Martin v. Löwis wrote:
> Paul Watson wrote:
> 
>> Any ideas why ./Modules/cjkcodecs/_codecs_cn.c fails to compile?  It 
>> appears that the CODEC_STATELESS macro is concatenating 'hz' with a 
>> number and text.
> 
> 
> More likely, hz is already defined to be 100, then forming 100_encode.
> 
> It would be best if you could find out what AIX header file defines
> hz to be 100, and whether there is any way to supress that definition.
> 
> Regards,
> Martin

This is on AIX 4.3.3

$ grep -i _hz $(find . -name m_param.h)
#define _HZ     100    /* ticks per second of the clock        */
#define __hz    HZ     /* Berkeley uses lower case hz          */
#define HZ      _HZ
#define hz      __hz

$ cc_r 2>&1|head -1
   VisualAge C++ Professional / C for AIX Compiler, Version 5



More information about the Python-list mailing list