Hi Sudip,

suricata FTBFS with libbpf 1.0.0 (available in experimental).
This is the first error from the build log:

util-ebpf.c: In function 'EBPFLoadFile':
util-ebpf.c:375:17: error: implicit declaration of function 
'bpf_program__set_socket_filter'; did you mean 'bpf_program__set_log_level'? 
[-Werror=implicit-function-declaration]
   375 |                 bpf_program__set_socket_filter(bpfprog);
       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       |                 bpf_program__set_log_level
util-ebpf.c:377:17: error: implicit declaration of function 
'bpf_program__set_xdp'; did you mean 'bpf_program__set_type'? 
[-Werror=implicit-function-declaration]
   377 |                 bpf_program__set_xdp(bpfprog);
       |                 ^~~~~~~~~~~~~~~~~~~~
       |                 bpf_program__set_type


Thanks for reporting this. This issue is likely due to libbpf 1.0.0 removing previously deprecated functions, which are still used in Suricata's eBPF code. I have found a backwards-compatible fix and am currently in contact with upstream.

Best regards
Sascha

Reply via email to