bytedance / bytedance/netcap

failed to build with error "not enough arguments in call to (_C2func_bcc_func_load)"

Open
#4 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
699
Forks
90
PR merge metrics
No merged PRs in 30d

Description

I built and installed bcc from source by following the doc https://github.com/iovisor/bcc/blob/master/INSTALL.md#ubuntu---source but failed to build netcap.

```
Ubuntu 20.04 LTS AMD64
Kernel version: 5.15.112
go version go1.22.6 linux/amd64
```

```
make
# github.com/iovisor/gobpf/bcc
../../go/pkg/mod/github.com/iovisor/gobpf@v0.2.0/bcc/module.go:230:132: not enough 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, *_Ctype_char, _Ctype_int)
make: *** [Makefile:6: netcap] Error 1
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.