From owner-freebsd-current@freebsd.org Sat Oct 13 06:53:56 2018 Return-Path: Delivered-To: freebsd-current@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 39F5910B70AB for ; Sat, 13 Oct 2018 06:53:56 +0000 (UTC) (envelope-from se@freebsd.org) Received: from mailout08.t-online.de (mailout08.t-online.de [194.25.134.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A54908C1E8; Sat, 13 Oct 2018 06:53:55 +0000 (UTC) (envelope-from se@freebsd.org) Received: from fwd02.aul.t-online.de (fwd02.aul.t-online.de [172.20.26.148]) by mailout08.t-online.de (Postfix) with SMTP id 481BE41DE53C; Sat, 13 Oct 2018 08:53:46 +0200 (CEST) Received: from Stefans-MBP-LAN.fritz.box (TcTrPyZ6YhZbn8+RCZdCik4ge5Eb4b0R01MT8bI3gzW+Ssyz2ldkY8A1nqpVF+Mw3C@[80.128.111.25]) by fwd02.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1gBDnr-10MFdY0; Sat, 13 Oct 2018 08:53:35 +0200 Subject: Also affects "pkg" (was: Re: OpenSSL 1.1.1 libssl.so version number) To: FreeBSD current , re@FreeBSD.org References: From: Stefan Esser Openpgp: preference=signencrypt Autocrypt: addr=se@freebsd.org; prefer-encrypt=mutual; keydata= xsBNBFVxiRIBCADOLNOZBsqlplHUQ3tG782FNtVT33rQli9EjNt2fhFERHIo4NxHlWBpHLnU b0s4L/eItx7au0i7Gegv01A9LUMwOnAc9EFAm4EW3Wmoa6MYrcP7xDClohg/Y69f7SNpEs3x YATBy+L6NzWZbJjZXD4vqPgZSDuMcLU7BEdJf0f+6h1BJPnGuwHpsSdnnMrZeIM8xQ8P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67XvWv31RLnrB/9gzcRlpx71sDMosoZULWn7wysBJ/8AIEfIByRaHQe3 pn/KwE57pB+zFbbQqB7YzeZb7/UUgR4zU2ZbOcEfwDZcHUbj0B3fGRsS3t0uiLlAd8w0sBZb SxrqzjdpDjIbOZkxssqUmvrsN67UG1AFWH9aD24keBS7YjPBS8hLxPeYV+Xz6vUL8fRZje/Z JgiBMIwyj6g2lH/zkdnxBdC0iG1xxJOLTaghMMeQyCdH6ef8+VMyAlAJsMckbOTvx63tY8z7 DFcrnTJfbe1EziRilVsEaK8tTzJzhcTfos+f3eBYWEilxe5HzIhYKJeC7lmsSUcGwa6+9VRg a0ctmi9Z8OgX Cc: Don Lewis Message-ID: <57a67c05-32b7-c273-2755-8bcbf2b6963e@freebsd.org> Date: Sat, 13 Oct 2018 08:53:33 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ID: TcTrPyZ6YhZbn8+RCZdCik4ge5Eb4b0R01MT8bI3gzW+Ssyz2ldkY8A1nqpVF+Mw3C X-TOI-MSGID: e2245d5f-0cd2-4a28-acea-c082aa1c06f5 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Oct 2018 06:53:56 -0000 Am 13.10.18 um 01:56 schrieb Don Lewis: > Prior to the OpenSSL 1.1.1 import, the base OpenSSL library was > /usr/lib/libssl.so.8. The security/openssl port (1.0.2p) installed > ${LOCALBASE}/lib/ilbssl.so.9 and the security/openssl-devel port > (1.1.0i) installed ${LOCALBASE}/lib/libssl.so.11. After the import, the > base OpenSSL library is /usr/lib/libssl.so.9. Now if you build ports > with DEFAULT_VERSIONS+=ssl=openssl, the library that actually gets used > is ambiguous because there are now two different versions of libssl.so > (1.0.2p and 1.1.1) with the same shared library version number. > > I stumbled across this when debugging a virtualbox-ose configure > failure. The test executable was linked to the ports version of > libssl.so but rtld chose the base libssl.so at run time. I'm seeing something possibly related in pkg: $ ldd /usr/local/lib/libpkg. | grep ssl libpkg.a libpkg.so libpkg.so.4 libpkg.so.4.0.0 $ldd /usr/local/lib/libpkg.so.4 | grep ssl libssl.so.9 => /usr/lib/libssl.so.9 (0x800679000) This results in: $ pkg -v ld-elf.so.1: /usr/local/lib/libcrypto.so.9: version OPENSSL_1_1_0 required by /usr/local/lib/libpkg.so.4 not defined My work-around was to copy pkg-static over pkg (I have not checked whether the static version is linked against the system or ports version of the library, but I assume the latter). I have "DEFAULT_VERSIONS+= ssl=openssl" in make.conf but the same problem exists if pkg is built without that setting. My local version of portmaster has been changed to use pkg-static in favor of pkg and I plan to commit that change to the portmaster port, to make it resilient against this problem. Regards, STefan