gobpf
gobpf copied to clipboard
Q: Is there a gobpf version that works with bcc as distributed in Linux distributions?
First of all: thanks for creating gobpf!
Problem: The current version of gobpf only seems to work with upstream versions of bcc. This somehow complicates the installation instructions for tools like my socket-connect-bpf project.
Does anybody know if there is a gobpf version that works with bcc as distributed in Linux distributions (e.g. bpfcc-tools on Ubuntu 19.04)?
I think one of the main problems is that bcc/bpf_common.h
was renamed to bcc/bcc_common.h
. Does anybody know if Ubuntu 19.10 will contain a version of bcc with the renamed files?
It does not, I have just tested with Ubuntu 19 and I have the following problem:
$ go get -u github.com/iovisor/gobpf/bcc
# github.com/iovisor/gobpf/bcc
root/go/src/github.com/iovisor/gobpf/bcc/module.go:32:10: fatal error: bcc/bcc_common.h: No such file or directory
32 | #include <bcc/bcc_common.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
Confirming on Fedora 31, same issue
Building from source seems to be a reasonable workaround for the time being, which tells me the distribution packages are behind some breaking changes, if a maintainer sees this, let me know if there is any help desired in getting packaging pipelines up to speed
Same issue in #214