Skip to content

Cant build ssh3 (for Windows) #155

@fruworg

Description

@fruworg

linux

$ git clone https://github.com/francoismichel/ssh3
$ cd ssh3
$ GOOS=windows GOARCH=amd64 go build -o ssh3.exe cmd/main.go

# github.com/francoismichel/ssh3/util/unix_util
util/unix_util/cmd.go:59:18: cmd.SysProcAttr.Setsid undefined (type *syscall.ProcAttr has no field or method Setsid)
util/unix_util/cmd.go:60:18: cmd.SysProcAttr.Setctty undefined (type *syscallsProcAttr has no field or method Setctty)
util/unix_util/user.go:20:9: undefined: getUser
util/unix_util/user.go:36:18: cmd.SysProcAttr.Credential undefined (type *sysl.SysProcAttr has no field or method Credential)
util/unix_util/user.go:36:40: undefined: syscall.Credential
util/unix_util/user.go:77:18: cmd.SysProcAttr.Credential undefined (type *sysl.SysProcAttr has no field or method Credential)
util/unix_util/user.go:77:40: undefined: syscall.Credential
util/unix_util/user.go:87:9: undefined: userPasswordAuthentication
util/unix_util/user.go:91:9: undefined: passwordAuthAvailable

$ go version
go version go1.23.4 linux/amd64

windows

$ git clone https://github.com/francoismichel/ssh3
$ cd ssh3
$ go build -o ssh3.exe cmd/ssh3/main.go
             
# github.com/francoismichel/ssh3/util/unix_util
util/unix_util/cmd.go:59:18: cmd.SysProcAttr.Setsid undefined (type *syscall.ProcAttr has no field or method Setsid)
util/unix_util/cmd.go:60:18: cmd.SysProcAttr.Setctty undefined (type *syscallsProcAttr has no field or method Setctty)
util/unix_util/user.go:20:9: undefined: getUser
util/unix_util/user.go:36:18: cmd.SysProcAttr.Credential undefined (type *sysl.SysProcAttr has no field or method Credential)
util/unix_util/user.go:36:40: undefined: syscall.Credential
util/unix_util/user.go:77:18: cmd.SysProcAttr.Credential undefined (type *sysl.SysProcAttr has no field or method Credential)
util/unix_util/user.go:77:40: undefined: syscall.Credential
util/unix_util/user.go:87:9: undefined: userPasswordAuthentication
util/unix_util/user.go:91:9: undefined: passwordAuthAvailable

$ go version
go version go1.23.4 windows/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions