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
Usage of sys/sysctl.h #479
Comments
Thanks. Can you point out which usage of |
afaik, the entire file so any use will just result in a FTBFS. |
I don't see really problematic cases here: that https://github.com/grame-cncm/faust/search?q=sysctl.h&unscoped_q=sysctl.h Do you see any? |
well:
and faust/architecture/scheduler.cpp Line 34 in 4762c9c
this seems to be an unconditional include (not protected by an |
but if course i don't really know which files are actually used in which contexts. but i have no idea if using faust might trigger the inclusion of (e.g.) |
a well, here goes: $ sudo find /usr/include/ -path "*sys/sysctl.h" -delete
$ faust2jackconsole --scheduler lowCut.dsp
lowCut.dsp.cpp:17567:10: fatal error: sys/sysctl.h: No such file or directory
17567 | #include <sys/sysctl.h>
| ^~~~~~~~~~~~~~
compilation terminated. if i remove the i guess the include is really only needed on i don't know about |
Right. Should be fixed in 1b90710 |
just noticed that faust/compiler/generator/tools.cpp Lines 88 to 91 in 8e76600
is there any specific reason to include @sletz should i open a separate (new) ticket? |
Probably a typo, |
actually you will need to include a header file for the definition of so you could just replace the includes: --- faust-2.30.5.orig/compiler/generator/tools.cpp
+++ faust-2.30.5/compiler/generator/tools.cpp
@@ -87,7 +87,7 @@ size_t cache_line_size()
#else
#warning Unrecognized platform
-#include <sys/sysctl.h>
+#include <cstddef>
size_t cache_line_size()
{
return 0; |
OK, thanks. |
Forwarding a bug that was reported against the Debian package, but which i believe is of general concern:
Version 2.32 of glibc will not ship the
sysctl()
function and the<sys/sysctl.h>
header any more.sysctl
itself has been deprecated in Linux and will be removed.faust is using it, so will start FTBFS when distributions switch to glibc-2.32.
glibc-2.32 was released last week, so i guess problems will start to appear sooner rather than later.
The text was updated successfully, but these errors were encountered: