Skip to content

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

@pansila

Description

@pansila

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions