When emerging sys-kernel/ck-sources-2.6.13_p6, the compile fails on drivers/pcmcia/yenta_socket.c. The problem is the same explained in bug 106405 (http://bugs.gentoo.org/show_bug.cgi?id=106405) related to emerging sys-kernel/gentoo-sources-2.6.13-r2 Reproducible: Always Steps to Reproduce: 1. cd /usr/src/linux-2.6.13-ck6/ 2. make menuconfig and select CONFIG_YENTA=y or CONFIG_YENTA=m 3. make Actual Results: CC drivers/pcmcia/yenta_socket.o drivers/pcmcia/yenta_socket.c: In function `yenta_probe': drivers/pcmcia/yenta_socket.c:986: error: `KERN_ERROR' undeclared (first use in this function) drivers/pcmcia/yenta_socket.c:986: error: (Each undeclared identifier is reported only once drivers/pcmcia/yenta_socket.c:986: error: for each function it appears in.) drivers/pcmcia/yenta_socket.c:986: error: syntax error before string constant make[2]: *** [drivers/pcmcia/yenta_socket.o] Error 1 make[1]: *** [drivers/pcmcia] Error 2 make: *** [drivers] Error 2 Expected Results: The compilation of the kernel should go on. uname -a --> Linux neo 2.6.12-gentoo-r10 #5 Wed Sep 14 20:05:08 CEST 2005 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz GenuineIntel GNU/Linux CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CXXFLAGS="${CFLAGS}" MAKEOPTS="-j2" USE="-apm gtk2 gnome qt kde dvd alsa cdr acpi opengl sse sse2 samba wifi divx4linux win32codecs xvid oggvorbis xine sdl apache2 nsplugin browserplugin svg"
ck-sources is not a supported kernel [1] on Gentoo, please report this problem upstream. [1]http://www.gentoo.org/doc/en/gentoo-kernel.xml#doc_chap3
Btw, the solution is the same as for bug 106405, i.e. substitute KERN_ERROR with KERN_ERR in /drivers/pcmcia/yenta_socket.c
BTW, 2.6.13_p7 is in portage, might be fixed there.