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/crypto/ssh/terminal: build failing on linux/amd64: undefined: unix.IoctlGetTermios #22963

Closed
Ullaakut opened this issue Dec 1, 2017 · 1 comment
Milestone

Comments

@Ullaakut
Copy link

@Ullaakut Ullaakut commented Dec 1, 2017

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

go version go1.9 linux/amd64

Does this issue reproduce with the latest release?

Yes

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

Alpine

What did you do?

I start in a fresh context, from golang:alpine in a Docker container.
I install and run glide, which basically downloads all of my dependencies, one of which uses golang.org/x/terminal.
When trying to build, I get a few compile errors and my binary cannot be built.

What did you expect to see?

Compilation successful.

What did you see instead?

Step 6/12 : RUN go build -o cameradar
 ---> Running in 4d75c30fe5bc
# github.com/EtixLabs/cameradar/vendor/golang.org/x/crypto/ssh/terminal
../vendor/golang.org/x/crypto/ssh/terminal/util.go:30:12: undefined: unix.IoctlGetTermios
../vendor/golang.org/x/crypto/ssh/terminal/util.go:38:18: undefined: unix.IoctlGetTermios
../vendor/golang.org/x/crypto/ssh/terminal/util.go:54:12: undefined: unix.IoctlSetTermios
../vendor/golang.org/x/crypto/ssh/terminal/util.go:64:18: undefined: unix.IoctlGetTermios
../vendor/golang.org/x/crypto/ssh/terminal/util.go:75:9: undefined: unix.IoctlSetTermios
../vendor/golang.org/x/crypto/ssh/terminal/util.go:80:13: undefined: unix.IoctlGetWinsize
../vendor/golang.org/x/crypto/ssh/terminal/util.go:98:18: undefined: unix.IoctlGetTermios
../vendor/golang.org/x/crypto/ssh/terminal/util.go:107:12: undefined: unix.IoctlSetTermios
../vendor/golang.org/x/crypto/ssh/terminal/util.go:112:3: undefined: unix.IoctlSetTermios
The command '/bin/sh -c go build -o cameradar' returned a non-zero code: 2

See TravisCI build logs.
See Dockerfile.
See glide.lock.

Similar error logs as in #22688

The version of golang.org/x/crypto that it uses is the commit 2509b142fb2b797aa7587dad548f113b2c0f20ce.

@gopherbot gopherbot added this to the Unreleased milestone Dec 1, 2017
@Ullaakut Ullaakut changed the title x/crypto/ssh/terminal: build failing on alpine: undefined: unix.IoctlGetTermios x/crypto/ssh/terminal: build failing on linux/amd64: undefined: unix.IoctlGetTermios Dec 1, 2017
@bradfitz
Copy link
Contributor

@bradfitz bradfitz commented Dec 1, 2017

Your version of x/sys is too old. You need to sync up to at least golang/sys@4ed4d40 where it was added.

@bradfitz bradfitz closed this Dec 1, 2017
@golang golang locked and limited conversation to collaborators Dec 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.