Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x:net error compiling #45968

Closed
lhirlimann opened this issue May 5, 2021 · 5 comments
Closed

x:net error compiling #45968

lhirlimann opened this issue May 5, 2021 · 5 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@lhirlimann
Copy link

What version of Go are you using (go version)?

[opc@webii ~]$ go version
go version go1.14.12 linux/amd64


Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
[opc@webii ~]$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/opc/.cache/go-build"
GOENV="/home/opc/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/tmp/tmp.t1bKwi98lk"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/golang"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build567281578=/tmp/go-build -gno-record-gcc-switches"

What did you do?

[opc@webii ~]$ go get gitlab.com/yawning/obfs4.git/obfs4proxy
# golang.org/x/net/http2
/tmp/tmp.t1bKwi98lk/src/golang.org/x/net/http2/transport.go:598:14: undefined: tls.Dialer
[opc@webii ~]

@mvdan
Copy link
Member

mvdan commented May 5, 2021

Go 1.14.x is no longer supported. You need Go 1.15 or later. See https://golang.org/pkg/crypto/tls/#Dialer.

If you're stuck on an older Go version, pin older versions of libraries via modules.

@mvdan
Copy link
Member

mvdan commented May 5, 2021

Also, see https://golang.org/wiki/Questions.

@mvdan mvdan added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label May 5, 2021
@ALTree
Copy link
Member

ALTree commented May 5, 2021

As mvdan said, you may need to upgrade your Go version. But anyway its looks like Ian decided to keep 1.14 and below able to compile x/net, see #45946. Closing here.

@ALTree ALTree closed this as completed May 5, 2021
gopherbot pushed a commit to golang/net that referenced this issue May 5, 2021
We have received many reports of build failures using Go 1.14,
enough to make it worth supporting that release even though it
is out of our support window.

For golang/go#45942
For golang/go#45943
For golang/go#45946
For golang/go#45950
For golang/go#45968

Change-Id: I9d6b1762ae622b3e9a5de5b1967264387166b1c7
Reviewed-on: https://go-review.googlesource.com/c/net/+/317069
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
@gopherbot
Copy link

Change https://golang.org/cl/317069 mentions this issue: crypto/tls: don't use tls.Dialer on pre-Go1.15 systems

@ianlancetaylor
Copy link
Contributor

Since this came up five times in 24 hours, I went ahead and patches golang.org/x/net so that it will work with versions of Go before 1.15. That should fix this problem. I still strongly encourage everyone to upgrade to a supported version of Go, and I do not promise that this will not break again in the future.

@golang golang locked and limited conversation to collaborators May 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

5 participants