Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Fails on FreeBSD i386: undefined: processes #28

Open
yurivict opened this issue Feb 9, 2018 · 2 comments
Open

Fails on FreeBSD i386: undefined: processes #28

yurivict opened this issue Feb 9, 2018 · 2 comments

Comments

@yurivict
Copy link

yurivict commented Feb 9, 2018

vendor/github.com/mitchellh/go-ps/process.go:31:9: undefined: processes
vendor/github.com/mitchellh/go-ps/process.go:39:9: undefined: findProcess

Found in the FreeBSD port for this project: https://github.com/hashicorp/nomad

@mjarkk
Copy link

mjarkk commented Feb 16, 2019

Can confirm, when compiling a project using gox that is using this package it shows the same errors:

7 errors occurred:
--> netbsd/arm error: exit status 2
Stderr: # github.com/jesseduffield/lazygit/vendor/github.com/mitchellh/go-ps
vendor/github.com/mitchellh/go-ps/process.go:31:9: undefined: processes
vendor/github.com/mitchellh/go-ps/process.go:39:9: undefined: findProcess

--> netbsd/amd64 error: exit status 2
Stderr: # github.com/jesseduffield/lazygit/vendor/github.com/mitchellh/go-ps
vendor/github.com/mitchellh/go-ps/process.go:31:9: undefined: processes
vendor/github.com/mitchellh/go-ps/process.go:39:9: undefined: findProcess

--> freebsd/arm error: exit status 2
Stderr: # github.com/jesseduffield/lazygit/vendor/github.com/mitchellh/go-ps
vendor/github.com/mitchellh/go-ps/process.go:31:9: undefined: processes
vendor/github.com/mitchellh/go-ps/process.go:39:9: undefined: findProcess

--> netbsd/386 error: exit status 2
Stderr: # github.com/jesseduffield/lazygit/vendor/github.com/mitchellh/go-ps
vendor/github.com/mitchellh/go-ps/process.go:31:9: undefined: processes
vendor/github.com/mitchellh/go-ps/process.go:39:9: undefined: findProcess

--> freebsd/386 error: exit status 2
Stderr: # github.com/jesseduffield/lazygit/vendor/github.com/mitchellh/go-ps
vendor/github.com/mitchellh/go-ps/process.go:31:9: undefined: processes
vendor/github.com/mitchellh/go-ps/process.go:39:9: undefined: findProcess

--> openbsd/386 error: exit status 2
Stderr: # github.com/jesseduffield/lazygit/vendor/github.com/mitchellh/go-ps
vendor/github.com/mitchellh/go-ps/process.go:31:9: undefined: processes
vendor/github.com/mitchellh/go-ps/process.go:39:9: undefined: findProcess
# github.com/jesseduffield/lazygit/vendor/gopkg.in/src-d/go-git.v4
vendor/gopkg.in/src-d/go-git.v4/worktree_bsd.go:15:36: os.Atimespec undefined (type *syscall.Stat_t has no field or method Atimespec)

--> openbsd/amd64 error: exit status 2
Stderr: # github.com/jesseduffield/lazygit/vendor/github.com/mitchellh/go-ps
vendor/github.com/mitchellh/go-ps/process.go:31:9: undefined: processes
vendor/github.com/mitchellh/go-ps/process.go:39:9: undefined: findProcess
# github.com/jesseduffield/lazygit/vendor/gopkg.in/src-d/go-git.v4
vendor/gopkg.in/src-d/go-git.v4/worktree_bsd.go:15:36: os.Atimespec undefined (type *syscall.Stat_t has no field or method Atimespec)

@mjarkk
Copy link

mjarkk commented Mar 3, 2019

For those who wan't to cross compile this i've made a fork that can be cross compiled: https://github.com/mjarkk/go-ps
It also includes a extra function: ps.Supported() that returns false if the OS/platform is not supported..

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

No branches or pull requests

2 participants