aquasecurity / libbpfgo

eBPF library for Go. Powered by libbpf.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LIBBPF_MAJOR_VERSION missing

SamYuan1990 opened this issue · comments

LIBBPF_MAJOR_VERSION function is missing on ubuntu server. if we just install ubuntu distribution version as 0.5

root@d82887bb353b:/# dpkg -l | grep libbpf
ii  libbpf-dev:amd64        1:0.5.0-1ubuntu22.04.1                  amd64        eBPF helper library (development files)
ii  libbpf0:amd64           1:0.5.0-1ubuntu22.04.1                  amd64        eBPF helper library (shared library)

it seems the LIBBPF_MAJOR_VERSION is only available after 0.6 version of libbpf, is that possible to avoid manual build for libbpf binary packages?

You shouldn't rely in the distro's libbpf packages before v1.0, IMHO. There was no guarantees (despite upstream being very good in maintaining the API until v1.0). But, still, v0.5 is too old.