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

malloc_stats() is unportable #97

Closed
0-wiz-0 opened this issue Sep 27, 2016 · 2 comments
Closed

malloc_stats() is unportable #97

0-wiz-0 opened this issue Sep 27, 2016 · 2 comments

Comments

@0-wiz-0
Copy link

0-wiz-0 commented Sep 27, 2016

src/MemDiags.cpp calls malloc_stats(), which is a GNU extension and does not exist e.g. on NetBSD.
Please only use it on Linux, e.g. by wrapping it in #ifdef __linux__.

@gvansickle
Copy link
Owner

gvansickle commented Sep 28, 2016

Hi @0-wiz-0 ,
I'm guessing you're reporting this against the 0.2.2 tarball? Somebody else reported this a while back (#72), and that whole file has been removed since 0f2b1ca. Definitely see here if you're trying to get ucg working on a BSD; there were a large number of portability improvements made a while back to get ucg running on OSX and FreeBSD, so you'll definitely want to pick up the current master.
...And I guess I should change the "experimental support" to "is supported" on that page.
...And it's probably past time that I roll another release.

@0-wiz-0
Copy link
Author

0-wiz-0 commented Sep 28, 2016

Yes, I filed that bug report against 0.2.2. I looked for malloc_stats in issues, but not for the file name. Good that this is already resolved.
And yes, I'd appreciate a release :-)
Thanks!

@0-wiz-0 0-wiz-0 closed this as completed Sep 28, 2016
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