-
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
default_launcher.h: incorrect declaration of environ for macOS #453
Comments
Is this correct 100% of the time? Or should I just skip the forward decl and include the appropriate header? |
Thank you for responding. If you mean for macOS, then
works for all versions, as of now at least. (While generic declaration works for some versions of macOS, but not for all.) |
@klemens-morgenstern Turned out, it needs a fix, since linking fails otherwise:
|
Empirically, what worked for me was:
With this, boost 1.87 finally compiles. |
It used to work on Macos: https://www.gnu.org/software/gnulib/manual/html_node/environ.html |
Yeah, generic declaration apparently worked on very old macOS (pre-Leopard) and then works on recent ones, but fails on several in between. |
Did you see the #465 ? Can you check it works? I would like to merge this into master before wednesday, so it's in the next release. |
@klemens-morgenstern I am away from my hardware presently, so unfortunately cannot test the build personally (which is why I did not respond there), but given the timeline, I will update patches in my fork and request someone to test that. |
@klemens-morgenstern On a side note, is this next release of |
@klemens-morgenstern We got a confirmation that the build with your fixes works on 10.5 with gcc: https://forums.macrumors.com/threads/macports-development-for-powerpc-10-4-10-5-10-6-unofficial-invitation-to-cooperate.2363509/page-9?post=33776328#post-33776328 |
Could we please fix this as well?
process/include/boost/process/v2/posix/default_launcher.hpp
Lines 34 to 36 in a2d2753
macOS should use a different declaration for
environ
. Usually the correct code looks like this:The text was updated successfully, but these errors were encountered: