You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and tried building the go using this CC=gcc CGO_CFLAGS="-I /usr/include/bpf" CGO_LDFLAGS="/usr/lib64/libbpf.a" sudo go build -o libbpfgo-prog
I got the error ../../../go/pkg/mod/github.com/aquasecurity/libbpfgo@v0.6.0-libbpf-1.3/map-common.go:51:39: could not determine kind of name for C.BPF_MAP_TYPE_BLOOM_FILTER
The text was updated successfully, but these errors were encountered:
It seems you're using the installed libbpf include and not the one provided by libbpfgo. I guess your system libbpf version hasn't support to BPF_MAP_TYPE_BLOOM_FILTER (introduced by libbpf/libbpf@168cf9b).
Take a look at libbpfgo selftest building process for more information:
Hello. I am working demonstration for ebpf.
This is the go programme
I compiled the bpf using this commande
and tried building the go using this
CC=gcc CGO_CFLAGS="-I /usr/include/bpf" CGO_LDFLAGS="/usr/lib64/libbpf.a" sudo go build -o libbpfgo-prog
I got the error
../../../go/pkg/mod/github.com/aquasecurity/libbpfgo@v0.6.0-libbpf-1.3/map-common.go:51:39: could not determine kind of name for C.BPF_MAP_TYPE_BLOOM_FILTER
The text was updated successfully, but these errors were encountered: