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

an error when trying to build an app #175

Open
KarimHassan opened this issue Feb 20, 2024 · 1 comment
Open

an error when trying to build an app #175

KarimHassan opened this issue Feb 20, 2024 · 1 comment

Comments

@KarimHassan
Copy link

KarimHassan commented Feb 20, 2024

Hello,
I have an issue while trying to build my app in Golang It cannot be done.

karim@Karims-MacBook-Pro app % go build

github.com/elastic/gosigar

../../../go/pkg/mod/github.com/elastic/[email protected]/sigar_common_darwin.go:202:23: could not determine kind of name for C.PROC_ALL_PIDS
../../../go/pkg/mod/github.com/elastic/[email protected]/sigar_common_darwin.go:494:34: could not determine kind of name for C.PROC_PIDTASKALLINFO
../../../go/pkg/mod/github.com/elastic/[email protected]/sigar_common_darwin.go:202:7: could not determine kind of name for C.proc_listpids
../../../go/pkg/mod/github.com/elastic/[email protected]/sigar_common_darwin.go:494:7: could not determine kind of name for C.proc_pidinfo

I am using MacBook Apple silicon M3

@KarimHassan
Copy link
Author

The file go/pkg/mod/github.com/elastic/[email protected]/sigar_common_darwin.go is missing #include <libproc.h>

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