From owner-freebsd-arm@freebsd.org Mon Oct 22 17:11:13 2018 Return-Path: Delivered-To: freebsd-arm@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 0DDF11039E0D for ; Mon, 22 Oct 2018 17:11:13 +0000 (UTC) (envelope-from rj@obsigna.com) Received: from mail.cyclaero.com (ec2-18-195-62-44.eu-central-1.compute.amazonaws.com [18.195.62.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A586185E18 for ; Mon, 22 Oct 2018 17:11:12 +0000 (UTC) (envelope-from rj@obsigna.com) Received: from mail.obsigna.com (unknown [189.29.185.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.cyclaero.com (Postfix) with ESMTPSA id 9ADB167; Mon, 22 Oct 2018 19:07:57 +0200 (CEST) Received: from rolf-mini.obsigna.com (rolf-mini.obsigna.com [192.168.222.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.obsigna.com (Postfix) with ESMTPSA id 883081350FA79; Mon, 22 Oct 2018 14:07:53 -0300 (-03) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: 12.0 BETA1 - pkg command error From: "Dr. Rolf Jansen" In-Reply-To: <1540222225.2684343.1550519584.308D8BA8@webmail.messagingengine.com> Date: Mon, 22 Oct 2018 14:07:52 -0300 Cc: Mike , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <93184F28-95A9-424C-8F34-3E6973E89A62@obsigna.com> References: <64148527-b8ca-deff-6042-483fb60f9f2d@mgm51.com> <1540222225.2684343.1550519584.308D8BA8@webmail.messagingengine.com> To: Hyun Hwang X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Oct 2018 17:11:13 -0000 > Am 22.10.2018 um 12:30 schrieb Hyun Hwang : >=20 > On Monday, October 22, 2018, 11:25 AM (UTC-0400), "Mike via = freebsd-arm" wrote: >>=20 >> I've installed the 12.0 BETA1 on a RPi3. >>=20 >> When I try to use the pkg command, I get this error: >>=20 >>=20 >> 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:aarch64/latest, please wait... >> Verifying signature with trusted certificate >> pkg.freebsd.org.2013102301... done >> Installing pkg-1.10.5_3... >> Extracting pkg-1.10.5_3: 100% >> ld-elf.so.1: Shared object "libssl.so.8" not found, required by "pkg" >>=20 >> How can I work around it? >=20 > Hi, >=20 > I have experienced this too on RPi 2. When I manually compiled pkg out = of ports-mgmt/pkg, the error went gone. Probably still some fallout = after OpenSSL 1.1.1. >=20 > So yeah, try to build one yourself instead of getting the prebuilt = binary. > --=20 > Hyun Hwang In addition, note, that this does not only affect pkg. All ports and = other 3rdparty software which somehow depend on OpenSSL need to be = recompiled. In order to know which ports/packages are affected, I issued the = following command. After some minutes this would spill out a list of = packages which must be re-installed: find /usr/local/bin /usr/local/sbin /usr/local/libexec /usr/local/lib = -type f | xargs -n1 file -F =E2=80=9A ' | grep ELF | cut -f1 -d' ' | = xargs ldd -f '%A %o\n' | grep "libssl.so\|libcrypto.so" | cut -f1 -d' ' = | sort -u | xargs -n1 pkg which -p | cut -f6 -d' ' | sort -u Best regards Rolf