pkg confusion with libssl on 12.0-BETA2

Mike Karels mike at
Sat Oct 27 19:02:17 UTC 2018

The pkg binary that is installed via the bootstrap has problems with
the libssl shared library (or libraries).  The binary itself wants, but /usr/local/lib/ wants
I'm not sure of the path that pulls in, but ktrace says
that it's happening.  This is on a freshly installed 12.0-BETA2
(amd64 on bhyve).  More details below.


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+, please wait...
Verifying signature with trusted certificate done
Installing pkg-1.10.5_4...
Extracting pkg-1.10.5_4: 100% Shared object "" 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/ ->
-r--r--r--  1 root  wheel   604936 Oct 25 22:08 /usr/lib/
-r--r--r--  1 root  wheel  4493898 Oct 25 22:08 /usr/lib/libssl_p.a
vmguest3# freebsd-version
vmguest3# ls -l /usr/sbin/pkg
-r-xr-xr-x  1 root  wheel  40192 Oct 25 22:16 /usr/sbin/pkg
vmguest3# which pkg
vmguest3# pkg Shared object "" not found, required by "pkg"
vmguest3# ldd /usr/sbin/pkg
/usr/sbin/pkg: => /usr/lib/ (0x80024d000) => /usr/lib/ (0x80030f000) => /usr/lib/ (0x800324000) => /lib/ (0x800348000) => /lib/ (0x80034e000) => /usr/lib/ (0x80063b000) => /lib/ (0x8006d0000) => /lib/ (0x800ac3000) => /usr/lib/ (0x800add000) => /usr/lib/ (0x800af2000) => /lib/ (0x800b1d000) => /lib/ (0x800b49000) => /lib/ (0x800b7b000)
vmguest3# strings /usr/sbin/pkg | grep libssl
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/ 
/usr/local/lib/ => /lib/ (0x800672000) => not found (0) => not found (0) => /lib/ (0x800689000) => /lib/ (0x8006bb000) => /lib/ (0x8006d5000) => /usr/lib/ (0x8006dd000) => /lib/ (0x80079f000) => /usr/lib/ (0x8007b9000) => /usr/lib/ (0x8007ce000) => /lib/ (0x800248000) => /lib/ (0x801038000) => /lib/ (0x801064000) => /lib/ (0x801351000)

More information about the freebsd-stable mailing list