Stuart Henderson <[email protected]> writes: > On 2023/01/18 19:49, Divan Santana wrote: >> Greetings :) >> >> I'm wondering if anyone has attempting to build teleport[1] on openbsd. >> >> (I'm specifically after tsh functionality). >> >> There was a bug[2] about this upstream which was closed due to inactivity. >> >> But perhaps some OpenBSD user has attempting or succeeded to build it. >> >> There is a freebsd port for it. >> >> [1]: https://github.com/gravitational/teleport >> [2]: https://github.com/gravitational/teleport/issues/840 >> [3]: https://www.freshports.org/security/teleport >> > > Try it - the problem with termios mentioned in that ~6-year-old issue > upstream is not likely to be a problem any more, at least on the more > common machine architectures.
I don't know much about building packages. But I tried the below and got these results. git clone https://github.com/gravitational/teleport.git gravitational-teleport cd gravitational-teleport git checkout tags/v11.2.1 -b v11.2.1 CC=clang gmake build/tsh It failed with: #+begin_example # github.com/flynn/u2f/u2fhid ../../go/pkg/mod/github.com/flynn/[email protected]/u2fhid/hid.go:52:22: undefined: hid.Devices ../../go/pkg/mod/github.com/flynn/[email protected]/u2fhid/hid.go:69:22: info.Open undefined (type *hid.DeviceInfo has no field or method Open) # github.com/gravitational/teleport/lib/utils lib/utils/disk.go:43:24: stat.Blocks undefined (type syscall.Statfs_t has no field or method Blocks) lib/utils/disk.go:43:36: stat.Bfree undefined (type syscall.Statfs_t has no field or method Bfree) lib/utils/disk.go:43:58: stat.Blocks undefined (type syscall.Statfs_t has no field or method Blocks) lib/utils/disk.go:110:20: undefined: syscall.S_IWGRP lib/utils/disk.go:111:18: undefined: syscall.S_IXGRP lib/utils/disk.go:119:18: undefined: syscall.S_IWOTH lib/utils/disk.go:120:16: undefined: syscall.S_IXOTH gmake: *** [Makefile:290: build/tsh] Error 2 ds:/home/ds/src/gravitational-teleport:5764$ CGO_ENABLED=1 ds:/home/ds/src/gravitational-teleport:5765$ gmake build/tsh GOOS=openbsd GOARCH=amd64 CGO_ENABLED=1 go build -tags " " -o build/tsh -ldflags '-w -s' -trimpath ./tool/tsh # github.com/flynn/u2f/u2fhid ../../go/pkg/mod/github.com/flynn/[email protected]/u2fhid/hid.go:52:22: undefined: hid.Devices ../../go/pkg/mod/github.com/flynn/[email protected]/u2fhid/hid.go:69:22: info.Open undefined (type *hid.DeviceInfo has no field or method Open) # github.com/gravitational/teleport/lib/utils lib/utils/disk.go:43:24: stat.Blocks undefined (type syscall.Statfs_t has no field or method Blocks) lib/utils/disk.go:43:36: stat.Bfree undefined (type syscall.Statfs_t has no field or method Bfree) lib/utils/disk.go:43:58: stat.Blocks undefined (type syscall.Statfs_t has no field or method Blocks) lib/utils/disk.go:110:20: undefined: syscall.S_IWGRP lib/utils/disk.go:111:18: undefined: syscall.S_IXGRP lib/utils/disk.go:119:18: undefined: syscall.S_IWOTH lib/utils/disk.go:120:16: undefined: syscall.S_IXOTH gmake: *** [Makefile:290: build/tsh] Error 2 #+end_example
