Skip to content
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

Missing header files while compiling eBPF samples #37

Open
eloydegen opened this issue Sep 26, 2019 · 1 comment
Open

Missing header files while compiling eBPF samples #37

eloydegen opened this issue Sep 26, 2019 · 1 comment

Comments

@eloydegen
Copy link

I'm trying to build the bpf modules. Inside the kernel/samples/bpf directory I'm running make kbuilddir=/home/kernel/linux-5.3/

The first time, autoconf.h was missing, which I fixed by running make prepare in the kernel source directory.

After this was fixed, I keep running into issues with errors and missing header files. Is there some essential step I am missing?

@eloydegen eloydegen changed the title Compile eBPF samples is missing header files Missing header files while Compiling eBPF samples Sep 26, 2019
@eloydegen eloydegen changed the title Missing header files while Compiling eBPF samples Missing header files while compiling eBPF samples Sep 26, 2019
@netoptimizer
Copy link
Owner

Well... we are working on deprecating the files under kernel/samples/bpf, both because
(1) Makefile dependency on a kernel tree breaks all the time (as you have experienced), and
(2) people should instead use libbpf (instead of ELF-loader in this repo)

We have not removed the files, as they still provide BPF examples that have not been moved to our XDP-tutorial ... yet!

Maybe we need to be more clear in samples/bpf/README.rst ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants