Juanito
Group: Members
Posts: 1601
Joined: Sep. 2005 |
|
Posted: Sep. 25 2007,11:47 |
|
Sometimes the error message you see is a result of an error earlier in the compile run rather than the error which caused the compile to fail.
To direct the output of the compilation to a file, you can do this:Code Sample | $ script compile_output $ make modules $ <ctrl d> $ beaver compile_output | Then you can check to see if the error you pasted above is the first error or not.
Note that to be on the safe side, you should use the 2.6.12 kernel sources, not 2.6.12.6. Here's a script I've used in the past to prepare to compile modules:Code Sample | #!/bin/bash # rm -f /lib/modules/2.6.12/modules.* cp /KNOPPIX/lib/modules/2.6.12/modules.* /lib/modules/2.6.12 # cp /mnt/sda2/download/kernel/linux-2.6.12.tar.gz /usr/src/ cd /usr/src tar -xzvf linux-2.6.12.tar.gz -C /usr/src rm -f linux-2.6.12.tar.gz # ln -s /usr/src/linux-2.6.12 /usr/src/linux ln -s /usr/src/linux-2.6.12/include/asm-i386 /usr/src/linux-2.6.12/include/asm rm -f /lib/modules/2.6.12/build ln -s /usr/src/linux-2.6.12 /lib/modules/2.6.12/build rm -f /lib/modules/2.6.12/source ln -s /usr/src/linux-2.6.12 /lib/modules/2.6.12/source # cp /mnt/sda2/download/kernel/autoconf.h /usr/src/linux-2.6.12/include/linux cp /mnt/sda2/download/kernel/version.h /usr/src/linux-2.6.12/include/linux cp /mnt/sda2/download/kernel/knoppix_cd/Module.symvers /usr/src/linux-2.6.12 cp /mnt/sda2/download/kernel/modpost /usr/src/linux-2.6.12/scripts/mod # cp -f /usr/src/linux-2.6.12/.config /usr/src/linux-2.6.12/arch/i386/defconfig cd /usr/src/linux-2.6.12 make oldconfig make modules_prepare # # EOF | where (as far as I remember) .config, autoconf.h, version.h, Module.symvers and modpost all came from the knoppix 4.0.2 iso
|