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

Doesn't compile on openbsd due to EV_RECEIPT #593

Closed
kpcyrd opened this issue Apr 26, 2017 · 5 comments
Closed

Doesn't compile on openbsd due to EV_RECEIPT #593

kpcyrd opened this issue Apr 26, 2017 · 5 comments

Comments

@kpcyrd
Copy link

kpcyrd commented Apr 26, 2017

I'm trying to use a library that depends on openbsd, I'm having trouble getting this to work:

[user@sanity mio]$ cargo build
warning: unused manifest key: package.categories
   Compiling mio v0.6.6 (file:///home/user/prog/mio)
error[E0425]: cannot find value `EV_RECEIPT` in module `libc`
  --> src/sys/unix/kqueue.rs:84:21
   |
84 |                     libc::EV_RECEIPT;
   |                     ^^^^^^^^^^^^^^^^ not found in `libc`

error[E0425]: cannot find value `EV_RECEIPT` in module `libc`
   --> src/sys/unix/kqueue.rs:144:44
    |
144 |             let filter = libc::EV_DELETE | libc::EV_RECEIPT;
    |                                            ^^^^^^^^^^^^^^^^ not found in `libc`

error: aborting due to 2 previous errors

error: Could not compile `mio`.

To learn more, run the command again with --verbose.
[user@sanity mio]$ 

As far as I know EV_RECEIPT is not available on openbsd. I'd appreciate a workaround :)

@carllerche
Copy link
Member

Welp... ideally we could add openbsd to the CI run and fix it that way...

@carllerche
Copy link
Member

It doesn't look like trust supports openbsd :( https://github.com/japaric/trust

@sateffen
Copy link

sateffen commented May 30, 2017

Just linking it here, because it's exactly the same issue, just in a repository, that has nothing to do with mio: ogham/rust-ansi-term#27

@jan-schreib
Copy link

I ran into the same issue and addressed it upstream.
So OpenBSD-current (which becomes 6.2) now has EV_RECEIPT and EV_DISPATCH.
I also opened this pullrequest, that should bring it up to speed.
However, there is another issue which will probably take some time.

Is there a chance to use a workaround for now?

@carllerche
Copy link
Member

Closing due to inactivity. I'm not sure if this is still an issue or not. In general, Mio should gain better platform CI.

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

No branches or pull requests

4 participants