smartnic / Independent-bpf-execution

Compiling and running basic bpf programs outside the linux source code
0 stars 1 forks source link

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

Open Bhargav05160 opened 1 year ago

Bhargav05160 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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