libbpfgo icon indicating copy to clipboard operation
libbpfgo copied to clipboard

LIBBPF_MAJOR_VERSION missing

Open SamYuan1990 opened this issue 2 years ago • 1 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?

SamYuan1990 avatar Nov 27 '23 14:11 SamYuan1990

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.

rafaeldtinoco avatar Nov 27 '23 16:11 rafaeldtinoco

Closing this because it doesn't seem like a problem.

geyslan avatar Apr 08 '24 12:04 geyslan