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

undefined reference to `backtrace' on Alpine Linux #29

Open
devararendy opened this issue Oct 4, 2022 · 1 comment
Open

undefined reference to `backtrace' on Alpine Linux #29

devararendy opened this issue Oct 4, 2022 · 1 comment

Comments

@devararendy
Copy link

devararendy commented Oct 4, 2022

Hi @chronoxor Thank you for providing us this library.
But unfortunately got issue when compiling under alpine (using Docker):

nginx:stable_alpine
https://hub.docker.com/layers/library/nginx/stable-alpine/images/sha256-5bc90c961f2ef45c7ed6057e5c55e09d5f6b700a9d2e7e824c5e3709f329a61d?context=explore

I have install libexecinfo-dev so it has execinfo.h

but:
in function CppCommon::StackTrace::StackTrace(int)': stack_trace.cpp:(.text+0x419): undefined reference to backtrace'

image

is there any solution for building under alpine ?
Thank You very much

@chronoxor
Copy link
Owner

It seems it is a known Alpine Linux issue - Backtrace not available within Alpine containers #1904. For this system StackTrace should be implemented using libunwind.

Due to lack of time not sure if this will be fixed soon, but properly implemented PR is welcome.

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

No branches or pull requests

2 participants