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

Fix errors when compiling C source files into eBPF bytecode. #129

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

weixiang1862
Copy link
Member

When I execute make generate on my system with Linux headers version 6.2 or higher, I got the following error:

skywalking-rover/bpf/include/list.h:65:8: error: redefinition of 'bpf_list_head'
   65 | struct bpf_list_head {
      |        ^
/usr/include/linux/bpf.h:7136:8: note: previous definition is here
 7136 | struct bpf_list_head {
      |        ^

I followed @mrproliu advice to add a prefix for bpf_list_head struct, it generate go file successfuly, I tested it in my local, it works well, Thanks for your help @mrproliu .
image

…em with Linux headers version 6.2 or higher.
@mrproliu mrproliu self-assigned this Jun 7, 2024
@mrproliu mrproliu added this to the 0.7.0 milestone Jun 7, 2024
@mrproliu mrproliu added the bug Something isn't working label Jun 7, 2024
@wu-sheng wu-sheng merged commit e6ec7e1 into apache:main Jun 7, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants