From owner-freebsd-hackers@FreeBSD.ORG Thu May 2 18:11:59 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id ABF3E253 for ; Thu, 2 May 2013 18:11:59 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4F26C1E41 for ; Thu, 2 May 2013 18:11:59 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.7/8.14.7) with ESMTP id r42IBnAo071908; Thu, 2 May 2013 21:11:49 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.2 kib.kiev.ua r42IBnAo071908 Received: (from kostik@localhost) by tom.home (8.14.7/8.14.7/Submit) id r42IBnvG071907; Thu, 2 May 2013 21:11:49 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 2 May 2013 21:11:49 +0300 From: Konstantin Belousov To: d@delphij.net Subject: Re: potential future proofing fix for aicasm build. Message-ID: <20130502181149.GM3047@kib.kiev.ua> References: <51814686.2060805@ixsystems.com> <5182A903.6010604@delphij.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bnUi9GzdSM4S/DMA" Content-Disposition: inline In-Reply-To: <5182A903.6010604@delphij.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 May 2013 18:11:59 -0000 --bnUi9GzdSM4S/DMA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 02, 2013 at 10:57:23AM -0700, Xin Li wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 >=20 > On 05/02/13 00:19, Dimitry Andric wrote: > > On May 1, 2013, at 18:44, Alfred Perlstein > > wrote: > >> I took a shot at fixing this issue with building aicasm as part > >> of "buildkernel" of an older 9.0 src on a machine running HEAD. > >>=20 > >> aicasm.o: In function `__getCurrentRuneLocale': > > >> /usr/include/runetype.h:96: undefined reference to > >> `_ThreadRuneLocale' > >=20 > > I don't understand this error message... It seems like a linker > > error, but it also seems to refer to an incorrect include file? Is > > this during linking or compiling? >=20 > This is because the locale code being a macro: >=20 > #if defined(__NO_TLS) || defined(__RUNETYPE_INTERNAL) > extern const _RuneLocale *__getCurrentRuneLocale(void); > #else > extern _Thread_local const _RuneLocale *_ThreadRuneLocale; > static __inline const _RuneLocale *__getCurrentRuneLocale(void) > { >=20 > if (_ThreadRuneLocale) > return _ThreadRuneLocale; > if (_CurrentRuneLocale) > return _CurrentRuneLocale; > return &_DefaultRuneLocale; > } > #endif /* __NO_TLS || __RUNETYPE_INTERNAL */ >=20 > What really puzzles me is that why the build picks up headers from the > running system. Because the utitily being build is intended to be run on the running system. --bnUi9GzdSM4S/DMA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJRgqxkAAoJEJDCuSvBvK1BhYsP/A65hzS5x88Pvo0UjCGCV85x g4dF/cQFL0nJvLSQxPfNJhj7etGWZgTaZgBAKoHY/1ejpvw1GQzYKPtYCef2E6V0 ygnM/QTOjUro2HpDLgkasBEwOUe2LS61nnWER0nmjUAc9wIU4O+nEyJ9bNnw2sZg Og2nqkF9+hG5HWSMyXl2jrXw0ojYlLLozFxJlBy9p3dAkAjFtHy79xZopRBlGCjl IFalsOgqMO1EK3D6Z956/XQiTWRdLU7rLB2Ru84Rthwpj2+EygqoY3Kf0VigZ0Tt LLu41EJFyyu6iyRjM3hmx1jozQCjaO+8Kjp9hpLRaelqRuvZQIAcMuvNmGdxx7L3 qUisZ+Uwy9m/1uN4Jm7uv+4qUWOU0fJQUkpWc3YGCgvhT62XuE+1Esh4LKkW5BDb O6n38sSVWom9NZXmVkAa/neIFjLSL1YZeAR7IMAQQ/uJ9849SuZaytYqyCaf2/Xe cDow4sx75crJEhpB3nibywliGbY1i5RzkZum0aNzLE9lj/GaKIInIq06o6iY9WbB B7uUgPpLDfMVXClHs4G6UdBUPVlvGpU9heYoo8V/bMyU0Tcw98UyGqH1aG86ZJja LocjSTcZcFDwxi0tcDnJhXhgp9GQKqTGhiiwsbe8ymfonxgo/dnTd1RduF/x5+Or Jo8MhCW9Wp1VNtWUk43l =E5Y2 -----END PGP SIGNATURE----- --bnUi9GzdSM4S/DMA--