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

Fix compile error on FreeBSD. #11

Merged
merged 1 commit into from
Oct 13, 2024
Merged

Conversation

gabi-250
Copy link
Contributor

This fixes a compile error on FreeBSD:

error[E0412]: cannot find type `RawNonZeroPid` in module `rustix::process`
  --> src/internals/prctl.rs:62:70
   |
62 | pub fn is_tracer_present() -> anyhow::Result<Option<rustix::process::RawNonZeroPid>> {
   |                                                                      ^^^^^^^^^^^^^ not found in `rustix::process`

For more information about this error, try `rustc --explain E0412`.
error: could not compile `secmem-proc` (lib) due to 1 previous error

It looks like RawNonZeroPid was removed in rustix 0.38.0-alpha.1.

This fixes a compile error on FreeBSD:

```
error[E0412]: cannot find type `RawNonZeroPid` in module `rustix::process`
  --> src/internals/prctl.rs:62:70
   |
62 | pub fn is_tracer_present() -> anyhow::Result<Option<rustix::process::RawNonZeroPid>> {
   |                                                                      ^^^^^^^^^^^^^ not found in `rustix::process`

For more information about this error, try `rustc --explain E0412`.
error: could not compile `secmem-proc` (lib) due to 1 previous error
```

It looks like `RawNonZeroPid` was [removed] in `rustix 0.38.0-alpha.1`.

[removed]: bytecodealliance/rustix@eb68ba3

Signed-off-by: Gabi Moldovan <[email protected]>
@niluxv niluxv merged commit a69b8e3 into niluxv:master Oct 13, 2024
12 checks passed
@niluxv
Copy link
Owner

niluxv commented Oct 13, 2024

Thanks! Seems like I need CI for FreeBSD.

zydou pushed a commit to zydou/arti that referenced this pull request Oct 15, 2024
The FreeBSD fixes were released in [`secmem-proc 0.3.4`].

Closes #1686

[`secmem-proc 0.3.4`]: niluxv/secmem-proc#11
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 this pull request may close these issues.

2 participants