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

Unable to Run Program - Lack of .c file to define functions declared in the bpf.h file. #1

Open
Bhargav05160 opened this issue Jun 29, 2023 · 3 comments

Comments

@Bhargav05160
Copy link

Bhargav05160 commented Jun 29, 2023

Hello, I am currently trying to run this repository on my Linux Virtual Machine. However, I am getting undefined reference errors for functions declared in bpf/bpf.h. I am thinking this may be because the repository does not have a .c file that has corresponding definitions for the function declarations in bpf/bpf.h, but I might be wrong. Could you please clarify this issue? How can I get the program running?

@ngsrinivas
Copy link
Contributor

Hi @Bhargav05160, could you please post the error message you're receiving while building here? I feel like there is either a package that can be installed or a library inclusion that should solve your issue. Having an exact error message could help.

@Bhargav05160
Copy link
Author

Sorry for the delay in posting this. I was on vacation during the 4th of July weekend... had an awesome time visiting natural areas in California. Here is the error message:
image

@ngsrinivas
Copy link
Contributor

Could you retry the command but without the angular brackets around the libbpf.a filename?

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