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

mallinfo is not supported on MUSL systems. #84

Closed
paudley opened this issue May 29, 2022 · 1 comment
Closed

mallinfo is not supported on MUSL systems. #84

paudley opened this issue May 29, 2022 · 1 comment

Comments

@paudley
Copy link

paudley commented May 29, 2022

Hi,
The mallinfo() function and struct are not available on MUSL based libc systems; by design not omission. The file "lib/mm/memlock.c" calls it on line 190. Is there a workaround for this usage?

@zkabelac
Copy link
Contributor

Solved upstream with this patch (so it should be compiled only with glibc):

https://listman.redhat.com/archives/lvm-devel/2022-August/024290.html

(And upstream also switched to use mallinfo2() since mallinfo() is deprecated by glibc).

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