Hello list I have just upgraded my system and was reinstalling all the programs, but got problems with a few ones, including mysql 4.1.14. When compiling I get the following error, I think it may be possible because changes in the kernel headers but am not sure because it was compiling fine in 2.6.11.11 and now have problems with 2.6.15.1
The output is this: --------------------------------------------------- if g++ -DDEFAULT_BASEDIR=\"/usr/local/mysql\" -DDATADIR="\"/usr/local/mysql/var\"" -DDEFAULT_CHARSET_HOME="\"/usr/local/mysql\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I. -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -MT my_new.o -MD -MP -MF ".deps/my_new.Tpo" -c -o my_new.o my_new.cc; \ then mv -f ".deps/my_new.Tpo" ".deps/my_new.Po"; else rm -f ".deps/my_new.Tpo"; exit 1; fi In file included from /usr/include/asm/atomic.h:6, from ../include/my_global.h:280, from mysys_priv.h:17, from my_new.cc:22: /usr/include/asm/processor.h: In function `void set_in_cr4(long unsigned int)': /usr/include/asm/processor.h:237: error: `read_cr4' undeclared (first use this function) /usr/include/asm/processor.h:237: error: (Each undeclared identifier is reported only once for each function it appears in.) /usr/include/asm/processor.h:239: error: `write_cr4' undeclared (first use this function) /usr/include/asm/processor.h: In function `void clear_in_cr4(long unsigned int) ': /usr/include/asm/processor.h:248: error: `write_cr4' undeclared (first use this function) make[2]: *** [my_new.o] Error 1 make[2]: Leaving directory `/tmp/mysql-4.1.14/mysys' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/mysql-4.1.14' make: *** [all] Error 2 ------------------------------------------------------ In particular the problem is that the following symbols are undeclared set_in_cr4, read_cr4, write_cr4, clear_in_cr4 My include directory links are so For kernel 2.6.11.11 /usr/src/linux -> /usr/src/linux-2.6.11.11 For kernel 2.6.15.1 /usr/src/linux -> /usr/src/linux-2.6.15.1 For the includes /usr/include/linux -> /usr/src/linux/include/linux /usr/include/asm -> /usr/src/linux/include/asm-i386 /usr/include/asm-generic -> /usr/src/linux/include/asm-generic to compile with different kernel versions just set the appropiate /usr/src/linux link to 2.6.11.11 or 2.6.15.1 and reboot with that kernel to ensure not only the kernel headers but the running kernel are the same before compile. With kernel 2.6.11.11 compiles fine, but when trying 2.6.15.1 simply spits errors and aborts. Does anybody have the same kernel version and problem? and if so, were you able to solve the problem? I insist that the problem could be some modifications in the latest kernel headers and that mysql uses probably the previous version... I don't know too much about it but is a simple idea... Any comment, sugestion or idea? Regards, Miguel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]