pwnesia/dnstake

Unable to install on MacOs Catalina

CalfCrusher opened this issue · 4 comments

Hello, i'm unable to install the tool on MacOs Catalina

$ go install github.com/pwnesia/dnstake/cmd/dnstake@latest

# golang.org/x/sys/unix
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190924154521-2837fb4f24fe/unix/zsyscall_darwin_amd64.go:28:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190924154521-2837fb4f24fe/unix/zsyscall_darwin_amd64.go:43:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190924154521-2837fb4f24fe/unix/zsyscall_darwin_amd64.go:59:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190924154521-2837fb4f24fe/unix/zsyscall_darwin_amd64.go:75:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190924154521-2837fb4f24fe/unix/zsyscall_darwin_amd64.go:90:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190924154521-2837fb4f24fe/unix/zsyscall_darwin_amd64.go:105:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190924154521-2837fb4f24fe/unix/zsyscall_darwin_amd64.go:121:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190924154521-2837fb4f24fe/unix/zsyscall_darwin_amd64.go:136:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190924154521-2837fb4f24fe/unix/zsyscall_darwin_amd64.go:151:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190924154521-2837fb4f24fe/unix/zsyscall_darwin_amd64.go:166:3: //go:linkname must refer to declared function or variable
../go/pkg/mod/golang.org/x/sys@v0.0.0-20190924154521-2837fb4f24fe/unix/zsyscall_darwin_amd64.go:166:3: too many errors

Any hints?

What's your go version.

go1.18.2 darwin/amd64

go1.18.2 darwin/amd64

Try these for temporary workaround:

$ git clone https://github.com/pwnesia/dnstake
$ cd dnstake/
$ go get -u golang.org/x/sys
$ go build -o $GOPATH/bin/dnstake cmd/dnstake/dnstake.go
$ dnstake -h

Let me know what happens next.

It works now, thanks for the fix ;)