[PATCH] AIX & unicodeobject.h

Art Haas arthur.haas at westgeo.com
Thu Aug 10 16:46:15 EDT 2000


I hit a bit of a snag building Python-1.6b1 on AIX 4.3 ...

xlc -O2 -qmaxmem=-1 -I../../Parser/../Include -I.. -DHAVE_CONFIG_H \
	-c -o myreadline.o ../../Parser/myreadline.c
"../../Parser/../Include/unicodeobject.h", line 81.10: 1506-213 \
	(S) Macro name HAVE_WCHAR_H cannot be redefined.
"../../Parser/../Include/unicodeobject.h", line 81.10: 1506-358 \
	(I) "HAVE_WCHAR_H" is defined on line 173 of ../config.h.
make[1]: *** [myreadline.o] Error 1
make[1]: Leaving directory `/omega/1.8.1/rel/wgc/python.1.6/src/Python-1.6b1/pwr/Parser'
make: *** [Parser] Error 2

Here's a simple patch that remedies this. Just another `#ifndef' block ...

--- Python-1.6b1/Include/unicodeobject.h.orig	Fri Aug  4 11:44:40 2000
+++ Python-1.6b1/Include/unicodeobject.h	Thu Aug 10 15:02:08 2000
@@ -78,7 +78,9 @@
    PyUnicode_AsWideChar(). */
 
 #ifdef HAVE_USABLE_WCHAR_T
-# define HAVE_WCHAR_H
+# ifndef HAVE_WCHAR_H
+#  define HAVE_WCHAR_H
+# endif
 #endif
 
 #ifdef HAVE_WCHAR_H

Better solutions probably exist. Thanks to everyone working on Python.
-- 
###############################
# Art Haas
# (713) 689-2417
###############################



More information about the Python-list mailing list