tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

check-shlibs failure on Linux



Hi!

I got the following failure when building net/avahi on Fedora Linux (aarch64):

=> Checking for missing run-time search paths in avahi-0.8nb6
egrep: warning: egrep is obsolescent; using grep -E
ERROR: bin/avahi-browse: missing library: ld-linux-aarch64.so.1
ERROR: bin/avahi-publish: missing library: ld-linux-aarch64.so.1
ERROR: bin/avahi-resolve: missing library: ld-linux-aarch64.so.1
ERROR: lib/libavahi-client.so.3.2.9: missing library: ld-linux-aarch64.so.1
ERROR: lib/libavahi-common.so.3.5.4: missing library: ld-linux-aarch64.so.1
ERROR: lib/libavahi-core.so.7.1.0: missing library: ld-linux-aarch64.so.1
ERROR: sbin/avahi-daemon: missing library: ld-linux-aarch64.so.1
ERROR: sbin/avahi-dnsconfd: missing library: ld-linux-aarch64.so.1
*** Error code 1

The ldd output for one of the binaries shows this:

$ ldd work/.destdir/usr/pkg/bin/avahi-browse
        linux-vdso.so.1 (0x0000ffffbb098000)
        libavahi-client.so.3 => /lib64/libavahi-client.so.3 (0x0000ffffbaff0000)
        libdbus-1.so.3 => /usr/pkg/lib/libdbus-1.so.3 (0x0000ffffbaf70000)
        libavahi-common.so.3 => /lib64/libavahi-common.so.3 (0x0000ffffbaf20000)
        libgdbm.so.6 => /usr/pkg/lib/libgdbm.so.6 (0x0000ffffbaed0000)
        libc.so.6 => /lib64/libc.so.6 (0x0000ffffbad00000)
        /lib/ld-linux-aarch64.so.1 (0x0000ffffbb050000)

The file does exist:

-rwxr-xr-x. 1 root root 878008  4. Dez 01:00 /lib/ld-linux-aarch64.so.1

I see that check-shlibs-elf.awk uses readelf, which gives:

Dynamic section at offset 0x2fd98 contains 30 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libavahi-client.so.
3]
 0x0000000000000001 (NEEDED)             Shared library: [libdbus-1.so.3]
 0x0000000000000001 (NEEDED)             Shared library: [libavahi-common.so.
3]
 0x0000000000000001 (NEEDED)             Shared library: [libgdbm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [ld-linux-aarch64.so.
1]
 0x000000000000001d (RUNPATH)            Library runpath: [/usr/pkg/lib]


Any ideas? It seems odd that the NEEDED file is not in RUNPATH -- but then, I 
don't know much about dynamic libraries on Linux.

-- 
Benny




Home | Main Index | Thread Index | Old Index