oracle / bpftune

bpftune uses BPF to auto-tune Linux systems
Other
685 stars 59 forks source link

compilation issues on debian #14

Closed alan-maguire closed 1 year ago

alan-maguire commented 1 year ago

as reported by https://github.com/MmartinezV2 in https://github.com/oracle-samples/bpftune/issues/11#top

Two problems for build:

On file include/bpftune/bpftune.bpf.h fails because NULL is undefined.
Solved by adding at the begining of the file:
#ifndef NULL
#define NULL (0)
#endif
File bpf/libbpf_version.h does not exist
Solved by commenting line 54 #include <bpf/libbpf_version.h> in file src/libbpftune.c