Open NobinPegasus opened 1 month ago
@NobinPegasus this is most likely due to the gobpf bindings not being updated to fully support the latest version of bcc.
I installed bcc using the guide provided here: https://github.com/iovisor/bcc/blob/master/INSTALL.md#ubuntu---binary
You may need to target an older version of bcc that is compatible with gobpf v0.2.0. Here are the relevant versions that you might need:
For reference, here is a screenshot showing the versions installed on my setup
The iovisor build documentation is not up to date. They normally don't respond to issues. Or response very slow. Here's my configuration:
pegasus@pegasus:~/Documents/ssl-ebpf-projects/snoopy$ uname -a
Linux pegasus 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
pegasus@pegasus:~/Documents/ssl-ebpf-projects/snoopy$ cat go.mod | grep "gobpf"
github.com/iovisor/gobpf v0.2.0
pegasus@pegasus:~/Documents/ssl-ebpf-projects/snoopy$ dpkg -l | grep "bcc"
ii libcc1-0:amd64 14-20240412-0ubuntu1 amd64 GCC cc1 plugin for GDB
@NobinPegasus it doesn't look bcc-tools are installed - I'd start here and install it for your OS https://github.com/iovisor/bcc/blob/master/INSTALL.md and then see if you can compile snoopy.
@tks98 I've the bcc-tools installed
When I try to build using
go build -o snoopy
this command I find the following error: