x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -march=athlon64 -O2 -pipe -I/usr/include/ncurses -c aalinuxkbd.c -fPIC -DPIC -o .libs/aalinuxkbd.lo In file included from /usr/include/linux/preempt.h:10, from /usr/include/linux/spinlock.h:50, from /usr/include/linux/wait.h:23, from /usr/include/linux/keyboard.h:20, from aalinuxkbd.c:21: /usr/include/linux/thread_info.h: In function `set_ti_thread_flag': /usr/include/linux/thread_info.h:30: error: dereferencing pointer to incomplete type /usr/include/linux/thread_info.h: In function `clear_ti_thread_flag': /usr/include/linux/thread_info.h:35: error: dereferencing pointer to incomplete type /usr/include/linux/thread_info.h: In function `test_and_set_ti_thread_flag': /usr/include/linux/thread_info.h:40: error: dereferencing pointer to incomplete type /usr/include/linux/thread_info.h: In function `test_and_clear_ti_thread_flag': /usr/include/linux/thread_info.h:45: error: dereferencing pointer to incomplete type /usr/include/linux/thread_info.h: In function `test_ti_thread_flag': /usr/include/linux/thread_info.h:50: error: dereferencing pointer to incomplete type /usr/include/linux/thread_info.h:50: error: dereferencing pointer to incomplete type make[1]: *** [aalinuxkbd.lo] Error 1 Portage 2.1_pre4-r1 (default-linux/amd64/2005.1, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-ck3-r1 x86_64) ================================================================= System uname: 2.6.15-ck3-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.0_pre16 ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1, 2.16.91.0.3, 2.16.91.0.5, 2.16.91.0.6 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.15_rc6 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="" FEATURES="autoconfig ccache confcache distlocks nostrip sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/" LC_ALL="en_US" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/bmg-main /usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="amd64 X aac alsa avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr crypt cups dbus debug dvd dvdr eds emboss encode esd firefox flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib ipv6 java jpeg kde ldap lzw lzw-tiff mad mono mozilla mp3 mpeg ncurses nls nptl ogg opengl pam pdflib perl pic png python qt quicktime readline ruby samba sdl spell sqlite ssl tcpd theora tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xml2 xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_vga video_cards_vesa video_cards_nv" Unset: ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS, MAKEOPTS
That's what you get when using package.masked linux-headers...
This is a heads-up for the devs working on the new linux-headers so they know where the problems are. In fact, if there's a tracker bug for the new headers I would file it there. I'm not looking for support of hard-masked headers ;-) just trying to help get them into portage.
Should be fixed in 2.6.16 headers -- please give those a go, if it doesn't fix the issue reopen the bug. Thanks!