-
Notifications
You must be signed in to change notification settings - Fork 86
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
Report that cgo is required for building for FreeBSD #148
Comments
I only have a Linux machine, but do you have cgo disabled by chance? What happens with:
|
I'm trying to build https://github.com/h44z/wg-portal
|
cgo being disabled is the problem. The FreeBSD implementation has a hard dependency on cgo at the moment: package wgfreebsd
// #include <stdlib.h>
// #include <netinet/in.h>
import "C"
// ...
// New creates a new Client and returns whether or not the ioctl interface
// is available.
func New() (*Client, bool, error) { I can at least try to come up with a shim here that shows a useful compilation error like |
I changed
It would be helpful. Thank you. |
Yep, so you can see now that wgctrl-go is building. But ultimately the wg-portal code is not using build tags correctly and assuming Linux/netlink implementation, so your next problem lies there. |
Ok, thank you. P.S: Thank you for the fast response. |
No problem, I'll leave it open for now but edit to make the error more clear. |
OS: FreeBSD 14.2-RELEASE
Wireguard kernel module
if_wg.ko
is loaded.The text was updated successfully, but these errors were encountered: