Skip to content

ar in Flatpak fails: missing libsframe.so.1 (copied /usr/bin/ar into /app without libsframe) #611

Description

@hksdpc255

Inside the flatpak shell, running /app/bin/ar fails due to a missing libsframe soname:

sh-5.2$ ar
ar: error while loading shared libraries: libsframe.so.1: cannot open shared object file: No such file or directory
sh-5.2$ which ar
/app/bin/ar
sh-5.2$ ls -l /app/bin/ar
-rwxr-xr-x. 2 nfsnobody nfsnobody 75456 1970-01-01 /app/bin/ar
sh-5.2$ ldd /app/bin/ar
        linux-vdso.so.1 (0x00007f07ffbcd000)
        libbfd-2.44.so => /app/lib/libbfd-2.44.so (0x00007f07ffa5b000)
        libc.so.6 => /usr/lib/x86_64-linux-gnu/libc.so.6 (0x00007f07ff847000)
        libz.so.1 => /usr/lib/x86_64-linux-gnu/libz.so.1 (0x00007f07ff82d000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f07ffbcf000)
        libsframe.so.1 => not found
sh-5.2$ ls -l /app/lib | grep -i -F sframe
sh-5.2$ ls -l /app/lib | grep -i -F bfd
-rwxr-xr-x. 2 nfsnobody nfsnobody 1428584 1970-01-01 libbfd-2.44.so
sh-5.2$ 

The build script copies ar and its dependencies libbfd into /app/bin

- cp /usr/bin/ar /app/bin
- ARCH_TRIPLE=$(gcc --print-multiarch) && cp /usr/lib/${ARCH_TRIPLE}/libbfd-*.so
/app/lib
- ARCH_TRIPLE=$(gcc --print-multiarch) && ln -s /usr/lib/${ARCH_TRIPLE}/libtinfo.so/app/lib/libtinfo.so.5

but without libsframe

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions