-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Does not build with musl libc -- qsort_r not available there #4311
Comments
It would great to have a test case in CI that employs |
Here is where it is used: Lines 326 to 349 in 1bef878
See also: Lines 24 to 30 in 1bef878
|
I just tried compilation with I suspect the difference comes from employing different versions of Apparently, So, to reproduce this issue I would need to find an older environment, that ships with an older version of |
I think we are using musl 1.2.5, and Correction: We're using 1.2.2. |
Apparently, Searching over the internet noise, one can find solutions which employs side-effects (i.e. stuff that I don't see great solutions here. |
You could use an autoconf test to see whether Thanks! |
Describe the bug
zstd 1.5.7 does not build on Linux musl system. The linker aborts because
qsort_r
is not defined.Additional context
Add any other context about the problem here.
I am cross-building for Julia; see e.g. JuliaPackaging/Yggdrasil#10577.
musl intentionally does not provide
qsort_r
. zstd should use itsqsort
fallback instead, or use the C11qsort_s
function.The text was updated successfully, but these errors were encountered: