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

build fail on MS Windows #42

Closed
Raerten opened this issue Jan 9, 2018 · 4 comments
Closed

build fail on MS Windows #42

Raerten opened this issue Jan 9, 2018 · 4 comments

Comments

@Raerten
Copy link
Contributor

Raerten commented Jan 9, 2018

build fail on MS Windows

.\main.go:282:14: undefined: pty.Start
.\main.go:290:31: not enough arguments in call to syscall.Syscall
.\main.go:290:32: undefined: syscall.SYS_IOCTL
.\main.go:290:67: undefined: syscall.TIOCSWINSZ

Compilation finished with exit code 2

go version go1.9.2 windows/amd64, win 10 Pro

@moul
Copy link
Owner

moul commented Feb 28, 2018

Hi @Raerten

I fixed your first problem (PTY) in this branch: https://github.com/moul/sshportal/compare/dev/moul/support-windows?expand=1

However, I now have a new building problem that seems to be already known by the community: mattn/go-sqlite3#27

$ GOOS=windows go build -v -i -o tmp .
github.com/moul/sshportal/vendor/github.com/mattn/go-sqlite3
# github.com/moul/sshportal/vendor/github.com/mattn/go-sqlite3
../../../go/src/github.com/moul/sshportal/vendor/github.com/mattn/go-sqlite3/sqlite3_go18.go:18:10: undefined: SQLiteConn

Is this an option for you to run sshportal in Linux, for instance using a VM or just "Docker for Windows" which supports Linux binary very nicely

@Raerten
Copy link
Contributor Author

Raerten commented Nov 15, 2018

hi @moul
I add PR that fix logs path and filename on Windows.
Now Windows build pass and it work's well.

@moul
Copy link
Owner

moul commented Nov 18, 2018

@Raerten can you update me about what's the current state on windows?

@Raerten
Copy link
Contributor Author

Raerten commented Nov 19, 2018

@moul
I added PR #97. With this path the branch dev/moul/support-windows builds on Windows and it works well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants