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

syscall(2) deprecated on macOS sierra. #11

Open
hbowden opened this issue Sep 25, 2016 · 1 comment
Open

syscall(2) deprecated on macOS sierra. #11

hbowden opened this issue Sep 25, 2016 · 1 comment
Labels

Comments

@hbowden
Copy link
Owner

hbowden commented Sep 25, 2016

Will have to research on the new interface macOS provides instead of syscall(2). Here is an example error:

error: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported;
please switch to a supported interface. For SYS_kdebug_trace use
kdebug_signpost(). [-Werror,-Wdeprecated-declarations]
return (syscall(symbol, (*array[0]), array[1], (*array[2]), array[3]));
@hbowden hbowden added the bug label Sep 25, 2016
hbowden added a commit that referenced this issue Sep 25, 2016
This is a temporary fix for issue #11 until a more permanent fix is implemented.
@hbowden
Copy link
Owner Author

hbowden commented Oct 24, 2016

After researching it looks like the only options are to find the old syscall(2) implementation inside the XNU source and pull that into nextgen. However the XNU syscall(2) implementation is spread across several files and is confusing and complicated. Second the XNU syscall(2) implementation is licensed under the Apple Public Source License, which goes against the project goals of only using BSD or BSD like licenses. The second option is to reimplement syscall(2) myself. However the current syscall(2) implementation while deprecated will probably remain for at least some time. Other deprecated functions in macOS have remained for several years after first being deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant