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

Build fails for echo-sockmap target #23

Open
salieri11 opened this issue Jan 15, 2020 · 1 comment
Open

Build fails for echo-sockmap target #23

salieri11 opened this issue Jan 15, 2020 · 1 comment

Comments

@salieri11
Copy link

Hi
I am trying to build echo-sockmap target and it fails since echo-sockmap-ebpf.c is not in the repo (it is in the .gitignore and probably was not pushed)
If I try to remove this file from Makefile I get

2019-02-tcp-splice/echo-sockmap.c:43: undefined reference to bpf_reloc_prog_verdict' 2019-02-tcp-splice/echo-sockmap.c:43: undefined reference to bpf_insn_prog_verdict'
2019-02-tcp-splice/echo-sockmap.c:48: undefined reference to bpf_insn_prog_parser_cnt' 2019-02-tcp-splice/echo-sockmap.c:48: undefined reference to bpf_insn_prog_parser'
2019-02-tcp-splice/echo-sockmap.c:57: undefined reference to bpf_insn_prog_verdict_cnt' 2019-02-tcp-splice/echo-sockmap.c:57: undefined reference to bpf_insn_prog_verdict'

Please advise. Thanks!

@jsitnicki
Copy link
Contributor

Hi @salieri11 ,

echo-sockmap-bpf.c file gets generated when building the project with the following command found in Makefile

        clang -Wall -Wextra -O2 -emit-llvm -c \
                echo-sockmap-kern.c \
                -S -o - \
                | llc -march=bpf -filetype=obj -o - \
                | ./venv/bin/python3 tbpf-decode-elf.py /dev/stdin \
                        prog_parser prog_verdict \
                > echo-sockmap-ebpf.c

Try running it manually to see if any of the commands fails and shows any errors.

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