Kernel(2.6.18) compilation error in Debian Lenny
When I compiled the kernel, I get the following error.
Code:
kernel/built-in.o: In function `getnstimeofday': Code:
gzip -cd linux-2.6_2.6.18.dfsg.1-26etch2.diff.gz | patch |
Try this for me and paste the output here:
Code:
gcc -v |
... A few comments about the patch(es)..
gunzip linux-2.6_2.6.18.dfsg.1-26etch2.diff.gz patch -p1 < linux-2.6_2.6.18.dfsg.1-26etch2.diff And you will see the directory ' debian/ ' appear. Which contains patches to be applied with: patch -p<option> < <file> It is your decision, which to use. Examples : debian/patches : 48 patches debian/patches/bugfix/ : 213 patches debian/patches/bugfix/all/ : 55 patches debian/patches/bugfix/all/CVE-2009-0029/ : 65 patches debian/patches/bugfix/all/vserver/ 4 patches debian/patches/debian/ : 7 patches debian/patches/debian/dfsg/ : 6 patches debian/patches/features/ : 18 patches debian/patches/features/all/ : 8 patches debian/patches/features/all/drivers/ : 25 patches debian/patches/features/all/xen/ : 10 patches debian/patches/features/arm/ : 7 patches |
re
# gcc -v output
Code:
Using built-in specs. |
Why are you trying to compile such an old kernel? 2.6.18 was probably what came with Etch. I think lenny was 2.6.26 or better. Maybe the headers in your source tree are not correct? Anyway, the files it references must be from the headers math.h or something like that. Are you trying to reference a deprecated function?
|
Quote:
|
All times are GMT -5. The time now is 09:43 AM. |