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

This project seems to be relying on linux specific libc calls #72

Open
zaphar opened this issue Dec 12, 2024 · 0 comments
Open

This project seems to be relying on linux specific libc calls #72

zaphar opened this issue Dec 12, 2024 · 0 comments

Comments

@zaphar
Copy link

zaphar commented Dec 12, 2024

None of the docs indicate that this is a linux only project but it appears to be using linux specific libc functions. When attempting to build on MacOS you get the following error:

error: could not compile `forksrv` (lib) due to 2 previous errors
error[E0432]: unresolved import `nix::libc::__errno_location`
  --> forksrv/src/lib.rs:18:5
   |
18 |     __errno_location, shmat, shmctl, shmget, strerror, IPC_CREAT, IPC_EXCL, IPC_PRIVATE, IPC_RMID,
   |     ^^^^^^^^^^^^^^^^ no `__errno_location` in the root


error: aborting due to 1 previous error


For more information about this error, try `rustc --explain E0432`.

This may be intentional in which case adding a note in the Readme mentioning that it is Linux only would be helpful. If not I have a use for this on MacOS and depending on how my time shakes out I might be able to put see if I can put together a PR to make it work on Mac machines. Perhaps behind a feature flag?

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

No branches or pull requests

1 participant