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... 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. 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. Thanks. -- Vladimir MARANGOZOV | Vladimir.Marangozov@inrialpes.fr http://sirac.inrialpes.fr/~marangoz | tel:(+33-4)76615277 fax:76615252
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/)
Guido van Rossum wrote:
let me suggest patches... If these work, please check them in:
Yes, they do, thanks! (I can't check them in) There's one error left, occuring at two locations in the signalmodule, but I think the solution would be to have an appropriate cast: "./signalmodule.c", line 359.49: 1506-280 (E) Function argument assignment between types "void*" and "void(*)(int)" is not allowed. "./signalmodule.c", line 363.48: 1506-280 (E) Function argument assignment between types "void*" and "void(*)(int)" is not allowed.
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/)
-- Vladimir MARANGOZOV | Vladimir.Marangozov@inrialpes.fr http://sirac.inrialpes.fr/~marangoz | tel:(+33-4)76615277 fax:76615252
participants (2)
-
Guido van Rossum
-
Vladimir.Marangozov@inrialpes.fr