I'm facing this issue: could not determine kind of name for C.BPF_MAP_TYPE_BLOOM_FILTER #401
-
Hi, I'm diving into this library for the first time, and I'm pretty new when it comes to eBPF applications. While trying to build one of the apps I'm tinkering with using the
I've got this feeling it might be a versioning or compatibility thing on my end, but I'm a bit stumped. Could someone help me figuring this out?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 14 replies
-
Hey @pratikjagrut, you're see the version used by bpftool. Could you check the system installed one? For more on how to use libbpfgo see #400 (comment). |
Beta Was this translation helpful? Give feedback.
-
@geyslan I don't see libbpf_version.h file at that location. |
Beta Was this translation helpful? Give feedback.
-
I am also experiencing your problem, have you found a solution? ubuntu22.04 |
Beta Was this translation helpful? Give feedback.
Take for instance the flags from tracee building
make tracee
:GOOS=linux CC=clang GOARCH=amd64 CGO_CFLAGS="-I/home/gg/code/tracee/dist/libbpf -I/home/gg/code/tracee/3rdparty/libbpf/include/uapi" CGO_LDFLAGS="-L/home/gg/code/tracee/dist/libbpf/obj -lbpf" go build
For a static building
make tracee STATIC=1
:GOOS=linux CC=clang GOARCH=amd64 CGO_CFLAGS="-I/home/gg/code/tracee/dist/libbpf -I/home/gg/code/tracee/3rdparty/libbpf/include/uapi" CGO_LDFLAGS="-L/home/gg/code/tracee/dist/libbpf/obj -lbpf -lelf -lzstd -lz" go build
Notice that I'm not pointing to the system's libbpf. I suggest you do the same.
For more, check https://github.com/aquasecurity/tracee/blob/main/Makefile#L470-L489