[Python-Dev] Oops on AIX
Guido van Rossum
guido@python.org
Fri, 30 Jun 2000 18:10:30 -0500
> After the CVS commit storm that occurred during the last 3 days,
> I wanted to validate the current build on AIX. And I am stalled.
>
> I am not sure, but it seems like the errors I get relate with the
> latest 64-bit support patches, and I don't dare to suggest corrections
> in this area, so I welcome any help...
let me suggest patches... If these work, please check them in:
> xlc_r -O -I./../Include -I.. -DHAVE_CONFIG_H -c methodobject.c
> "methodobject.c", line 183.36: 1506-280 (E) Function argument assignment between types "void*" and "struct _object*(*)(struct _object*,struct _object*)" is not allowed.
Index: methodobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/methodobject.c,v
retrieving revision 2.28
diff -c -r2.28 methodobject.c
*** methodobject.c 2000/06/30 15:01:00 2.28
--- methodobject.c 2000/06/30 22:09:55
***************
*** 180,186 ****
if (x == -1)
return -1;
}
! y = _Py_HashPointer(a->m_ml->ml_meth);
if (y == -1)
return -1;
x ^= y;
--- 180,186 ----
if (x == -1)
return -1;
}
! y = _Py_HashPointer((void*)(a->m_ml->ml_meth));
if (y == -1)
return -1;
x ^= y;
> xlc_r -O -I./../Include -I.. -DHAVE_CONFIG_H -c ./posixmodule.c
> "./posixmodule.c", line 293.16: 1506-213 (S) Macro name STAT cannot be redefined.
> "./posixmodule.c", line 293.16: 1506-358 (I) "STAT" is defined on line 170 of /usr/include/sys/dir.h.
> make: 1254-004 The error code from the last command is 1.
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.138
diff -c -r2.138 posixmodule.c
*** posixmodule.c 2000/06/29 21:12:41 2.138
--- posixmodule.c 2000/06/30 22:10:39
***************
*** 285,290 ****
--- 285,291 ----
#endif
/* choose the appropriate stat and fstat functions and return structs */
+ #undef STAT
#ifdef MS_WIN64
# define STAT _stati64
# define FSTAT _fstati64
--Guido van Rossum (home page: http://www.python.org/~guido/)