gh-154271: Define _XOPEN_SOURCE=600 on Solaris to enable socket ancillary data and forkserver#154273
Open
serhiy-storchaka wants to merge 1 commit into
Open
gh-154271: Define _XOPEN_SOURCE=600 on Solaris to enable socket ancillary data and forkserver#154273serhiy-storchaka wants to merge 1 commit into
serhiy-storchaka wants to merge 1 commit into
Conversation
serhiy-storchaka
requested review from
AA-Turner,
corona10,
emmatyping,
erlend-aasland and
itamaro
as code owners
July 20, 2026 15:37
… ancillary data and forkserver Solaris declares the socket ancillary-data API (CMSG_*, sendmsg(), recvmsg()) only under _XOPEN_SOURCE >= 600. __EXTENSIONS__ keeps the other platform features. This enables the forkserver start method. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
serhiy-storchaka
force-pushed
the
solaris-xopen-source
branch
from
July 20, 2026 15:47
87a92c1 to
21d8670
Compare
Member
Author
|
@kulikjak, could you please look at this and verify if it is a correct change for real Solaris? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Solaris/illumos the X/Open socket ancillary-data API (
CMSG_*,sendmsg(),recvmsg()) is declared only under_XOPEN_SOURCE>=600, butconfigure.acleft it undefined there (historically because it hides other features — gh-57208, bpo-1759169). So the socket module built withoutsendmsg/recvmsg, makingmultiprocessing.reduction.HAVE_SEND_HANDLEFalse and theforkserverstart method unavailable.Define
_XOPEN_SOURCE=600on Solaris;__EXTENSIONS__(fromAC_USE_SYSTEM_EXTENSIONS) re-enables the platform features it would otherwise hide — the same combination the OpenIndiana system Python builds with. Verified on OpenIndiana (illumos):sendmsg/recvmsg/CMSG_*are built, forkserver becomes available, full build clean, andtest_socket/test_multiprocessing_forkserver/test_concurrent_futurespass.Related: GH-154272 (test-robustness fix for platforms that genuinely lack forkserver).
🤖 Generated with Claude Code