Source: bpfcc Version: 0.24.0+ds-1 Severity: important X-Debbugs-Cc: sudipm.mukher...@gmail.com Tags: ftbfs Usertags: libbpf1
Dear Maintainer, bpfcc FTBFS with libbpf 1.0.0 (available in experimental). These are some of the errors from the build log: In file included from /<<PKGBUILDDIR>>/src/cc/bcc_libbpf_inc.h:5, from /<<PKGBUILDDIR>>/src/cc/libbpf.c:57: /usr/include/bpf/btf.h: In function ‘btf_enum64_value’: /usr/include/bpf/btf.h:496:25: error: invalid use of undefined type ‘const struct btf_enum64’ 496 | return ((__u64)e->val_hi32 << 32) | e->val_lo32; | ^~ /<<PKGBUILDDIR>>/src/cc/libbpf.c: In function ‘libbpf_bpf_map_create’: /<<PKGBUILDDIR>>/src/cc/libbpf.c:304:28: error: invalid use of undefined type ‘struct bpf_create_map_attr’ 304 | p.map_flags = create_attr->map_flags; | ^~ /<<PKGBUILDDIR>>/src/cc/libbpf.c: In function ‘bcc_create_map’: /<<PKGBUILDDIR>>/src/cc/libbpf.c:376:10: error: variable ‘attr’ has initializer but incomplete type 376 | struct bpf_create_map_attr attr = {}; | ^~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/src/cc/libbpf.c:376:30: error: storage size of ‘attr’ isn’t known 376 | struct bpf_create_map_attr attr = {}; | ^~~~ /<<PKGBUILDDIR>>/src/cc/libbpf.c: In function ‘libbpf_bpf_prog_load’: /<<PKGBUILDDIR>>/src/cc/libbpf.c:640:37: error: invalid use of undefined type ‘const struct bpf_load_program_attr’ 640 | p.expected_attach_type = load_attr->expected_attach_type; | ^~ In file included from /<<PKGBUILDDIR>>/src/cc/bcc_libbpf_inc.h:5, from /<<PKGBUILDDIR>>/src/cc/libbpf.c:57: /usr/include/bpf/btf.h: In function ‘btf_enum64_value’: removing 'bcc-0.24.0' (and everything under it) /usr/include/bpf/btf.h:496:25: error: invalid use of undefined type ‘const struct btf_enum64’ 496 | return ((__u64)e->val_hi32 << 32) | e->val_lo32; | ^~ /<<PKGBUILDDIR>>/src/cc/libbpf.c: In function ‘bpf_attach_xdp’: /<<PKGBUILDDIR>>/src/cc/libbpf.c:1549:9: warning: implicit declaration of function ‘bpf_set_link_xdp_fd’; did you mean ‘bpf_link__fd’? [-Wimplicit-function-declaration] 1549 | ret = bpf_set_link_xdp_fd(ifindex, progfd, flags); | ^~~~~~~~~~~~~~~~~~~ | bpf_link__fd -- Regards Sudip