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

sys/sysctl.h has been deprecated #33

Closed
DDoSolitary opened this issue Oct 27, 2019 · 4 comments · Fixed by #41
Closed

sys/sysctl.h has been deprecated #33

DDoSolitary opened this issue Oct 27, 2019 · 4 comments · Fixed by #41
Assignees

Comments

@DDoSolitary
Copy link

Hello, I'm trying to build this project on Arch Linux and got the following warnings:

In file included from /home/builder/src/powershell/src/powershell-native/src/libpsl-native/src/getppid.cpp:11:
/usr/include/sys/sysctl.h:21:2: warning: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Wcpp]
   21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
      |  ^~~~~~~
[ 24%] Building CXX object src/CMakeFiles/psl-native.dir/geterrorcategory.cpp.o
[ 26%] Building CXX object src/CMakeFiles/psl-native.dir/getinodedata.cpp.o
In file included from /home/builder/src/powershell/src/powershell-native/src/libpsl-native/src/getuserfrompid.cpp:15:
/usr/include/sys/sysctl.h:21:2: warning: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Wcpp]
   21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
      |  ^~~~~~~

This forces me to remove the -Werror flag in CMakeLists.txt to be able to build and will be completely broken when glibc removes the header as stated in the warning.

@DDoSolitary
Copy link
Author

DDoSolitary commented Dec 1, 2019

FWIW, the SYSCTL syscall will be removed in Linux 5.5.

@simonracz
Copy link

Related fix dotnet/coreclr#27048

@iSazonov
Copy link
Contributor

iSazonov commented Dec 6, 2019

@SteveL-MSFT @adityapatwardhan The fix for Linux looks like cosmetic (we do not use sysctl on Linux). Can we unblock Arch Linux before 7.0 GA?

@regulator-g
Copy link

regulator-g commented Jan 7, 2020

Hi guys any update here? I am having the same issue trying to install Powershell on Arch

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

Successfully merging a pull request may close this issue.

5 participants