From owner-svn-src-all@freebsd.org Thu Aug 25 16:24:21 2016 Return-Path: Delivered-To: svn-src-all@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 5B0A4BC542D; Thu, 25 Aug 2016 16:24:21 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 39B6C1DED; Thu, 25 Aug 2016 16:24:21 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 2D95D107D; Thu, 25 Aug 2016 16:24:21 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id D06321AE2D; Thu, 25 Aug 2016 16:24:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id e8jJEACpJZm9; Thu, 25 Aug 2016 16:24:16 +0000 (UTC) Subject: Re: svn commit: r303988 - head/lib/libc/gen DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 3C37A1AE27 To: Guido Falsi , Ed Schouten References: <201608120703.u7C73whf007189@repo.freebsd.org> <9ae1c2eb-02ad-b8fe-6aff-7e17e955607a@FreeBSD.org> <2632f5f8-d765-3df7-74d7-da878eb4b7a8@FreeBSD.org> <2e308383-bfbb-cccd-cfc2-eba63d275f5e@FreeBSD.org> <9303f35a-7941-3d14-4068-563d6af5b7ee@FreeBSD.org> Cc: svn-src-head@freebsd.org, jilles@freebsd.org, svn-src-all@freebsd.org, src-committers , Ed Schouten From: Bryan Drewery Organization: FreeBSD Message-ID: Date: Thu, 25 Aug 2016 09:24:15 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <9303f35a-7941-3d14-4068-563d6af5b7ee@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gCKvi3GUwubIU0mG2vMbE0MTjF7K8v79J" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2016 16:24:21 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --gCKvi3GUwubIU0mG2vMbE0MTjF7K8v79J Content-Type: multipart/mixed; boundary="KGDneuT95b2IHfDE3utxjT7Jf0O5D83nK" From: Bryan Drewery To: Guido Falsi , Ed Schouten Cc: svn-src-head@freebsd.org, jilles@freebsd.org, svn-src-all@freebsd.org, src-committers , Ed Schouten Message-ID: Subject: Re: svn commit: r303988 - head/lib/libc/gen References: <201608120703.u7C73whf007189@repo.freebsd.org> <9ae1c2eb-02ad-b8fe-6aff-7e17e955607a@FreeBSD.org> <2632f5f8-d765-3df7-74d7-da878eb4b7a8@FreeBSD.org> <2e308383-bfbb-cccd-cfc2-eba63d275f5e@FreeBSD.org> <9303f35a-7941-3d14-4068-563d6af5b7ee@FreeBSD.org> In-Reply-To: <9303f35a-7941-3d14-4068-563d6af5b7ee@FreeBSD.org> --KGDneuT95b2IHfDE3utxjT7Jf0O5D83nK Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 8/25/16 9:17 AM, Guido Falsi wrote: > On 08/25/16 18:05, Bryan Drewery wrote: >> On 8/25/16 1:27 AM, Guido Falsi wrote: >>> On 08/24/16 21:49, Ed Schouten wrote: >>>> 2016-08-24 20:30 GMT+02:00 Bryan Drewery : >>>>> That would only fix stable/11, stable/10, stable/9, releng/11.0. >>>>> >>>>> It won't fix releng/10.3, releng/10.2, releng/10.1, releng/9.3, etc= =2E.. >>>>> without an EN. >>>>> >>>>> It won't fix stable/11 - 1, stable/10 - 1, etc. >>>>> >>>>> It will never fix releng/8.4 (unsupported releases) since so@ won't= EN >>>>> to those. People do sometimes need to build these older releases s= till. >>>>> >>>>> It creates a line in the sand where we can never build checkouts ol= der >>>>> than where the fix was at. So I don't think it is the appropriate = fix. >>>> >>>> Good point! >>>> >>>> Just for the record: Bryan and I just discussed this matter in more >>>> detail on IRC. We came up with a workaround that should be pretty >>>> good. >>>> >>>> Attached is a patch for that adds some extra logic, so th= at >>>> any calls to basename() and dirname() will expand to calls to >>>> __old_basename() and __old_dirname(). Using __sym_compat(), these wi= ll >>>> cause the compiler to generate calls to basename@FBSD_1.0 and >>>> dirname@FBSD_1.0. >>>> >>>> According to Bryan, this fixes the problems he was experiencing. >>>> >>> >>> I just tried using the attached patch to build a nanobsd image, host = is >>> amd64 head at r304773 with this patch applied, target is i386 >>> releng/11.0 at r304729. >>> >> >> What did you apply the patch to? >> >> You need to apply to the source tree, then do a buildworld/installworl= d >> for the host, then try nanobsd. >=20 > I did apply it to the source tree of the host machine, and did not appl= y > it to the nanobsd sources. >=20 > The error message is very different from the previous one and involves > symbol versioning. >=20 >> >>> I've got it failing early during build: >>> >>> --- _bootstrap-tools-usr.bin/xinstall --- >>> xinstall.o: In function `install': >>> /usr/local/nanobsd/rr-trunk/src/usr.bin/xinstall/xinstall.c:(.text+0x= f55): >>> undefined reference to `basename@FBSD_1.0' readelf -a /lib/libc.so.7|grep basename ? >>> cc: error: linker command failed with exit code 1 (use -v to see invo= cation) >>> *** [xinstall] Error code 1 >>> >>> make[3]: stopped in /usr/local/nanobsd/rr-trunk/src/usr.bin/xinstall >>> 1 error >>> >>> make[3]: stopped in /usr/local/nanobsd/rr-trunk/src/usr.bin/xinstall >>> *** [_bootstrap-tools-usr.bin/xinstall] Error code 2 >>> >>> Did I miss some needed procedure? >>> >>> Thanks! >>> >> >> >=20 >=20 --=20 Regards, Bryan Drewery --KGDneuT95b2IHfDE3utxjT7Jf0O5D83nK-- --gCKvi3GUwubIU0mG2vMbE0MTjF7K8v79J Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJXvxuvAAoJEDXXcbtuRpfPU+UIAKpIqBQ4McrxR9uSdN6g0/nE oV+aNF9WobCBcGdTSAkWqJlsDCLnSbfqVbp6dUhFEUZGO6M4Mq0qWmN/aOi/32Gt RLaRQivHUYS4LcPxd9KBAoTsbKw7faOwBMeJ7bvxIWx3BPqA8vErV+GeGy9PxhbT LI3+EYKpE9HMqfBcBpqdAmSWBCR6H3FdelMK2TgHhA1vlRUGrMAw2SLu1gwMVRYL ev0t1mjCHK1AhLAXI9fmDJ9eE95HfZ8iwZof+zc4umF5Ev8/zS2GmKPseUoWsB8X hLXrIK06Vdmiu+7BtobafF+QyMa7ehbaDmB8bYKFcnwfDgWm9h40TKsT4Gx9mOA= =D/1i -----END PGP SIGNATURE----- --gCKvi3GUwubIU0mG2vMbE0MTjF7K8v79J--