grpcui icon indicating copy to clipboard operation
grpcui copied to clipboard

Import Error "lookup of '$ret6' failed

Open OxTaZ0w opened this issue 3 years ago • 3 comments

Hi All,

Trying to install using the below command and it fails as shown - I have also tried downloading the source code and running "go run cmd/grpcui/grpcui.go -plaintext localhost:9190" but get very similar errors.

Im using latest version of Kali on Debian 6.1.27-1 - Any help will be greatly appreciated.

└─# go install github.com/fullstorydev/grpcui/cmd/grpcui@latest

go: downloading github.com/fullstorydev/grpcui v1.3.1 go: downloading github.com/fullstorydev/grpcurl v1.8.6 go: downloading github.com/jhump/protoreflect v1.12.0 go: downloading github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4 go: downloading golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 go: downloading google.golang.org/grpc v1.45.0-dev.0.20220218222403-011544f72939 go: downloading github.com/golang/protobuf v1.5.2 go: downloading google.golang.org/protobuf v1.28.0 go: downloading golang.org/x/net v0.0.0-20200822124328-c89045814202 go: downloading github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021 go: downloading google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 go: downloading golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12 go: downloading github.com/cespare/xxhash/v2 v2.1.1 go: downloading github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4 go: downloading github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1 go: downloading github.com/envoyproxy/protoc-gen-validate v0.1.0 go: downloading golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d go: downloading golang.org/x/text v0.3.7 go: downloading github.com/census-instrumentation/opencensus-proto v0.2.1 go: downloading cloud.google.com/go v0.56.0 # golang.org/x/net/http2 pkg/mod/golang.org/x/[email protected]/http2/frame.go:17:39: error: import error for ‘.golang.org/x/net/http/httpguts.headerValueContainsToken’: lookup of ‘$ret6’ failed 17 | "golang.org/x/net/http/httpguts" | ^ pkg/mod/golang.org/x/[email protected]/http2/frame.go:17:39: error: unrecognized binary operator /root/go/pkg/mod/golang.org/x/[email protected]/http/httpguts/httplex.go:142: error: not enough arguments to return /root/go/pkg/mod/golang.org/x/[email protected]/http/httpguts/httplex.go:144: error: not enough arguments to return

OxTaZ0w avatar Jun 07 '23 11:06 OxTaZ0w

@OxTaZ0w, what version of Go are you using?

jhump avatar Jun 07 '23 13:06 jhump

@jhump , thanks for the reply - It would be the current version available via apt as I was working on a fresh build of Kali so had to install it. I cant get to my rig at the moment as not in the office but what ever the latest version was using "apt install gccgo-go"

Thanks again

OxTaZ0w avatar Jun 07 '23 15:06 OxTaZ0w

The installation stops at the same place for me. Did an apt upgrade just to be sure.

$ go version  
go version go1.18 gccgo (Debian 13.1.0-6) 13.1.0 linux/amd64

I removed Go and installed the newe version from Go SDK. Now i run go version go1.20.7 linux/amd64 . After this the install works again.

n-athan avatar Aug 05 '23 08:08 n-athan