-
Notifications
You must be signed in to change notification settings - Fork 121
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
Errors in pid.cpp and posix/close_handles.cpp (macOS): expected id-expression before '(' token
, 'PROC_PPID_ONLY' was not declared in this scope
#452
Comments
expected id-expression before '(' token
, 'PROC_PPID_ONLY' was not declared in this scope
expected id-expression before '(' token
, 'PROC_PPID_ONLY' was not declared in this scope
expected id-expression before '(' token
, 'PROC_PPID_ONLY' was not declared in this scope
expected id-expression before '(' token
, 'PROC_PPID_ONLY' was not declared in this scope
@klemens-morgenstern Could you please have a look, when you get time to? Would be nice to have it fixed. Boost is really important. |
@klemens-morgenstern The whole block of code using |
Does 0ca663c do the trick? |
@klemens-morgenstern Thank you very much, I will try this today and let you know. |
@klemens-morgenstern Yes, 0ca663c fixes
|
@klemens-morgenstern This issue can be closed once 0ca663c is merged to the master. I have opened a separate issue for the remaining error: #461 |
There are two issues here:
PROC_PPID_ONLY
appears in 10.7 SDK, so should be used conditionally:https://github.com/phracker/MacOSX-SDKs/blob/041600eda65c6a668f66cb7d56b7d1da3e8bcc93/MacOSX10.6.sdk/usr/include/sys/proc_info.h
vs
https://github.com/phracker/MacOSX-SDKs/blob/041600eda65c6a668f66cb7d56b7d1da3e8bcc93/MacOSX10.7.sdk/usr/include/sys/proc_info.h#L53
Something got broken about
auto dir_fd = ::dirfd(dir.get());
relatively recently. The chunk was added in Boost 1.80, it seems: 062ac9bI can say for sure that Boost 1.81 builds fine and works on my system, where Boost 1.87 does not. So looks like some later additions or modifications broken it as a side effect. Not yet sure what exactly.
The text was updated successfully, but these errors were encountered: