From owner-freebsd-arm@freebsd.org Wed Dec 16 13:39:21 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 289ABA49F52; Wed, 16 Dec 2015 13:39:21 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [31.223.170.169]) (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 A6A0A1BB9; Wed, 16 Dec 2015 13:39:20 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 40135153418; Wed, 16 Dec 2015 11:01:22 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KUiH6xEfncLt; Wed, 16 Dec 2015 11:00:54 +0100 (CET) Received: from [IPv6:2001:4cb8:3:1:ec88:e8ea:2fbd:5e1f] (unknown [IPv6:2001:4cb8:3:1:ec88:e8ea:2fbd:5e1f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id C0A8C15340A; Wed, 16 Dec 2015 11:00:19 +0100 (CET) Subject: Re: "libssl.so.8" not found To: Brad Davis , Warner Losh References: <20151214071840.GA3771@c720-r285885-amd64> <20151214153517.GB49345@corpmail.liquidneon.com> Cc: Ronald Klop , freebsd-arm , Matthias Apitz , FreeBSD Current From: Willem Jan Withagen X-Enigmail-Draft-Status: N1110 Message-ID: <56713633.10401@digiware.nl> Date: Wed, 16 Dec 2015 11:00:19 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151214153517.GB49345@corpmail.liquidneon.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Dec 2015 13:39:21 -0000 On 14-12-2015 16:35, Brad Davis wrote: > On Mon, Dec 14, 2015 at 06:03:25AM -0700, Warner Losh wrote: >> On Mon, Dec 14, 2015 at 2:21 AM, Ronald Klop wrote: >> >>> On Mon, 14 Dec 2015 10:11:35 +0100, Ronald Klop >>> wrote: >>> >>> On Mon, 14 Dec 2015 08:18:40 +0100, Matthias Apitz >>>> wrote: >>>> >>>> El d??a Sunday, December 13, 2015 a las 10:40:22PM -0800, Russell Haley >>>>> escribi??: >>>>> >>>>> Hi There, >>>>>> >>>>>> I am trying to bring up an Arm image off the FreeBSD website for my >>>>>> hummingboard. The problem seems to be when I run pkg the system installs >>>>>> the latest version - 1.6.2, and then fails with: >>>>>> >>>>>> Shared object "libssl.so.8" not found, required by "pkg" >>>>>> >>>>>> I've seen this in NextBSD, and DesktopBSD and even on my previous arm >>>>>> image >>>>>> but I was able to get around the problem by creating links from >>>>>> libssl.so.7 >>>>>> to libssl.so.8. >>>>>> >>>>> >>>>> I have had the same issue on r285885 with ports as well from July this >>>>> year and pkg 1.5.5 ... I accidently updated pkg to 1.6.x which could not >>>>> find libssl.so.8; I forced back to 1.5.5 with an older pkg-static and >>>>> now pkg >>>>> complains about it database, but still works: >>>>> >>>>> $ pkg info pkg >>>>> pkg: warning: database version 32 is newer than libpkg(3) version 31, >>>>> but still compatible >>>>> pkg-1.5.5 >>>>> >>>>> I don't know why pkg 1.6.2 was produced with this recent libssl.so.8; it >>>>> should have been done more conservative, IMHO >>>>> >>>>> matthias >>>>> >>>>> >>>> I had the same problem on my amd64 laptop. Your FreeBSD version is too >>>> old. Upgrading the FreeBSD base will give you the new libssl version. After >>>> that you can upgrade your packages. >>>> >>>> What version of FreeBSD is running on this hummingboard? I guess >>>> 11-CURRENT. Probably ssl was upgraded in FreeBSD and the new packages are >>>> build on this newer version. In 10-STABLE this is kept backwards >>>> compatible, but in 11-CURRENT you have to keep up yourself. >>>> >>>> Regards, >>>> >>>> Ronald. >>>> >>> >>> It has to do with this message in /usr/src/UPDATING: >>> >>> >>> https://svnweb.freebsd.org/base/head/UPDATING?r1=290206&r2=290207&pathrev=292177& >> >> >> As a temporary measure, for bootstrapping or installing packages, you can >> also >> use libmap.conf to map libssl.so.7 to libssl.so.8. There's a second library >> that >> you'll find you need to map too. This will get you over the hump. However, >> once you do upgrade, you'll need to remove the lines because slogin and such >> have a check for the right version of openssl, and will give an error >> message if >> you try to use them cross-threaded. > > Or just use pkg-static. :) Cool trick, never though about that. However that does not help with auxilary tools that are code to use pkg. :( So in the end I just manually build the pkg port, which will compile against whatever is available as ssl-lib. Not the best solution, since next time Bapt releases a new version, the game starts again. perhaps in this case it is best to move pkg-static to pkg? and always use a static linked version. It is not like a deamon running for ever. So the temporary overhead of 4Mb <> 150K code space would be acceptable. --WjW