bpo-32390: Modify syntax to satisify xlC/gcc compiler requirements on AIX: assignment between types "unsigned long" and "struct fsid_t" is not allowed#4972
Conversation
Error message was: "./Modules/posixmodule.c", line 9328.64: 1506-280 (S) Function argument assignment between types "unsigned long" and "struct fsid_t" is not allowed.
|
Seems 'clang' and AIX xlc and gcc are not agreeing:
|
…r (gcc/xlc) Adding #ifdef logic to distinguish platform
| @@ -0,0 +1,2 @@ | |||
| Correct compiler syntax error on AIX for st.f_fsid addition | |||
| Error message: 1506-280 (S) Function argument assignment between types "unsigned long" and "struct fsid_t" is not allowed. | |||
There was a problem hiding this comment.
I would prefer:
Fix os.statvfs(path) on AIX where the f_fsid member of the statvfs structure is a structure instead of unsigned long. Patch by Michael Felt.
There was a problem hiding this comment.
I did more research and found a way for typedefs to be the same. Added comments in code and summary in News.
If this is not the way you want it documented, please reply.
There was a problem hiding this comment.
A comment in a source file with part of a AIX header being copy-pasted in it is not correct, this should be done in the issue instead.
Please start a discussion in the issue.
|
would like to emphasize, since 96a5e50 AIX cannot compile. This allows compile to continue. p.s. title should be changed, as the syntax is now the same. The "default" action of defining _ALL_SOURCE is undone is closer to the truth. |
Error message was: "./Modules/posixmodule.c", line 9328.64: 1506-280 (S) Function argument assignment between types "unsigned long" and "struct fsid_t" is not allowed.
https://bugs.python.org/issue32390