hashicorp/serf

go build serf failed on the arm64 machine

ChinX opened this issue · 1 comments

ChinX commented

I found an error when go build serf on arm64 machine.

# github.com/hashicorp/go.net/ipv4
/root/go/pkg/mod/github.com/hashicorp/go.net@v0.0.1/ipv4/sockopt_asmreqn_unix.go:20:12: undefined: getsockopt
/root/go/pkg/mod/github.com/hashicorp/go.net@v0.0.1/ipv4/sockopt_asmreqn_unix.go:41:42: undefined: setsockopt
/root/go/pkg/mod/github.com/hashicorp/go.net@v0.0.1/ipv4/sockopt_unix.go:29:12: undefined: getsockopt
/root/go/pkg/mod/github.com/hashicorp/go.net@v0.0.1/ipv4/sockopt_unix.go:51:42: undefined: setsockopt
# github.com/hashicorp/go.net/ipv6
/root/go/pkg/mod/github.com/hashicorp/go.net@v0.0.1/ipv6/sockopt_rfc3493_unix.go:105:42: undefined: setsockopt
/root/go/pkg/mod/github.com/hashicorp/go.net@v0.0.1/ipv6/sockopt_rfc3493_unix.go:114:42: undefined: setsockopt
/root/go/pkg/mod/github.com/hashicorp/go.net@v0.0.1/ipv6/sockopt_rfc3542_unix.go:54:12: undefined: getsockopt
/root/go/pkg/mod/github.com/hashicorp/go.net@v0.0.1/ipv6/sockopt_rfc3542_unix.go:75:12: undefined: getsockopt
/root/go/pkg/mod/github.com/hashicorp/go.net@v0.0.1/ipv6/sockopt_rfc3542_unix.go:82:42: undefined: setsockopt

But I do it successful after switched the package "hashicorp/mdns" version from 1.0.0 to 1.0.1 in go.mod.

ChinX commented

I am using serf in our project, I am looking forward to having a new release to fix this bug.