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

OpenBSD: No EPROTO errno #259

Closed
rennis250 opened this issue Mar 28, 2019 · 4 comments
Closed

OpenBSD: No EPROTO errno #259

rennis250 opened this issue Mar 28, 2019 · 4 comments

Comments

@rennis250
Copy link

Hello,

There are a few locations in the code that now check for an EPROTO result (EPROTO is from the nix crate). EPROTO is not available via nix on OpenBSD, so the build fails, causing newer versions of the previously working glium/glutin to not build. I will try to read on how to correct this, but I am not familiar enough yet.

Best,
Rob

@elinorbgr
Copy link
Member

Have the C libwayland-client.so been ported to OpenBSD? And if so what does it use in place of EPROTO?

@rennis250
Copy link
Author

There was some work on porting it:

https://github.com/jasperla/openbsd-wip/tree/master/x11/wayland-protocols
https://github.com/jasperla/openbsd-wip/tree/master/x11/wayland

but not since almost a year at the latest.

For the time being, I am using an older version of Glium (v0.20), which depends on wayland-client v0.12. That builds and works for me here.

My quick search about OpenBSD's EPROTO shows that it was added in 6.2 (https://man.openbsd.org/OpenBSD-6.2/errno).

Looking at the code for nix, it seems rather that they just don't include EPROTO when compiling it on OpenBSD, so I will notify them:

https://github.com/nix-rust/nix/blob/7bcd9d2318602553c6bd917a4e552a580f9156bb/src/errno.rs

Sorry for the noise!

--Rob

@rennis250
Copy link
Author

Issue opened: nix-rust/nix#1039

@rennis250
Copy link
Author

Actually, I was wrong about the whole EPROTO thing and need to correct the misinformation I spread. It turns out EPROTO and other new errnos have been available in OpenBSD since 6.2. Nix master was recently upgraded to account for that: nix-rust/nix#1036

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

2 participants