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

No 'socketcall' function on FreeBSD (golang.org/x/sys/unix/syscall_freebsd.go) #29158

Closed
yurivict opened this issue Dec 8, 2018 · 2 comments
Closed

Comments

@yurivict
Copy link

yurivict commented Dec 8, 2018

golang.org/x/sys/unix/syscall_freebsd.go doesn't have socketcall.
As a result, this project https://github.com/Dreamacro/clash can't be built on FreeBSD.

===>  Building for clash-0.10.1
# github.com/Dreamacro/clash/proxy/redir
proxy/redir/tcp_freebsd.go:41:12: undefined: socketcall
proxy/redir/tcp_freebsd.go:41:23: undefined: GETSOCKOPT

https://github.com/golang/sys rev.70b957f

@ianlancetaylor
Copy link
Contributor

There are only two systems that support socketcall: linux-386 and linux-s390. And it's not an exported function anyhow. I don't know where tcp_freebsd.go expects to find socketcall, but it's not going to come from the golang.org/x/sys/unix package.

@yurivict
Copy link
Author

yurivict commented Dec 8, 2018

Ahh, I see, no such call exists.

@yurivict yurivict closed this as completed Dec 8, 2018
@golang golang locked and limited conversation to collaborators Dec 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants