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

libbpf

I get an error on my computer at boot about libbpf.so.0 not being found, it goes rather fast but I managed to write it down.
Code: [Select]
ip: error while loading shared libraries: libbpf.so.0: cannot open shared object file, no such file or directory
/usr/lib/rc/functions line 82: /run.sv.d/failed/: Is a directory

Re: libbpf

Reply #1
I get an error on my computer at boot about libbpf.so.0 not being found, it goes rather fast but I managed to write it down.
Code: [Select]
ip: error while loading shared libraries: libbpf.so.0: cannot open shared object file, no such file or directory
/usr/lib/rc/functions line 82: /run.sv.d/failed/: Is a directory

Same problem here when running the IP command. I tried reinstaling libbpf, but without any result. Does anybody know how this can be fixed, or is it a bug?

Re: libbpf

Reply #2
I'm having the same issues. However, downgrading the libbpf package to  libbpf-0.8.1-1-x86_64.pkg.tar.zst solves the issue as far as I can see (as a temporary workaround)


Re: libbpf

Reply #4
iproute2 will be updated at mirror https://gitea.artixlinux.org/packagesI/iproute2
package source is updated

EDIT: I compiled this pkg, but still broken
Create problems which don't have solution

Re: libbpf

Reply #5
screwed my vpn.
I had to download both files as I was missing the sig for the version i had, and pacman did not like the sig for your repo for my file
Anyone know why?

is it also fair to post this
https://wiki.archlinux.org/title/downgrading_packages


Re: libbpf

Reply #7
new iproute2  update (6.0.0-1) working with libbpf 1.0.1-1 for me.

Re: libbpf

Reply #8
new iproute2  update (6.0.0-1) working with libbpf 1.0.1-1 for me.
but the error is that libbpf.so.0 is missing.

Are you saying that your new iproute2 is making the libbpf.so.0 appear?

Re: libbpf

Reply #9
but the error is that libbpf.so.0 is missing.

Are you saying that your new iproute2 is making the libbpf.so.0 appear?
The new iproute2 will link to the new libbpf library
Code: [Select]
ldd /usr/bin/ip
 linux-vdso.so.1 (0x00007ffc5bcbf000)
 libbpf.so.1 => /usr/lib/libbpf.so.1 (0x00007f7ac0ecf000)
 libelf.so.1 => /usr/lib/libelf.so.1 (0x00007f7ac0eb4000)
 libmnl.so.0 => /usr/lib/libmnl.so.0 (0x00007f7ac0eac000)
 libbsd.so.0 => /usr/lib/libbsd.so.0 (0x00007f7ac0e95000)
 libcap.so.2 => /usr/lib/libcap.so.2 (0x00007f7ac0e89000)
 libc.so.6 => /usr/lib/libc.so.6 (0x00007f7ac0ca2000)
 libz.so.1 => /usr/lib/libz.so.1 (0x00007f7ac0c86000)
 /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f7ac105a000)
 libmd.so.0 => /usr/lib/libmd.so.0 (0x00007f7ac0c79000)
libbpf.so.0 is no longer needed by it.

When libraries get new versions it can break programs that link to them. This is why there are 'testing' and 'gremlins' repo's.
So that breakages can be found and fixed before the packages get moved to the main repos. But for whatever reason some mismatched programs / libraries slip through. Hazard of a rolling distro.

 

Re: libbpf

Reply #10
The new iproute2 will link to the new libbpf library
Code: [Select]
ldd /usr/bin/ip
 linux-vdso.so.1 (0x00007ffc5bcbf000)
 libbpf.so.1 => /usr/lib/libbpf.so.1 (0x00007f7ac0ecf000)
 libelf.so.1 => /usr/lib/libelf.so.1 (0x00007f7ac0eb4000)
 libmnl.so.0 => /usr/lib/libmnl.so.0 (0x00007f7ac0eac000)
 libbsd.so.0 => /usr/lib/libbsd.so.0 (0x00007f7ac0e95000)
 libcap.so.2 => /usr/lib/libcap.so.2 (0x00007f7ac0e89000)
 libc.so.6 => /usr/lib/libc.so.6 (0x00007f7ac0ca2000)
 libz.so.1 => /usr/lib/libz.so.1 (0x00007f7ac0c86000)
 /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f7ac105a000)
 libmd.so.0 => /usr/lib/libmd.so.0 (0x00007f7ac0c79000)
libbpf.so.0 is no longer needed by it.

When libraries get new versions it can break programs that link to them. This is why there are 'testing' and 'gremlins' repo's.
So that breakages can be found and fixed before the packages get moved to the main repos. But for whatever reason some mismatched programs / libraries slip through. Hazard of a rolling distro.
I went to the archive for arch linux and downloaded the pkg libbpf 0.8 and that solved the issue. It was an easy fix. Iproute got an update so I'll mark this as solved I suppose.