-
Notifications
You must be signed in to change notification settings - Fork 934
Search for lstat in sys/stat.h #895
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
Conversation
According to the Linux man page, both sys/stat.h and unistd.h are supposed to be included before using lstat, and, at least on some machines, sys/stat.h is actually the necessary one.
|
Has this been fixed upstream? |
|
Probably not. Where is upstream? |
|
mpich is the upstream source. https://www.mpich.org/ In general we pull romio changes directly from mpich. |
|
I will go report it there, then. I don't consider this to be a high priority patch, as I seem to be the only one this causes problems for, so I'm just going to close this and let the fix get pulled into OpenMPI by whatever your usual merging procedure is. |
|
Thanks. Once they have fixed it up stream please let us know and we will pull the appropriate commit and PR it to the affected release branches. |
|
Upstream commit: http://git.mpich.org/mpich.git/commitdiff/7b8bd055dfdeb |
|
@hjelmn You want to pull that from ROMIO's upstream? |
|
Will merge the upstream commit once jenkins finishes. |
|
The commit appears with his name and email address. Is that not sufficient? |
|
Doh, I totally missed that. (we'll still cite him in NEWS, too) |
|
I agree on the NEWS. BTW, to get the upstream patch I downloaded the email version from mpich then changed all the paths to point at where romio is in Open MPI and updated the commit message to indicate the original commit. This patch then was applied using git am. This preserved not only the original author but also the signed off by line. |
ompi_proc_find_and_add:
According to the Linux man page, both sys/stat.h and unistd.h are
supposed to be included before using lstat, and, at least on some
machines, sys/stat.h is actually the necessary one.
This fixes a strange linking failure on one of my systems for reasons that I'm not completely clear on.