Description of problem: libbpf.so shipped in the new standalone libbpf package lacks proper dependency on libelf.so, leading to errors when linking against it. See: https://lore.kernel.org/selinux/156936589827.661145.16998799838921887816.stgit@chester/T/ Version-Release number of selected component (if applicable): libbpf-0.0.3-1.fc32.x86_64 How reproducible: Always. Steps to Reproduce: 1. dnf install -y libbpf-devel 2. ldd /usr/lib64/libbpf.so Actual results: linux-vdso.so.1 (0x00007ffd2cbfc000) libc.so.6 => /lib64/libc.so.6 (0x00007f575beec000) /lib64/ld-linux-x86-64.so.2 (0x00007f575c0db000) Expected results: When I compile libbpf from source manually on Rawhide, I get: linux-vdso.so.1 (0x00007ffc7e713000) libelf.so.1 => /lib64/libelf.so.1 (0x00007f6767a53000) libc.so.6 => /lib64/libc.so.6 (0x00007f676788a000) libz.so.1 => /lib64/libz.so.1 (0x00007f6767870000) /lib64/ld-linux-x86-64.so.2 (0x00007f6767a91000) Additional info: Is likely related to the position of -lelf on the gcc command line (but I was unable to reproduce it with gcc 9.2.1-1 on rawhide, so I'm confused): https://github.com/libbpf/libbpf/pull/72
I have the scratch build with the fix in here: https://koji.fedoraproject.org/koji/taskinfo?taskID=37855661 please let me know if it's working for you thanks, jirka
Yes, it works. I get the expected ldd output and also the selinux-testsuite builds fine with it. Thanks!
pushed to build libbpf-0.0.3-2.fc32