Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Recent libbpf upgrade breaks iproute2. (Read 422 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Recent libbpf upgrade breaks iproute2.

Code: [Select]
INFO  Running: `check-link-consistency -q`...
ERR   -----------------   ----------------   ----------------------
ERR   Package             Problematic File   Unresolved Needed Libs
ERR   -----------------   ----------------   ----------------------
ERR   iproute2 5.19.0-1   /usr/bin/ip        libbpf.so.0          
ERR   iproute2 5.19.0-1   /usr/bin/tc        libbpf.so.0          
ERR   -------------------------------------------------------------
ERR   Total 2 problematic file(s): 2 in 1 package(s) + 0 unassigned.
ERR   -------------------------------------------------------------

# cd /lib; ls -l libbpf.so*
libbpf.so        libbpf.so.1      libbpf.so.1.0.1 
# p -Qo libbpf.so.1
/usr/lib/libbpf.so.1 is owned by libbpf 1.0.1-1
# grep libbpf /var/log/pacman.log
[2022-10-05T09:57:51+0300] [ALPM] upgraded libbpf (0.8.1-1 -> 1.0.1-1)


Re: Recent libbpf upgrade breaks iproute2.

Reply #1
I copied
/lib/libbpf.so
to
/lib/libbpf.so.0

I couldn't connect to wifi without doing this.
Everything seems to be working fine now.
I don't know if this will cause other problems in the future.
I'd be interested in knowing the proper way to handle this problem.

Re: Recent libbpf upgrade breaks iproute2.

Reply #2
I'd be interested in knowing the proper way to handle this problem.
You handled it well enough though a link would suffice.
Code: [Select]
sudo ln -s /usr/lib/libbpf.so /usr/lib/libbpf.so.0
It's a packaging bug. It will get fixed. Packages that rely on that library need rebuilding by the devs.

An arguably more correct way to fix it would be to download the PKGBUILD source files for any packages which rely on the library and build them locally. For instance I just downloaded iproute2 from
https://gitea.artixlinux.org/packagesI/iproute2.git
built and installed it and now it works without the link. And no cruft afterwards.

On my system qemu-system-x86 also relies on libbpf. But I'll only build that if I need to. Probably fixed beforehand.


 

Re: Recent libbpf upgrade breaks iproute2.

Reply #4
All good now, thank you. :)