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

Error when compiling #9

Open
SpiralBL0CK opened this issue May 8, 2021 · 3 comments
Open

Error when compiling #9

SpiralBL0CK opened this issue May 8, 2021 · 3 comments

Comments

@SpiralBL0CK
Copy link

SpiralBL0CK commented May 8, 2021

kernel:5.4.0-72-generic
os:ubuntu 18.04.5 lts
when compiling:
go build
../../internal/collection/pty.go:12:2: missing go.sum entry for module providing package github.com/mitchellh/go-ps (imported by github.com/guardicore/ipcdump/internal/collection); to add:
go get github.com/guardicore/ipcdump/internal/[email protected]
and when go get github.com/guardicore/ipcdump/internal/[email protected] i get:
github.com/iovisor/gobpf/bcc
../../../go/pkg/mod/github.com/iovisor/[email protected]/bcc/module.go:98:40: too many arguments in call to _Cfunc_bpf_module_create_c_from_string
have (_Ctype_char, number, **_Ctype_char, _Ctype_int, _Ctype__Bool, nil)
want (
_Ctype_char, _Ctype_uint, **_Ctype_char, _Ctype_int, _Ctype__Bool)
../../../go/pkg/mod/github.com/iovisor/[email protected]/bcc/module.go:230:28: too many arguments in call to _C2func_bcc_func_load
have (unsafe.Pointer, _Ctype_int, *_Ctype_char, *_Ctype_struct_bpf_insn, _Ctype_int, *_Ctype_char, _Ctype_uint, _Ctype_int, *_Ctype_char, _Ctype_uint, nil)
want (unsafe.Pointer, _Ctype_int, *_Ctype_char, *_Ctype_struct_bpf_insn, _Ctype_int, *_Ctype_char, _Ctype_uint, _Ctype_int, *_Ctype_char, _Ctype_uint)

@angrybunny123
Copy link

hi did you manage to solve this issue? am having the same compilation error as you.

@SpiralBL0CK
Copy link
Author

Hello sorry for late response nope i didnt manage to solve it

@icarusglider
Copy link

Please see #1 for fix, this resolved the issue when setting up collection on my Ubuntu 20.04

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

3 participants