Suricata eBPF and XDP build error

hi i am trying to compile xdp as mentioed in doc, however i get the following error during build. The same issue is reported here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018914
my kernel version is : 5.4.0-125-generic

util-ebpf.c:360:13: error: implicit declaration of function 'bpf_program__set_ifindex' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
            bpf_program__set_ifindex(bpfprog, ifindex);
            ^
util-ebpf.c:363:13: error: implicit declaration of function 'bpf_map__set_ifindex' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
            bpf_map__set_ifindex(map, ifindex);
            ^
util-ebpf.c:363:13: note: did you mean 'bpf_map__set_priv'?
/usr/local/include/bpf/libbpf.h:244:5: note: 'bpf_map__set_priv' declared here
int bpf_map__set_priv(struct bpf_map *map, void *priv,
    ^
util-ebpf.c:370:29: error: implicit declaration of function 'bpf_program__section_name' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        const char *title = bpf_program__section_name(bpfprog);

Can you open a bug ticket?

How to do that. Also I try it on centos 7 centos 8 Ubuntu 20 same error.

You can create bug issue in our redmine Issues - Suricata - Open Information Security Foundation