Re: potential future proofing fix for aicasm build.

看板FB_hackers作者時間12年前 (2013/05/03 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串14/15 (看更多)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 05/02/13 00:19, Dimitry Andric wrote: > On May 1, 2013, at 18:44, Alfred Perlstein <alfred@ixsystems.com> > 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. >> >> aicasm.o: In function `__getCurrentRuneLocale': > >> /usr/include/runetype.h:96: undefined reference to >> `_ThreadRuneLocale' > > 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? This is because the locale code being a macro: #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) { if (_ThreadRuneLocale) return _ThreadRuneLocale; if (_CurrentRuneLocale) return _CurrentRuneLocale; return &_DefaultRuneLocale; } #endif /* __NO_TLS || __RUNETYPE_INTERNAL */ What really puzzles me is that why the build picks up headers from the running system. Cheers, - -- Xin LI <delphij@delphij.net> https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJRgqkDAAoJEG80Jeu8UPuzwvUH/2M+HDzKA9neXXYb6SKzrNX2 DVqw66ygatDj6QqwmMvZvU4+kGLNR6KEOQGNF4f0mMJmfg+GLzDFE5s769J/Be+1 4WMr1luWwgwrYlYhMrA8/CXYUWI2O9mhNfhLQHD8z3lJ6yxJgPy3h9J3jwzmU/W8 p58Dp8raABgKcK9DKE47QSXiiEXHuJUdSJXBPCoEFg09s+PnhrduQ1Vd9vfK9As0 G1HUmn+S/LWxRCB2wzZAC3FjZQHblXEvmfZzxCqUZr5AP3jtlHTHDUtJTCxxclgg sGLmdvqnn6/3BBXIhcxXVka3CKzbuCyIeGCBhTsSbLnuKB+FXbid9ibSrIlFA2s= =vdoK -----END PGP SIGNATURE----- _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #1HWgdXh7 (FB_hackers)
討論串 (同標題文章)
文章代碼(AID): #1HWgdXh7 (FB_hackers)