Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96245 - MySQL will not compile with linux-headers =>2.6.11
Summary: MySQL will not compile with linux-headers =>2.6.11
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: SpanKY
URL: http://bugs.mysql.com/7970
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-15 20:48 UTC by Viktor Avramov
Modified: 2005-06-19 19:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Viktor Avramov 2005-06-15 20:48:44 UTC
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
Comment 1 Chris White (RETIRED) gentoo-dev 2005-06-15 21:53:53 UTC
Re-assigning to mysql folks.  
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-06-15 22:41:27 UTC
This should really be fixed in the kernel headers (/usr/include/asm-
generic/percpu.h). MySQL should not define CONFIG_NR_CPUS.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2005-06-17 14:31:14 UTC
Upload your /usr/include/linux/autoconf.h - it should be defined there.
Comment 4 SpanKY gentoo-dev 2005-06-19 19:34:14 UTC
get back to us