AlecAivazis / survey

A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
MIT License
4.07k stars 351 forks source link

OpenIndiana: undefined: syscall.SYS_IOCTL #385

Closed cstes closed 1 year ago

cstes commented 2 years ago

Hello,

On the OpenIndiana operating system, using go version

$ go version go version go1.17 illumos/amd64

I am getting the following error during an attempt to build the github CLI (gh).

I'm looking for help on how to solve this please ?

github.com/AlecAivazis/survey/v2/terminal

../go/pkg/mod/github.com/!alec!aivazis/survey/v2@v2.3.2/terminal/runereader_posi x.go:47:35: undefined: syscall.SYS_IOCTL ../go/pkg/mod/github.com/!alec!aivazis/survey/v2@v2.3.2/terminal/runereader_posi x.go:47:81: undefined: ioctlReadTermios ../go/pkg/mod/github.com/!alec!aivazis/survey/v2@v2.3.2/terminal/runereader_posi x.go:54:35: undefined: syscall.SYS_IOCTL ../go/pkg/mod/github.com/!alec!aivazis/survey/v2@v2.3.2/terminal/runereader_posi x.go:54:81: undefined: ioctlWriteTermios ../go/pkg/mod/github.com/!alec!aivazis/survey/v2@v2.3.2/terminal/runereader_posi x.go:62:35: undefined: syscall.SYS_IOCTL ../go/pkg/mod/github.com/!alec!aivazis/survey/v2@v2.3.2/terminal/runereader_posi x.go:62:81: undefined: ioctlWriteTermios exit status 2 build.go: building task bin/gh failed. gmake: *** [Makefile:17: bin/gh] Error 1

cstes commented 2 years ago

Oops ... looks like a duplicate of https://github.com/AlecAivazis/survey/pull/372