-
Notifications
You must be signed in to change notification settings - Fork 579
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
advanced03-AF_XDP does not compile missing header file xsk.h #72
Comments
Until issue #72 is resolved remove advanced03-AF_XDP from the main/global Makefile. Signed-off-by: Jesper Dangaard Brouer <[email protected]>
Hmm... this was weird, after above mentioned commit dbd66f1 and compiling all assignments successfully, somehow libbpf were also "re-installed", and now my local
And now, the advanced03-AF_XDP example compiles. |
The libbpf headers got installed into ../libbpf/src/root via invoking make install_headers with DESTDIR=root. This patch change the clean target to also cleanup this DESTDIR, but LIBBPF_DIR is supplied by Makefile that include common.mk, and rm command could be expanded to /root, if Makefile didn't define this, which is too high risk. Thus, change the DESTDIR name to "build" before, changing clean target. I don't think this solves the issue #72, but it helps avoid stale files in this DESTDIR. Signed-off-by: Jesper Dangaard Brouer <[email protected]>
Any update on the above @netoptimizer? As it works fine in my setup |
Notice that in commit 064365f I renamed libbpf install path from
|
I'm going to close this, because this was a case of stalled files from other libbpf submodule checkouts. In commit 064365f have tried to fix this by having I didn't find a way to create a Makefile dependency that can detect that libbpf submodule was changed, and force a rebuild of the libbpf build dir. |
Jesper Dangaard Brouer <[email protected]> writes:
I didn't find a way to create a Makefile dependency that can detect
that libbpf submodule was changed, and force a rebuild of the libbpf
build dir.
I was thinking about trying out git-subtrac:
https://github.com/apenwarr/git-subtrac
This should make it easier to track the submodule dependency correctly;
not sure if it'll solve this particular problem, but it may be worth
testing it?
|
No, please don't. This is a tutorial that needs to be easy to get started with, I don't want people/users to depend on installing a git subcommand like |
Jesper Dangaard Brouer <[email protected]> writes:
No, please don't.
This is a tutorial that needs to be easy to get started with, I don't
want people/users to depend on installing a git subcommand like
```subtrac``` before getting started...
If I understand it correctly, the subtrac binary is only needed for
updating the submodule; cloning should just work (and would not need the
--recurse-submodules); that is part of the appeal :)
|
The advanced03-AF_XDP example/assignment does not compile on my system. It is missing a header include file named:
bpf/xsk.h
.Output is:
The header file
xsk.h
is provided by libbpf, but not under subdirbpf/
. In my git tree the file is located in: libbpf/src/xsk.h and XDP-tutorial does have this (../libbpf/src/
) as object search/link dir in above compile command.I guess libbpf should have "installed" this header file in:
../libbpf/src//root/usr/include/
but it only contains:The text was updated successfully, but these errors were encountered: