Skip to content

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
Discussion options

You must be logged in to vote

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

Replies: 3 comments 14 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@geyslan
Comment options

@ceeeeb-hao
Comment options

@rscampos
Comment options

@ceeeeb-hao
Comment options

@geyslan
Comment options

Comment options

You must be logged in to vote
7 replies
@rscampos
Comment options

@ceeeeb-hao
Comment options

@geyslan
Comment options

Answer selected by geyslan
@tsint
Comment options

@geyslan
Comment options

@tsint
Comment options

@geyslan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants