-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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