WireGuard / wgctrl-go

Package wgctrl enables control of WireGuard interfaces on multiple platforms.
https://godoc.org/golang.zx2c4.com/wireguard/wgctrl
MIT License
753 stars 84 forks source link

trying to install on synology NAS Getting errors. #107

Closed cocoonkid closed 3 years ago

cocoonkid commented 3 years ago

Linux 3.10.105 #25556 SMP Thu Mar 18 12:57:19 CST 2021 x86_64 GNU/Linux synology_braswell_916+

/opt/bin/gcc go version go1.10 linux/amd64

 go get golang.zx2c4.com/wireguard/wgctrl
# golang.org/x/crypto/curve25519/internal/field
/var/services/homes/user/go/src/golang.org/x/crypto/curve25519/internal/field/fe.go:328:12: undefined: bits.Mul64
/var/services/homes/user/go/src/golang.org/x/crypto/curve25519/internal/field/fe_generic.go:17:12: undefined: bits.Mul64
/var/services/homes/user/go/src/golang.org/x/crypto/curve25519/internal/field/fe_generic.go:23:12: undefined: bits.Mul64
/var/services/homes/user/go/src/golang.org/x/crypto/curve25519/internal/field/fe_generic.go:24:11: undefined: bits.Add64
/var/services/homes/user/go/src/golang.org/x/crypto/curve25519/internal/field/fe_generic.go:25:10: undefined: bits.Add64
# github.com/mdlayher/socket
/var/services/homes/user/go/src/github.com/mdlayher/socket/conn.go:187:14: f.SyscallConn undefined (type *os.File has no field or method SyscallConn)
Time: 0h:00m:04s
mdlayher commented 3 years ago

Your version of Go is too old, you need at least Go 1.12+ but preferably Go 1.16.