follow the above link to see the known MySQL bug...for me at least this affects mysl 4.0.24 and 4.1.12 Downgrading linux-headers to 2.6.8-r2 has solved the problem... should the ebuild reflect this dependency issue??? Reproducible: Always Steps to Reproduce: 1. ACCEPT_KEYWORDS="~x86" emerge linux-headers 2. emerge mysql Actual Results: In file included from /usr/include/asm/percpu.h:4, from /usr/include/asm/processor.h:22, from /usr/include/asm/atomic.h:6, from ../include/my_global.h:294, from bfill.c:32: /usr/include/asm-generic/percpu.h:8: error: `CONFIG_NR_CPUS' undeclared here (not in a function) In file included from /usr/include/asm/atomic.h:6, from ../include/my_global.h:294, from bfill.c:32: /usr/include/asm/processor.h:100: error: `CONFIG_NR_CPUS' undeclared here (not in a function) make[2]: *** [bfill.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /usr/include/asm/percpu.h:4, from /usr/include/asm/processor.h:22, from /usr/include/asm/atomic.h:6, from ../include/my_global.h:294, from bmove.c:39: /usr/include/asm-generic/percpu.h:8: error: `CONFIG_NR_CPUS' undeclared here (not in a function) In file included from /usr/include/asm/atomic.h:6, from ../include/my_global.h:294, from bmove.c:39: /usr/include/asm/processor.h:100: error: `CONFIG_NR_CPUS' undeclared here (not in a function) make[2]: *** [bmove.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/mysql-4.1.12/work/mysql/strings' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mysql-4.1.12/work/mysql' make: *** [all] Error 2 Expected Results: mysql should install successfully without the CONFIG_NR_CPUS error stick to the stable linux-headers ebuild
Re-assigning to mysql folks.
This should really be fixed in the kernel headers (/usr/include/asm- generic/percpu.h). MySQL should not define CONFIG_NR_CPUS.
Upload your /usr/include/linux/autoconf.h - it should be defined there.
get back to us