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

Compilation issue on ubuntu #1

Open
srikanth007m opened this issue Oct 13, 2022 · 3 comments
Open

Compilation issue on ubuntu #1

srikanth007m opened this issue Oct 13, 2022 · 3 comments

Comments

@srikanth007m
Copy link

@yasuoka I have tried compiling your tool on ubuntu and ended with below issue. Is this tool developed for BSD Linux?

cc -fPIC -g -Wall -shared -o mleakdetect.so mleakdetect.c
mleakdetect.c:18:10: fatal error: sys/tree.h: No such file or directory
18 | #include <sys/tree.h>
| ^~~~~~~~~~~~
compilation terminated.

@yasuoka
Copy link
Owner

yasuoka commented Oct 14, 2022

Yes, it's currently for OpenBSD. I suppose it needs some work for run on Linux.

@srikanth007m
Copy link
Author

@yasuoka Is it possible to make it work on Linux. Can you help make the changes?

@yasuoka
Copy link
Owner

yasuoka commented Oct 17, 2022

@yasuoka Is it possible to make it work on Linux. Can you help make the changes?

I'm not sure for this moment. I tried that on last weekend. I made it compiled but it doesn't start with a SEGV. So it seems I need to study LD_PRELOAD on Linux.

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