Ik vind de linux uitleggen soms wat onduidelijk...
Iets nieuws. Ik probeer iets te compileren en krijg een heel verhaal verwerkt zit in de output. Heel netjes, dat zeker, maar ik begrijp het niet helemaal. Ik zal het even copieren...:
******************************
You should not include /usr/include/{linux,asm}/ header
files directly for the compilation of kernel modules.
glibc now uses kernel header files from a well-defined
working kernel version (as recommended by Linus Torvalds)
These files are glibc internal and may not match the
currently running kernel. They should only be
included via other system header files - user space
programs should not directly include <linux/*.h> or
<asm/*.h> as well.
To build kernel modules please do the following:
o Have the kernel sources installed"
o Make sure that the symbolic link"
/lib/modules/`uname -r`/build exists and points to"
the matching kernel source directory"
o Now copy /boot/vmlinuz.version.h to"
/lib/modules/`uname -r`/build/include/linux/version.h"
o When compiling, make sure to use the following"
compiler option to use the correct include files:"
-I/lib/modules/`uname -r`/build/include"
instead of"
-I/usr/include/linux"
Please adjust the Makefile accordingly."
*******************************
Dat van die symbolic link snap ik niet. Hoe moet ik die nou noemen? Ik weet niet wat ze met /lib/modules/`uname -r`/builds bedoelen. Moet ik voor 'uname -r' iets in de plaats zetten of moet ik die link letterlijk zo noemen?
Verder kom ik er wel uit denk ik.
Iets nieuws. Ik probeer iets te compileren en krijg een heel verhaal verwerkt zit in de output. Heel netjes, dat zeker, maar ik begrijp het niet helemaal. Ik zal het even copieren...:
******************************
You should not include /usr/include/{linux,asm}/ header
files directly for the compilation of kernel modules.
glibc now uses kernel header files from a well-defined
working kernel version (as recommended by Linus Torvalds)
These files are glibc internal and may not match the
currently running kernel. They should only be
included via other system header files - user space
programs should not directly include <linux/*.h> or
<asm/*.h> as well.
To build kernel modules please do the following:
o Have the kernel sources installed"
o Make sure that the symbolic link"
/lib/modules/`uname -r`/build exists and points to"
the matching kernel source directory"
o Now copy /boot/vmlinuz.version.h to"
/lib/modules/`uname -r`/build/include/linux/version.h"
o When compiling, make sure to use the following"
compiler option to use the correct include files:"
-I/lib/modules/`uname -r`/build/include"
instead of"
-I/usr/include/linux"
Please adjust the Makefile accordingly."
*******************************
Dat van die symbolic link snap ik niet. Hoe moet ik die nou noemen? Ik weet niet wat ze met /lib/modules/`uname -r`/builds bedoelen. Moet ik voor 'uname -r' iets in de plaats zetten of moet ik die link letterlijk zo noemen?
Verder kom ik er wel uit denk ik.
[ Voor 6% gewijzigd door Verwijderd op 18-12-2002 20:01 ]