facebookexperimental/ExtendedAndroidTools

struct bpf_load_program_xattr not defined with libbpf v1.0.0

eiselekd opened this issue · 1 comments

I'm building x86_64. The buildsystem uses libbpf with tag v1.0.0.
There struct bpf_load_program_xattr has been removed . However in bpftrace in
bpffeature.cpp you still use struct bpf_load_program_xattr as for
(at least in my build bpf_load_program_xattr is not set).
If I switch to v0.8.1 and add some compiler.h macros I can compile though.
s there some logical missunderstanding?

Hi, thank you for reporting!

Do you build using the provided docker environment ? I just verified that I am able to build successfully using that.

If not, then I wonder whether cmake picks up system libbpf when testing its features when building bpftrace.

In any case, you should not be able to reproduce this anymore: @tnovak updated version of bpftrace we build past bpftrace/bpftrace@ca5a306, which removed support for bpf_load_program_xattr.