[GH-ISSUE #79] Build fails with undefined: syscall.Termios #61

Closed
opened 2026-02-25 20:32:27 +03:00 by kerem · 2 comments
Owner

Originally created by @TLINDEN on GitHub (Feb 3, 2015).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/79

system: freebsd 9.1, go 1.1

[03.Feb 14:42:24] --- [~/tmp] ---
tom@r4: % export GOPATH=/home/tom/tmp/go

[03.Feb 14:42:44] --- [~/tmp] ---
tom@r4: % mkdir -p $GOPATH/src/github.com/asciinema

[03.Feb 14:43:11] --- [~/tmp] ---
tom@r4: % git clone https://github.com/asciinema/asciinema-cli.git $GOPATH/src/github.com/asciinema/asciinema-cli
Cloning into '/home/scip/tmp/go/src/github.com/asciinema/asciinema-cli'...
remote: Counting objects: 1146, done.
remote: Total 1146 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (1146/1146), 222.60 KiB, done.
Resolving deltas: 100% (532/532), done.

[03.Feb 14:43:13] --- [~/tmp] ---
tom@r4: % cd $GOPATH/src/github.com/asciinema/asciinema-cli

[03.Feb 14:43:13] --- [~/tmp/go/src/github.com/asciinema/asciinema-cli] ---
tom@r4: % gmake deps
go get -d -v ./...
code.google.com/p/gcfg (download)
code.google.com/p/go.crypto (download)
github.com/kr/pty (download)

[03.Feb 14:43:27] --- [~/tmp/go/src/github.com/asciinema/asciinema-cli] ---
tom@r4: % gmake build
go test ./...
warning: building out-of-date packages:
        code.google.com/p/go.crypto/ssh/terminal
        code.google.com/p/gcfg/token
        code.google.com/p/gcfg/scanner
        code.google.com/p/gcfg/types
        code.google.com/p/gcfg
        github.com/kr/pty
installing these packages with 'go test -i ./...' will speed future tests.

?       github.com/asciinema/asciinema-cli      [no test files]
?       github.com/asciinema/asciinema-cli/api  [no test files]
# code.google.com/p/go.crypto/ssh/terminal
../../../code.google.com/p/go.crypto/ssh/terminal/util.go:27: undefined: syscall.Termios
../../../code.google.com/p/go.crypto/ssh/terminal/util.go:32: undefined: syscall.Termios
../../../code.google.com/p/go.crypto/ssh/terminal/util.go:88: undefined: syscall.Termios
# github.com/asciinema/asciinema-cli/util
util/copy.go:34: undefined: FD_SET
util/copy.go:35: undefined: FD_SET
util/copy.go:37: undefined: Select
util/copy.go:47: undefined: FD_ISSET
util/copy.go:72: undefined: FD_ISSET
ok      github.com/asciinema/asciinema-cli/cli  0.005s
FAIL    github.com/asciinema/asciinema-cli/commands [build failed]
?       github.com/asciinema/asciinema-cli/ptyx [no test files]
FAIL    github.com/asciinema/asciinema-cli/terminal [build failed]
?       github.com/asciinema/asciinema-cli/util [no test files]
gmake: *** [test] Error 2
Originally created by @TLINDEN on GitHub (Feb 3, 2015). Original GitHub issue: https://github.com/asciinema/asciinema/issues/79 system: freebsd 9.1, go 1.1 ``` [03.Feb 14:42:24] --- [~/tmp] --- tom@r4: % export GOPATH=/home/tom/tmp/go [03.Feb 14:42:44] --- [~/tmp] --- tom@r4: % mkdir -p $GOPATH/src/github.com/asciinema [03.Feb 14:43:11] --- [~/tmp] --- tom@r4: % git clone https://github.com/asciinema/asciinema-cli.git $GOPATH/src/github.com/asciinema/asciinema-cli Cloning into '/home/scip/tmp/go/src/github.com/asciinema/asciinema-cli'... remote: Counting objects: 1146, done. remote: Total 1146 (delta 0), reused 0 (delta 0) Receiving objects: 100% (1146/1146), 222.60 KiB, done. Resolving deltas: 100% (532/532), done. [03.Feb 14:43:13] --- [~/tmp] --- tom@r4: % cd $GOPATH/src/github.com/asciinema/asciinema-cli [03.Feb 14:43:13] --- [~/tmp/go/src/github.com/asciinema/asciinema-cli] --- tom@r4: % gmake deps go get -d -v ./... code.google.com/p/gcfg (download) code.google.com/p/go.crypto (download) github.com/kr/pty (download) [03.Feb 14:43:27] --- [~/tmp/go/src/github.com/asciinema/asciinema-cli] --- tom@r4: % gmake build go test ./... warning: building out-of-date packages: code.google.com/p/go.crypto/ssh/terminal code.google.com/p/gcfg/token code.google.com/p/gcfg/scanner code.google.com/p/gcfg/types code.google.com/p/gcfg github.com/kr/pty installing these packages with 'go test -i ./...' will speed future tests. ? github.com/asciinema/asciinema-cli [no test files] ? github.com/asciinema/asciinema-cli/api [no test files] # code.google.com/p/go.crypto/ssh/terminal ../../../code.google.com/p/go.crypto/ssh/terminal/util.go:27: undefined: syscall.Termios ../../../code.google.com/p/go.crypto/ssh/terminal/util.go:32: undefined: syscall.Termios ../../../code.google.com/p/go.crypto/ssh/terminal/util.go:88: undefined: syscall.Termios # github.com/asciinema/asciinema-cli/util util/copy.go:34: undefined: FD_SET util/copy.go:35: undefined: FD_SET util/copy.go:37: undefined: Select util/copy.go:47: undefined: FD_ISSET util/copy.go:72: undefined: FD_ISSET ok github.com/asciinema/asciinema-cli/cli 0.005s FAIL github.com/asciinema/asciinema-cli/commands [build failed] ? github.com/asciinema/asciinema-cli/ptyx [no test files] FAIL github.com/asciinema/asciinema-cli/terminal [build failed] ? github.com/asciinema/asciinema-cli/util [no test files] gmake: *** [test] Error 2 ```
kerem closed this issue 2026-02-25 20:32:27 +03:00
Author
Owner

@ku1ik commented on GitHub (Feb 3, 2015):

Thanks for the report.

The minimal tested version of Go is 1.2 (as you can see here: https://travis-ci.org/asciinema/asciinema-cli)

Also, I haven't succeeded building it on FreeBSD so far.
FD_* functions would need to be defined to match the same macros from FreeBSD's C headers. I haven't had time to dig into it. If we solve this we should be good.

<!-- gh-comment-id:72654791 --> @ku1ik commented on GitHub (Feb 3, 2015): Thanks for the report. The minimal tested version of Go is 1.2 (as you can see here: https://travis-ci.org/asciinema/asciinema-cli) Also, I haven't succeeded building it on FreeBSD so far. `FD_*` functions would need to be defined to match the same macros from FreeBSD's C headers. I haven't had time to dig into it. If we solve this we should be good.
Author
Owner

@ku1ik commented on GitHub (May 25, 2015):

Support for building on FreeBSD has been added in c3e7b6b.

<!-- gh-comment-id:105264072 --> @ku1ik commented on GitHub (May 25, 2015): Support for building on FreeBSD has been added in c3e7b6b.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#61
No description provided.