Hello, According to https://github.com/iovisor/bpftrace/issues/2068
I applied the following patch to make the package build: --- bpftrace-0.14.1.orig/src/btf.cpp +++ bpftrace-0.14.1/src/btf.cpp @@ -225,7 +225,7 @@ std::string BTF::c_def(const std::unorde char err_buf[256]; int err; - dump = btf_dump__new(btf, nullptr, &opts, dump_printf); + dump = btf_dump__new_deprecated(btf, nullptr, &opts, dump_printf); err = libbpf_get_error(dump); if (err) { @@ -496,7 +496,7 @@ std::unique_ptr<std::istream> BTF::get_a char err_buf[256]; int err; - dump = btf_dump__new(btf, nullptr, &opts, dump_printf); + dump = btf_dump__new_deprecated(btf, nullptr, &opts, dump_printf); err = libbpf_get_error(dump); if (err) { @@ -554,7 +554,7 @@ std::map<std::string, std::vector<std::s char err_buf[256]; int err; - dump = btf_dump__new(btf, nullptr, &opts, dump_printf); + dump = btf_dump__new_deprecated(btf, nullptr, &opts, dump_printf); err = libbpf_get_error(dump); if (err) { @@ -648,7 +648,7 @@ std::set<std::string> BTF::get_all_struc char err_buf[256]; int err; - dump = btf_dump__new(btf, nullptr, &opts, dump_printf); + dump = btf_dump__new_deprecated(btf, nullptr, &opts, dump_printf); err = libbpf_get_error(dump); if (err) { -- Héctor Orón -.. . -... .. .- -. -.. . ...- . .-.. --- .--. . .-.