Bug #16769 | compling using kernel only code, read_cr4() | ||
---|---|---|---|
Submitted: | 25 Jan 2006 7:13 | Modified: | 21 Feb 2006 15:39 |
Reporter: | Brian Shea | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
Version: | 5.0.18 | OS: | Linux (Slackware 10 + Kernal 2.6.14.4) |
Assigned to: | CPU Architecture: | Any |
[25 Jan 2006 7:13]
Brian Shea
[25 Jan 2006 16:24]
Valeriy Kravchuk
Thank you for a problem report. Please, check, is it a duplicate of http://bugs.mysql.com/bug.php?id=13621 really
[25 Jan 2006 16:51]
Brian Shea
May very well, be, but at first glance that was a M68k System not i386. So if it was fixed for the M68k it should have been looked at on other architectures as well. I searched for read_cr4() and found no bug list results. This problem can be tracked back to Mysql-4.0.15.
[8 Feb 2006 14:26]
Valeriy Kravchuk
I think, it is, in fact, a duplicate of bug #13621 (2.6 kernel and 5.0.x involved) and/or even bug #7851 (the fix was documented for 4.1.x only there). So, please, wait for the 5.0.x version with fixes for these bugs included, and then try to repeat with it.
[21 Feb 2006 8:37]
gilbert LE DREAU
Hello asm/in processor.h Because functions set_in_cr4() and clear_in_cr4() use write_cr4 an read_cr4 who are Kernel functions juste add #ifdef __KERNEL__ // before kernel function call #endif // after kernel function call like this #ifdef __KERNEL__ static inline void set_in_cr4 (unsigned long mask) { unsigned cr4; mmu_cr4_features |= mask; cr4 = read_cr4(); cr4 |= mask; write_cr4(cr4); } static inline void clear_in_cr4 (unsigned long mask) { unsigned cr4; mmu_cr4_features &= ~mask; cr4 = read_cr4(); cr4 &= ~mask; write_cr4(cr4); } #endif And It will compile
[21 Feb 2006 15:39]
Brian Shea
Okay, i will try a new 5.0.x version, but I used the latest (at the time) 5.0.18. I will look at the other bug reports and continue trying to build MySQL.