Repository navigation
I'm facing this issue: could not determine kind of name for C.BPF_MAP_TYPE_BLOOM_FILTER #401
Answered
by
geyslan
pratikjagrut
asked this question in
Q&A
|
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? |
Answered by
geyslan
Jul 18, 2024
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). |
0 replies
|
@geyslan I don't see libbpf_version.h file at that location. |
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


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 buildFor 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 buildNotice 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