-
Notifications
You must be signed in to change notification settings - Fork 47
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
Linux: <sys/sysctl.h> missing #87
Comments
Ran into this as well on Fedora 37. glibc 2.32 removes sys/sysctl.h. From https://lwn.net/Articles/828210/ :
Since it compiles fine by removing the header from |
Better put some |
* HAVE_SYSCTLBYNAME and HAVE_SYS_SYSCTL could be paired together as sysctlbyname isn't available if sysctl.h isn't available. * Sysctl kernel interface isn't available in linux >=5.5 and the header is absent in glibc-2.32 and musl-1.0.0 Closes: Juniper#87 Signed-off-by: Alfred Wingate <parona@protonmail.com>
* HAVE_SYSCTLBYNAME and HAVE_SYS_SYSCTL could be paired together as sysctlbyname isn't available if sysctl.h isn't available. * Sysctl syscall isn't available in linux >=5.5 and the header is absent in glibc-2.32 and musl-1.0.0 Closes: Juniper#87 Signed-off-by: Alfred Wingate <parona@protonmail.com>
* HAVE_SYSCTLBYNAME and HAVE_SYS_SYSCTL could be paired together as sysctlbyname isn't available if sysctl.h isn't available. * Sysctl syscall isn't available in linux >=5.5 and the header is absent in glibc-2.32 and musl-1.0.0 Closes: Juniper#87 Signed-off-by: Alfred Wingate <parona@protonmail.com>
* HAVE_SYSCTLBYNAME and HAVE_SYS_SYSCTL could be paired together as sysctlbyname isn't available if sysctl.h isn't available. * Sysctl syscall isn't available in linux >=5.5 and the header is absent in glibc-2.32 and musl-1.0.0 Closes: Juniper#87 Signed-off-by: Alfred Wingate <parona@protonmail.com>
When I try to compile on Linux with GCC I get this error:
The only sysctl.h file I have on my system is
linux/sysctl.h
:Simply commenting out the line however helps too.
Maybe add a check for this header file to configure.ac?
On Ubuntu the path
sys/sysctl.h
seems to be only available in the dietlibc package.The text was updated successfully, but these errors were encountered: