kayrus/gof5

Build does not work on Ubuntu 20.04.

juzipar opened this issue · 1 comments

Hi,
I've tried to build the code on Ubuntu 20.04 and get the following error:

[~/git/gof5]$ make                                                                                                                                                                                                                               [master]
gofmt -s -w cmd pkg
go vet -mod=vendor ./...
# golang.zx2c4.com/wireguard/rwcancel
vendor/golang.zx2c4.com/wireguard/rwcancel/rwcancel_stub.go:7:6: RWCancel redeclared in this block
	previous declaration at vendor/golang.zx2c4.com/wireguard/rwcancel/rwcancel.go:20:6
vendor/golang.zx2c4.com/wireguard/rwcancel/rwcancel_stub.go:10:18: (*RWCancel).Cancel redeclared in this block
	previous declaration at vendor/golang.zx2c4.com/wireguard/rwcancel/rwcancel.go:109:6
go build kernel.org/pub/linux/libs/security/libcap/psx: invalid flag in #cgo LDFLAGS: -Wl,-wrap,pthread_create
make: *** [Makefile:29: vet] Error 2

My system info:
$ uname -r
5.4.0-050400-generic
$ go version
go version go1.13.8 linux/amd64

Is there any way to fix this problem?

@juzipar you need to use at least go 1.17. The latest release includes bumped wireguard dependency, since the latest wintun 0.14 driver doesn't work with an older package version and the minimal go requirements are now 1.17
Alternatively you may want to use prebuilt binaries available at https://github.com/kayrus/gof5/releases/latest