-
Notifications
You must be signed in to change notification settings - Fork 6k
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
error: cannot take the address of an rvalue of type 'FILE *' when building on OpenBSD #4145
Comments
Hi, could you please test PR #4149 ? |
btw, it works on Linux, and it does not get the address of |
Well, it turns out it does not work on a few versions of gcc/Linux:
So, even the |
If you check the code, it attempts to change the level-1 file (fd) and use The whole point for passing the address of |
Thanks! The patch from PR #4149 makes |
On line 137 of log.c (and a few lines after that), netdata tries to get the address of
stdout
and co., which is a compilation error on OpenBSD (see issue title), and is not technically within C specifications.I have some experience developing in C and could probably put a patch together which uses freopen(3), as suggested by the musl developer in the mailing list link above. Should I investigate patching it myself, or is this a trivial enough change that you'd rather just do it yourself?
The text was updated successfully, but these errors were encountered: