From owner-freebsd-stable@freebsd.org Sat Oct 27 19:02:16 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A63A710D079F for ; Sat, 27 Oct 2018 19:02:16 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail.karels.net (mail.karels.net [216.160.39.52]) by mx1.freebsd.org (Postfix) with ESMTP id 99A5F775A4 for ; Sat, 27 Oct 2018 19:02:15 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail.karels.net (localhost [127.0.0.1]) by mail.karels.net (8.15.2/8.15.2) with ESMTP id w9RJ295m025117 for ; Sat, 27 Oct 2018 14:02:09 -0500 (CDT) (envelope-from mike@karels.net) Message-Id: <201810271902.w9RJ295m025117@mail.karels.net> To: freebsd-stable@freebsd.org From: Mike Karels Reply-to: mike@karels.net Subject: pkg confusion with libssl on 12.0-BETA2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25115.1540666929.1@mail.karels.net> Content-Transfer-Encoding: quoted-printable Date: Sat, 27 Oct 2018 14:02:09 -0500 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2018 19:02:17 -0000 The pkg binary that is installed via the bootstrap has problems with the libssl shared library (or libraries). The binary itself wants libssl.so.111, but /usr/local/lib/libpkg.so.4.0.0 wants libssl.so.9. I'm not sure of the path that pulls in libpkg.so, but ktrace says that it's happening. This is on a freshly installed 12.0-BETA2 (amd64 on bhyve). More details below. Mike vmguest3# pkg install bash The package management tool is not yet installed on your system. Do you want to fetch and install it now? [y/N]: y Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/latest,= please wait... Verifying signature with trusted certificate pkg.freebsd.org.2013102301...= done Installing pkg-1.10.5_4... Extracting pkg-1.10.5_4: 100% ld-elf.so.1: Shared object "libssl.so.9" not found, required by "pkg" vmguest3# ls -l /usr/lib/libssl* -r--r--r-- 1 root wheel 4386406 Oct 25 22:08 /usr/lib/libssl.a lrwxr-xr-x 1 root wheel 13 Oct 25 22:08 /usr/lib/libssl.so -> libs= sl.so.111 -r--r--r-- 1 root wheel 604936 Oct 25 22:08 /usr/lib/libssl.so.111 -r--r--r-- 1 root wheel 4493898 Oct 25 22:08 /usr/lib/libssl_p.a vmguest3# freebsd-version 12.0-BETA2 vmguest3# ls -l /usr/sbin/pkg -r-xr-xr-x 1 root wheel 40192 Oct 25 22:16 /usr/sbin/pkg vmguest3# which pkg /usr/sbin/pkg vmguest3# pkg ld-elf.so.1: Shared object "libssl.so.9" not found, required by "pkg" vmguest3# ldd /usr/sbin/pkg /usr/sbin/pkg: libarchive.so.7 =3D> /usr/lib/libarchive.so.7 (0x80024d000) libfetch.so.6 =3D> /usr/lib/libfetch.so.6 (0x80030f000) libprivateucl.so.1 =3D> /usr/lib/libprivateucl.so.1 (0x800324000) libsbuf.so.6 =3D> /lib/libsbuf.so.6 (0x800348000) libcrypto.so.111 =3D> /lib/libcrypto.so.111 (0x80034e000) libssl.so.111 =3D> /usr/lib/libssl.so.111 (0x80063b000) libc.so.7 =3D> /lib/libc.so.7 (0x8006d0000) libz.so.6 =3D> /lib/libz.so.6 (0x800ac3000) libbz2.so.4 =3D> /usr/lib/libbz2.so.4 (0x800add000) liblzma.so.5 =3D> /usr/lib/liblzma.so.5 (0x800af2000) libbsdxml.so.4 =3D> /lib/libbsdxml.so.4 (0x800b1d000) libm.so.5 =3D> /lib/libm.so.5 (0x800b49000) libthr.so.3 =3D> /lib/libthr.so.3 (0x800b7b000) vmguest3# strings /usr/sbin/pkg | grep libssl libssl.so.111 vmguest3# cat /etc/libmap.conf = # $FreeBSD: stable/12/libexec/rtld-elf/libmap.conf 338741 2018-09-18 00:25= :00Z brd $ includedir /usr/local/etc/libmap.d vmguest3# ls /usr/local/etc/libmap.d ls: /usr/local/etc/libmap.d: No such file or directory vmguest3# ldd /usr/local/lib/libpkg.so.4.0.0 = /usr/local/lib/libpkg.so.4.0.0: libutil.so.9 =3D> /lib/libutil.so.9 (0x800672000) libssl.so.9 =3D> not found (0) libcrypto.so.9 =3D> not found (0) libm.so.5 =3D> /lib/libm.so.5 (0x800689000) libelf.so.2 =3D> /lib/libelf.so.2 (0x8006bb000) libjail.so.1 =3D> /lib/libjail.so.1 (0x8006d5000) libarchive.so.7 =3D> /usr/lib/libarchive.so.7 (0x8006dd000) libz.so.6 =3D> /lib/libz.so.6 (0x80079f000) libbz2.so.4 =3D> /usr/lib/libbz2.so.4 (0x8007b9000) liblzma.so.5 =3D> /usr/lib/liblzma.so.5 (0x8007ce000) libc.so.7 =3D> /lib/libc.so.7 (0x800248000) libbsdxml.so.4 =3D> /lib/libbsdxml.so.4 (0x801038000) libcrypto.so.111 =3D> /lib/libcrypto.so.111 (0x801064000) libthr.so.3 =3D> /lib/libthr.so.3 (0x801351000)