-
Notifications
You must be signed in to change notification settings - Fork 3
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
FreeBSD: Cannot compile due to unresolved import of: AF_NETLINK, AF_PACKET and accept4 #3
Comments
Thanks for reproting. It seems there is no AF_NETLINK & AF_PACEKT, but i find it strange that you do not have access to accept4 on freebsd as it should be available https://doc.rust-lang.org/libc/x86_64-unknown-freebsd/libc/fn.accept4.html Most possibly AF_NETLINK & AF_PACKET will need be linux only flags and for accept4 i need to check libc version |
Ok accept4 has been added recently to libc rust-lang/libc#546 |
I can test on FreeBSD and Linux, if you need |
@Norbytus Could you please check that you can build with new libc |
Are these failing tests persistently failing? I will need to investigate what's wrong with tests then. |
I did it tommorow. |
@Alexander255 ping. I would appreciate some help with BSD sockets :) |
Doing a quick read over It would be very useful to have a For the second error I believe @DoumanAsh has already fixed the problem in the mean time 😀 |
@Alexander255 That's what i suspected... Still i'm not sure should we have test that is trying to connect to some remote host instead |
I add Norbytus@7c7f4d3 options for reuse addres and port, and run ktrace(strace) i get some time it's good some no. |
And many people use fcntl for block stream in BSD |
@DoumanAsh: I guess we could connect @Norbytus: It's weird that adding
|
@Alexander255 four 8 is google DNS, right? Hm... well connecting to google DNS seems to be more or less reliable. So i suppose we can go with it. |
I'm not particularity happy about the choice either, but how many probably-reliable guaranteed-static-IPv4 TCP services do you know? Suggesting Google DNS was pretty much by default and is technically an abuse of their service. 🙂 |
@Norbytus I pushed update to use google DNS could you please try it out? @Alexander255 Yeah, i understand. I just asked cuz i saw port 53 :) |
@Norbytus ping |
I'm sorry. Only today had senn message from @DoumanAsh. So did pull. And it's ok. But time at time has error, but now on tcp and tcp6 test. |
No problem. I think it is just github mentions are case sensitive and that's why you didn't see. Anyway good that now it works on FreeBSD. |
Can't build on FreeBSD.
The text was updated successfully, but these errors were encountered: