In file included from /usr/include/linux/spinlock.h:8, from /usr/include/linux/fb.h:6, from /var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/drivers/fbdev.c:4: /usr/include/linux/config.h:4:28: linux/autoconf.h: No such file or directory In file included from /usr/include/linux/spinlock.h:16, from /usr/include/linux/fb.h:6, from /var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/drivers/fbdev.c:4: /usr/include/asm/processor.h:68: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/include/asm/processor.h:68: error: requested alignment is not a constant In file included from /var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/src/drivers/fbdev.c:4: /usr/include/linux/fb.h:345: error: syntax error before "atomic_t" make[1]: *** [drivers/fbdev.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/staticlib' make: *** [staticlib/libvga.a] Error 2 !!! ERROR: media-libs/svgalib-1.9.17-r3 failed. !!! Function src_compile, Line 45, Exitcode 2 !!! Failed to build libraries and utils! # qpkg -I -v kernel sys-kernel/gentoo-dev-sources-2.6.1-r1 * sys-kernel/gentoo-dev-sources-2.6.2-r1 * sys-kernel/linux-headers-2.6.1 * # grep USE= /etc/make.conf USE="acpi alsa cdr -cups curl -foomaticdb -gnome -pdflib perl samba sse -xmms -xv usb -X -gtk -qt -motif -java -opengl -truetype -oss -arts"
looks like you need to re-emerge your linux-headers
This was fixed in later versions of linux-headers-2.6.1 [ it seems you've got the initial release of 2.6.1 ] and later versions of linux-headers-2.6: emerge sync, [re]merge your kernel headers, and it should compile fine. Thanks.