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 program startup of the static binary #3526

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

tobim
Copy link
Member

@tobim tobim commented Sep 18, 2023

The recent addition of the s3 connector causes the linker to add symbols from the AWS crypto abstraction layer library. This lib uses the dlopen and dlclose functions even when built as a static library - which is possible. What's more, the return value of those functions is asserted, causing the tenzir executables to abort during initialization.

The good news is that this can be worked around by disabling the problematic assert. For that we pull a patch that does exactly that from an open upstream pull request.

Fixes https://github.com/tenzir/issues/issues/885.

The recent addition of the s3 connector causes the linker to add
symbols from the AWS crypto abstraction layer library. This lib
uses the `dlopen` and `dlclose` functions even when built as a
static library - which is possible. What's more, the return value
of those functions is asserted, causing the tenzir executables to
abort during initialization.

The good news is that this can be worked around by disabling the
problematic assert. For that we pull a patch that does exactly that
from an open upstream pull request.
@tobim tobim added the bug Incorrect behavior label Sep 18, 2023
@tobim tobim requested a review from dit7ya September 18, 2023 19:43
Copy link
Member

@dit7ya dit7ya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm this fixes the linked issue.

@tobim tobim merged commit 0972167 into main Sep 19, 2023
19 of 20 checks passed
@tobim tobim deleted the topic/fix-static-binary-with-aws-c-cal branch September 19, 2023 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
2 participants