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

Support building on Alpine Linux musl #620

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

Conversation

lhotari
Copy link

@lhotari lhotari commented Dec 18, 2024

Issue #, if available:

Description of changes:

  • fix issue with NULL_BACKTRACE support (there was a typo: NULL_STACKTRACE)
  • support building without libexecinfo (Alpine doesn't have it)
    • move #include <execinfo.h> under ifdef
    • remove #include <execinfo.h> from null_backtrace
  • support linux-musl OSTYPE in bootstrap.sh

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Additional context:

I'm working on Apache Pulsar's Pulsar IO Kinesis Sink connector. In Pulsar, we have applied the glibc workaround in an Alpine image and have run into stability issues. To address this, I'm fixing this by compiling the kinesis_producer binary and embedding this in Pulsar's docker image which is used to run Pulsar IO connectors. Since the Amazon Kinesis Producer library has a way to configure to use a custom kinesis_producer binary, that's how I'm planning to use it in Pulsar. It would be useful for other Alpine users if AWS could provide Alpine support directly out-of-the-box for the amazon-kinesis-producer library. I haven't yet fully tested the Alpine Linux support with the compiled binary since that's currently work-in-progress. I'll update this PR if I find out other incompatibilities in compilation. I'll also share more details later how to compile the binary in Docker with Alpine Linux.

- fix issue with NULL_BACKTRACE support (there was a typo)
- support building without libexecinfo (Alpine doesn't have it)
- support linux-musl OSTYPE
@lhotari
Copy link
Author

lhotari commented Dec 20, 2024

@vincentvilo-aws @lucienlu-aws @chenylee-aws @aakkem Please review and provide feedback. I believe that unblocking Alpine users would be valuable for many Amazon Kinesis Producer Library users.

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

Successfully merging this pull request may close these issues.

1 participant