Skip to content
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

Fix build on macOS 10.15 and earlier #4674

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

barracuda156
Copy link

@barracuda156 barracuda156 commented Jul 30, 2024

Resolved issues:

Resolves #4673

Description of changes:

Currently the build is broken on every macOS from Catalina down, both with gcc and clang.

This fixes it.
Verified on 10.6, but we know it works on other systems too.

@lrstewart
Copy link
Contributor

The team has discussed this PR and concluded that s2n-tls won't be able to support MacOS versions that Apple does not support. MacOS Catalina has been unsupported by Apple since 2022. We have no mechanism to reproduce your problem or test this fix, and couldn't guarantee that s2n-tls would continue to work with Catalina in the future even if we fixed this issue.

With that in mind, redefining "__DARWIN_ALIGN32" based on MacOS version is a fairly specific and complex solution to this problem and not one I'm comfortable merging, especially not without automated testing. I did see this, however. Would switching from "= { 0 }" to memset for initialization fix your problem? That would essentially be a no-op change, and not Catalina-specific.

Copy link

github-actions bot commented Oct 1, 2024

This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@barracuda156
Copy link
Author

Sorry, I will return to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants