Hi Gregor, On Wed, Sep 07, 2022 at 02:53:49PM +0200, Gregor Jasny wrote: > Hello Sudip, > > thanks for the report. > > On 02.09.22 01:19, Sudip Mukherjee wrote: > > Package: v4l-utils > > Version: 1.22.1-4 > > Severity: important > > Tags: ftbfs > > X-Debbugs-Cc: sudipm.mukher...@gmail.com > > Usertags: libbpf1 > > > > Dear Maintainer, > > > > v4l-utils FTBFS with libbpf 1.0.0 (available in experimental). > > This is the first error from the build log: > > > > bpf_load.c: In function 'load_and_attach': > > bpf_load.c:66:38: error: storage size of 'load_attr' isn't known > > 66 | struct bpf_load_program_attr load_attr; > > | ^~~~~~~~~ > > bpf_load.c:69:38: error: invalid application of 'sizeof' to incomplete type > > 'struct bpf_load_program_attr' > > 69 | memset(&load_attr, 0, sizeof(struct > > bpf_load_program_attr)); > > | ^~~~~~ > > bpf_load.c:78:14: warning: implicit declaration of function > > 'bpf_load_program_xattr' [-Wimplicit-function-declaration] > > 78 | fd = bpf_load_program_xattr(&load_attr, bpf_log_buf, > > LOG_BUF_SIZE); > > | ^~~~~~~~~~~~~~~~~~~~~~ > > bpf_load.c:66:38: warning: unused variable 'load_attr' [-Wunused-variable] > > 66 | struct bpf_load_program_attr load_attr; > > | ^~~~~~~~~ > > bpf_load.c: In function 'build_raw_map': > > bpf_load.c:113:14: warning: implicit declaration of function > > 'bpf_create_map_node' [-Wimplicit-function-declaration] > > 113 | fd = bpf_create_map_node(map->def.type, > > | ^~~~~~~~~~~~~~~~~~~ > > bpf_load.c: In function 'load_maps': > > bpf_load.c:179:47: warning: implicit declaration of function > > 'bpf_create_map_in_map_node' [-Wimplicit-function-declaration] > > 179 | bpf_file->map_fd[i] = > > bpf_create_map_in_map_node( > > | > > ^~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > Sean, would you be able to port the existing code to libbpf 1.0? I noticed > that the current code already triggers deprecation warnings with libbpf > 0.8.0.
This needs porting, I'll add it to my todo list. Having said that, I am working on an entirely new tooling in rust but this is not near completion yet: https://github.com/seanyoung/cir Sean