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

Cannot build under FreeBSD #339

Closed
iron-udjin opened this issue Jan 4, 2025 · 1 comment
Closed

Cannot build under FreeBSD #339

iron-udjin opened this issue Jan 4, 2025 · 1 comment

Comments

@iron-udjin
Copy link

OS: FreeBSD 14.2-RELEASE

The frontend builds fine. Trying to build binary:

$ make build
cp scripts/wg-portal.service dist
CGO_ENABLED=1 go build -o dist/wg-portal  -ldflags "-w -s -extldflags \"-static\" -X 'github.com/h44z/wg-portal/internal/server.Version=-'"  -tags netgo  cmd/wg-portal/main.go
# github.com/h44z/wg-portal/internal/lowlevel
internal/lowlevel/netlink.go:57:50: undefined: netlink.FAMILY_V4
internal/lowlevel/netlink.go:62:50: undefined: netlink.FAMILY_V6
internal/lowlevel/netlink.go:99:17: undefined: netlink.RuleAdd
internal/lowlevel/netlink.go:103:17: undefined: netlink.RuleDel
internal/lowlevel/netlink.go:107:17: undefined: netlink.RuleList
*** Error code 1

Firstly I thought the issue was in wgctrl-go but it's not. Pleas check this discussion: WireGuard/wgctrl-go#148

Thank you.

@bonddim
Copy link
Collaborator

bonddim commented Jan 4, 2025

Hi,
Readme.
FreeBSD is not supported currently.
PRs are wellcome.

@bonddim bonddim closed this as completed Jan 4, 2025
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