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

Fail to build dump_bpf_policy binary on x86 box #30

Closed
sfc-gh-hyu opened this issue Apr 16, 2021 · 1 comment
Closed

Fail to build dump_bpf_policy binary on x86 box #30

sfc-gh-hyu opened this issue Apr 16, 2021 · 1 comment

Comments

@sfc-gh-hyu
Copy link
Contributor

sfc-gh-hyu commented Apr 16, 2021

Hi team, I am able to build libkafel.a on my x86 box, but failed when dump_bpf_policy binary is trying to link with libkafel.a Here is the error message:

cc -std=gnu11 -I../../include -Wall -Wextra -Werror -O2 -Wno-error=type-limits main.o disasm.o print.o ../../libkafel.a -o dump_policy_bpf
/home/linuxbrew/.linuxbrew/bin/ld: ../../libkafel.a(libkafel.o): in function `kafel_yyerror':
arm_syscalls.c:(.text+0x6463): undefined reference to `YYUSE'
collect2: error: ld returned 1 exit status

Any idea what's going on or how to debug this? I can provide more system info if this is environment related. Thanks for your help!

@sfc-gh-hyu
Copy link
Contributor Author

Ah it looks like 32768d3 fix the issue. I will close this issue.

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

1 participant