Artix Linux Forum

Artix Linux => Package management => Topic started by: kenny_w on 05 October 2022, 01:27:54

Title: libbpf
Post by: kenny_w on 05 October 2022, 01:27:54
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
Title: Re: libbpf
Post by: maurict on 05 October 2022, 12:04:34
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?
Title: Re: libbpf
Post by: fab on 05 October 2022, 12:26:14
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)
Title: Re: libbpf
Post by: n3os on 05 October 2022, 14:01:27
Downgrading the libbpf package to  libbpf-0.8.1-1-x86_64.pkg.tar.zst solves the issue

Downgrade work for me too . Thanks

Package from archive archlinux (https://archive.archlinux.org/packages/l/libbpf/)
Title: Re: libbpf
Post by: Arch_user on 05 October 2022, 17:10:20
iproute2 will be updated at mirror https://gitea.artixlinux.org/packagesI/iproute2
package source is updated

EDIT: I compiled this pkg, but still broken
Title: Re: libbpf
Post by: n00b on 05 October 2022, 17:17:27
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
Title: Re: libbpf
Post by: n00b on 05 October 2022, 17:20:44
iproute2 will be updated at mirror https://gitea.artixlinux.org/packagesI/iproute2
package source is updated
what does this mean?
Title: Re: libbpf
Post by: n3os on 05 October 2022, 18:26:26
new iproute2  update (6.0.0-1) working with libbpf 1.0.1-1 for me.
Title: Re: libbpf
Post by: n00b on 05 October 2022, 19:20:20
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?
Title: Re: libbpf
Post by: gripped on 05 October 2022, 19:56:11
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.
Title: Re: libbpf
Post by: kenny_w on 06 October 2022, 00:57:29
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.