-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to build bpftool from source #17
Comments
Hi, thanks for the report! |
Yes, I tried it on 5.4 and 5.11. |
+1 |
Thanks for the reports! Since d97300d, kernel 5.15 is a requirement for building bpftool with all its features. The definition may also be missing if the kernel of the host has not been compiled with Workarounds:
I'll try to submit a fix upstream. |
diff --git a/src/Makefile b/src/Makefile
index bffd4e7..5fc927e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -125,7 +125,7 @@ all: $(OUTPUT)bpftool
BFD_SRCS = jit_disasm.c
-SRCS = $(filter-out $(BFD_SRCS),$(wildcard *.c))
+SRCS = $(filter-out $(BFD_SRCS) pids.c,$(wildcard *.c))
ifeq ($(feature-libbfd),1)
LIBS += -lbfd -ldl -lopcodes |
I haven't managed to find a fix myself (I was missing the |
This can compile successfully but everytime I execute |
same issue. +1 |
I re-submitted the patches today (at https://lore.kernel.org/bpf/[email protected]/t/#u). [EDIT: v2 at https://lore.kernel.org/bpf/[email protected]/t/#u] |
Apologies, this had taken more time than I expected - or than it should have. At last, we have the fix merged in bpf-next. I'll pull it in this repo at the next sync. |
Some previous version failed to build on old kernels, see issue libbpf/bpftool#17 for more information. Signed-off-by: Mahe Tardy <[email protected]>
Previous version failed to build on old kernels, see libbpf/bpftool#17 for more information. Signed-off-by: Mahe Tardy <[email protected]>
Previous version failed to build on old kernels, see libbpf/bpftool#17 for more information. Signed-off-by: Mahe Tardy <[email protected]>
The text was updated successfully, but these errors were encountered: