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

Cant build ssh3 (for Windows) #155

Open
fruworg opened this issue Jan 25, 2025 · 0 comments
Open

Cant build ssh3 (for Windows) #155

fruworg opened this issue Jan 25, 2025 · 0 comments

Comments

@fruworg
Copy link

fruworg commented Jan 25, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant