[Bug 283925] emulators/linux_base-rl9: missing libraries for many executables

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 08 Jan 2025 13:14:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283925

            Bug ID: 283925
           Summary: emulators/linux_base-rl9: missing libraries for many
                    executables
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: emulation@FreeBSD.org
          Reporter: michaelo@FreeBSD.org
             Flags: maintainer-feedback?(emulation@FreeBSD.org)
          Assignee: emulation@FreeBSD.org

I am trying to migrate off linux_base-c7 and my closed source commercial
application gives me after migration that libsigsegv.so.2 cannot be found.

I did a bit of digging and several other libs cannot be found. The following
libs are required by Linux executables:
> root@deblndw011x:/compat/linux
> # ldd bin/* sbin/* 2> /dev/null | cut -d = -f 1 | grep \\.so | sort -u | cut -w -f 2
> ld-linux-x86-64.so.2
> libacl.so.1
> libattr.so.1
> libblkid.so.1
> libbz2.so.1
> libc.so.6
> libc.so.7
> libcap.so.2
> libcom_err.so.2
> libcrypt.so.2
> libcrypto.so.3
> libe2p.so.2
> libext2fs.so.2
> libfdisk.so.1
> libffi.so.8
> libfuse.so.2
> libgio-2.0.so.0
> libglib-2.0.so.0
> libgmodule-2.0.so.0
> libgmp.so.10
> libgobject-2.0.so.0
> libiconv.so.2
> libintl.so.8
> libkeyutils.so.1
> libm.so.6
> libmount.so.1
> libmpfr.so.6
> libncursesw.so.6
> libncursesw.so.9
> libpcre.so.1
> libpcre2-8.so.0
> libreadline.so.8
> libresolv.so.2
> libselinux.so.1
> libsigsegv.so.2
> libsmartcols.so.1
> libthr.so.3
> libtic.so.6
> libtinfo.so.6
> libutil.so.9
> libuuid.so.1
> libz.so.1
> libz.so.6

but only these are available:
> root@deblndw011x:/compat/linux
> # ldd bin/* sbin/* 2> /dev/null | cut -d = -f 1 | grep \\.so | sort -u | cut -w -f 2 | xargs -I% find usr/lib64  -name %  | sort
> usr/lib64/ld-linux-x86-64.so.2
> usr/lib64/libacl.so.1
> usr/lib64/libattr.so.1
> usr/lib64/libblkid.so.1
> usr/lib64/libbz2.so.1
> usr/lib64/libc.so.6
> usr/lib64/libcap.so.2
> usr/lib64/libcom_err.so.2
> usr/lib64/libcrypto.so.3
> usr/lib64/libe2p.so.2
> usr/lib64/libext2fs.so.2
> usr/lib64/libffi.so.8
> usr/lib64/libgio-2.0.so.0
> usr/lib64/libglib-2.0.so.0
> usr/lib64/libgmodule-2.0.so.0
> usr/lib64/libgmp.so.10
> usr/lib64/libgobject-2.0.so.0
> usr/lib64/libkeyutils.so.1
> usr/lib64/libm.so.6
> usr/lib64/libmount.so.1
> usr/lib64/libncursesw.so.6
> usr/lib64/libpcre.so.1
> usr/lib64/libpcre2-8.so.0
> usr/lib64/libreadline.so.8
> usr/lib64/libresolv.so.2
> usr/lib64/libselinux.so.1
> usr/lib64/libtic.so.6
> usr/lib64/libtinfo.so.6
> usr/lib64/libuuid.so.1
> usr/lib64/libz.so.1

These are missing:
> ld-linux-x86-64.so.2
> libc.so.7
> libcrypt.so.2
> libfdisk.so.1
> libfuse.so.2
> libiconv.so.2
> libintl.so.8
> libmpfr.so.6
> libncursesw.so.9
> libsigsegv.so.2
> libsmartcols.so.1
> libthr.so.3
> libutil.so.9
> libz.so.6

Sample failure:
> root@deblndw011x:/compat/linux
> # bin/awk
> bin/awk: error while loading shared libraries: libsigsegv.so.2: cannot open shared object file: No such file or directory

On a RHEL8 system:
> root@deblndw012x:~
> # rpm -qf /lib64/libsigsegv.so.2
> libsigsegv-2.11-5.el8.x86_64

I believe that all of these needs to added to the base system as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.