From owner-freebsd-questions@freebsd.org Tue Oct 25 23:32:43 2016 Return-Path: Delivered-To: freebsd-questions@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 D0A78C22BF5 for ; Tue, 25 Oct 2016 23:32:43 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7059B75E for ; Tue, 25 Oct 2016 23:32:43 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (unknown [IPv6:2001:8b0:151:1:1c1d:86a1:a200:b700]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id CD390E699 for ; Tue, 25 Oct 2016 23:32:33 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/CD390E699; dkim=none; dkim-atps=neutral Subject: Re: Newbie fankle To: freebsd-questions@freebsd.org References: <9046f3aa-eee1-1c30-687a-47c42eddece9@lingbrae.com> From: Matthew Seaman Message-ID: <8667d780-d250-615e-5f41-1434058426b2@FreeBSD.org> Date: Wed, 26 Oct 2016 00:32:33 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <9046f3aa-eee1-1c30-687a-47c42eddece9@lingbrae.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dsV66NorND9ihlIqoo0fN1hTgHKauwmip" X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2016 23:32:43 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --dsV66NorND9ihlIqoo0fN1hTgHKauwmip Content-Type: multipart/mixed; boundary="ouTMwhF1gCUSPcAsHPbaFcPIp3Tlt5L9P"; protected-headers="v1" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: <8667d780-d250-615e-5f41-1434058426b2@FreeBSD.org> Subject: Re: Newbie fankle References: <9046f3aa-eee1-1c30-687a-47c42eddece9@lingbrae.com> In-Reply-To: <9046f3aa-eee1-1c30-687a-47c42eddece9@lingbrae.com> --ouTMwhF1gCUSPcAsHPbaFcPIp3Tlt5L9P Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 25/10/2016 21:48, Dick Middleton wrote: > I was playing with my new NanoPi-Neo and noticed there was a FreeBSD im= age > available for it so I thought I'd try it. >=20 > So I got to the point where I needed to install an editor so I did: >=20 > pkg update > pkg install zile >=20 > which all went OK but now whenever I run pkg it reports: >=20 > /lib/libc.so.7: version FBSD_1.5 required by /usr/local/lib/libpkg.so.3= not found >=20 > Googling I found: >=20 > https://lists.freebsd.org/pipermail/freebsd-pkgbase/2016-October.txt >=20 > which is the same problem. However I can't find how to fix the problem= =2E I'm > guessing I have to upgrade some base libraries but I've no idea how. >=20 > There's a thing call pkg-static which works so it's still possible to i= nstall > packages. >=20 > Can anybody help me The 'version FBSD_1.5' message indicates that the pkg(8) you installed was built against a more recent version of libc than you have installed. It also implies you're running 12-CURRENT, and you've unfortunately cut yourself on the bleeding edge. Theoretically that symbol version mismatch should never happen, because the symbol version in libc (and various other libraries) only gets increased in HEAD when the major version number gets incremented after a new X.0 release branch has been created. Except there's a window of perhaps a few weeks after creating a new branch where you can install 12-CURRENT before the symbol version gets updated. Then packages built after the symbol version gets updated will be seen as matching your version of the OS by pkg(8), but will result in the error message you are seeing. Your three possible courses of action here are: 1) build all your own packages from source which will automatically mean they work with the library versions present on your system. 2) update your system to a more recent version of HEAD, with the updated symbol version in libc and other libraries. This probably means finding a more recent pre-built image. 3) Override the automatic settings for ABI and ALTABI variables in pkg.conf to install packages for the previous major version. ie set ABI =3D "FreeBSD:10:amd64"; ALTABI =3D "freebsd:10:x86:64"; (I think this works, but haven't tried it properly. It may be that pkg(8) is too clever and still tells you you're installing packages for the wrong system version.) Cheers, Matthew --ouTMwhF1gCUSPcAsHPbaFcPIp3Tlt5L9P-- --dsV66NorND9ihlIqoo0fN1hTgHKauwmip Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJYD+uRXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATjaAQAJHacUIP26QkxQ8cG9LFYweW ZLdDOkWdfol8Dsv4/iTUJDT5HcANAdKHydaz932ieUdGLPbDNBDfwsgia/TIUBp4 0YBh64LANJRrGow2xEbuI4TcmXo1s2mpB+33TXh/IHHnBFbX8j9HxjfoAj3Ayi3v URpPCsLaGEztRomL31//ZrcrJguDi7XYvgPHqppf/CxNSCx2d11Rg1N6RlZZXAWH Xqkbcw6V1jPKUkDQu9InIvk7iZWzo1iO8k8my2C57ChJK3qd/aMEzXCpXEO8qpsn AohRX4BNVwYlHNeSIMXdO/eproXnXnXOpK4M2g+6+ARXeyR+Mhltmej34ZVe0s9I e4l37vzdzOewi18B51/PR+k/wVRo4TAcyXwGrCNvqBviS7NR/1Qrkm2GhYcHTUHv KcxHqtvSafTyREiDl+WU4j1kI+wCGmsq8ttOFyGbVHtKeAhJWkeSfqeLEOvnLfdC LTInoyOWt+Cqs53frhhARUD6EjePtzuHJRHmUEDS2MnzMUHs0CYVKo/H8vFBXt9p 7kRVUHTbAVSOpvKUbW605oj8EfEjcU5Du3sY0aZAQSHoeyRDtEBpTDaUuj5ACiyE EdD+M+f663epE0brs04jjsFktZHvtkDdVApo1BMnjKsN5jjTF3xXxwfyKCIi2Ddv 4cbxthbrxz0etxL/QE4V =JinZ -----END PGP SIGNATURE----- --dsV66NorND9ihlIqoo0fN1hTgHKauwmip--