To:sub...@bugs.debian.org
From:piyu...@linux.ibm.com
Subject: bpfcc: fix for failing to build due to kernel changes

Package: bpfcc
Version: 0.29.1+ds-1

The latest version of bpfcc fails to build in a chroot due to kernel changes
to `struct inet_sock`. In the current version of libbpf-tools used by bpfcc,
it lacks the necessary changes to work with the update kernel, as a reason,
the following failure is seen:
$ sbuild --anything-failed-commands='%SBUILD_SHELL' -d unstable bpfcc
https://gist.github.ibm.com/Piyush-Sachdeva/eeb325b4d89c2ccc7f21f28088fde02f

With the below patch this can be fixed and the package build successfully.
https://gist.github.ibm.com/Piyush-Sachdeva/d317c31111acb53747e133c33ec381c4

Refer to libbpf-tools changes here:
https://github.com/iovisor/bcc/pull/4846/commits/a55b5a0c920f3839fbb29b0e8837726f5fe49c72

I am using Debian GNU/Linux 12, kernel 6.1.0-13-powerpc64le

Best Regards,
Piyush Sachdeva

Reply via email to