Skip to content

Does not build with musl libc -- qsort_r not available thereΒ #4311

Closed
@eschnett

Description

@eschnett

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 its qsort fallback instead, or use the C11 qsort_s function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions