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

[BUG] compile eBPF_proc_image error #793

Open
piaoxuebingfeng opened this issue May 11, 2024 · 1 comment
Open

[BUG] compile eBPF_proc_image error #793

piaoxuebingfeng opened this issue May 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@piaoxuebingfeng
Copy link

Describe the bug
compile eBPF_proc_image error.

To Reproduce
Steps to reproduce the behavior:

cd lmp/eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/
make
BPF .output/schedule_image.bpf.o
GEN-SKEL schedule_image
CC .output/controller.o
CC .output/hashmap.o
CC .output/trace_helpers.o
CC .output/uprobe_helpers.o
BINARY controller
CC .output/proc_image.o
BINARY proc_image
.output/proc_image.o: In function main': /lmp/eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/proc_image.c:972: undefined reference to pthread_join'
/lmp/eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/proc_image.c:980: undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make: *** [Makefile:145: proc_image] Error 1

Expected behavior
compile eBPF_proc_image success.
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Centos8

Additional context
Add any other context about the problem here.

@piaoxuebingfeng piaoxuebingfeng added the bug Something isn't working label May 11, 2024
@zhangzihengya
Copy link
Contributor

可以在Makefile里引一下你系统的pthread.h库

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

No branches or pull requests

2 participants