[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Can't compile kernel 2.4.18 for d class



Hello,

Just to see how it works I tried to recompile my kernel to 2.4.18 on a D class server (I'm presently on 2.4.17-32) using woody (3.0). I only have the discs and no internet access from my server. I installed kernel-package and the source for 2.4.18 kernel from the cd. I followed the instructions:-

1) untar in /usr/src
2) cp /boot/config-2.4.17-32 to /usr/src/kernel-source-2.4.18 .config
3) make oldconfig
4) answered various questions
5) make-kpkg clean
6) make-kpkg --revision=test01 kernel_image

Then I get all the errors below. It looks like a problem with glibc/gcc or header problems. Being new to debian I'm not sure what the problem is. To test things out I ran make oldconfig again and answered no to all the new questions, ran the make-kpkg again and it still failured with the same errors. Which is why I think it is a library problem. A while back I got the deb for lib6c and installed that, I think the version was 2.2.5-14.3 could that too new for my make-kpkg.


what could the problem(s) be?

thanks

Leo

ERRORS:-


In file included from /usr/lib/gcc-lib/hppa-linux/3.0.4/include/syslimits.h:7,
                from /usr/lib/gcc-lib/hppa-linux/3.0.4/include/limits.h:11,
                from scripts/mkdep.c:35:
/usr/lib/gcc-lib/hppa-linux/3.0.4/include/limits.h:125:75: limits.h: No such file or directory
In file included from scripts/mkdep.c:36:
/usr/lib/gcc-lib/hppa-linux/3.0.4/include/stdio.h:37:23: features.h: No such file or directory
In file included from /usr/lib/gcc-lib/hppa-linux/3.0.4/include/stdio.h:43,
                from scripts/mkdep.c:36:
/usr/lib/gcc-lib/hppa-linux/3.0.4/include/stddef.h:199: syntax error before "typedef"
In file included from scripts/mkdep.c:36:
/usr/lib/gcc-lib/hppa-linux/3.0.4/include/stdio.h:45:25: bits/types.h: No such file or directory /usr/lib/gcc-lib/hppa-linux/3.0.4/include/stdio.h:74:19: libio.h: No such file or directory
In file included from scripts/mkdep.c:36:
/usr/lib/gcc-lib/hppa-linux/3.0.4/include/stdio.h:89: parse error before "fpos_t"

followed by


scripts/mkdep.c:37:20: stdlib.h: No such file or directory
scripts/mkdep.c:38:20: string.h: No such file or directory
scripts/mkdep.c:39:20: unistd.h: No such file or directory
scripts/mkdep.c:41:23: sys/fcntl.h: No such file or directory
scripts/mkdep.c:42:22: sys/mman.h: No such file or directory
scripts/mkdep.c:43:22: sys/stat.h: No such file or directory
scripts/mkdep.c:44:23: sys/types.h: No such file or directory
scripts/mkdep.c:48: syntax error before "char"
scripts/mkdep.c: In function `do_depname':
scripts/mkdep.c:78: warning: implicit declaration of function `printf'
scripts/mkdep.c: In function `grow_config':
scripts/mkdep.c:93: warning: implicit declaration of function `realloc'
scripts/mkdep.c:93: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:95: warning: implicit declaration of function `perror'
scripts/mkdep.c:95: warning: implicit declaration of function `exit'
scripts/mkdep.c: In function `is_defined_config':
scripts/mkdep.c:111: warning: implicit declaration of function `memcmp'
scripts/mkdep.c: In function `define_config':
scripts/mkdep.c:126: warning: implicit declaration of function `memcpy'
scripts/mkdep.c: In function `grow_precious':
scripts/mkdep.c:163: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c: In function `define_precious':
scripts/mkdep.c:176: warning: implicit declaration of function `strlen'
scripts/mkdep.c: In function `handle_include':
scripts/mkdep.c:204: warning: implicit declaration of function `access'
scripts/mkdep.c:204: `F_OK' undeclared (first use in this function)
scripts/mkdep.c:204: (Each undeclared identifier is reported only once
scripts/mkdep.c:204: for each function it appears in.)
scripts/mkdep.c: In function `add_path':
scripts/mkdep.c:221: `PATH_MAX' undeclared (first use in this function)
scripts/mkdep.c:221: size of array `resolved_path' has non-integer type
scripts/mkdep.c:224: warning: implicit declaration of function `strcmp'
scripts/mkdep.c:225: warning: implicit declaration of function `realpath'
scripts/mkdep.c:225: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:227: warning: implicit declaration of function `fprintf'
scripts/mkdep.c:235: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:243: warning: implicit declaration of function `malloc'
scripts/mkdep.c:243: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:248: warning: implicit declaration of function `strcpy'
scripts/mkdep.c: In function `use_config':
scripts/mkdep.c:271: warning: implicit declaration of function `isupper'
scripts/mkdep.c:271: warning: implicit declaration of function `tolower'
scripts/mkdep.c: In function `state_machine':
scripts/mkdep.c:493: warning: implicit declaration of function `isalnum'
scripts/mkdep.c: In function `do_depend':
scripts/mkdep.c:526: warning: implicit declaration of function `getpagesize'
scripts/mkdep.c:528: storage size of `st' isn't known
scripts/mkdep.c:531: warning: implicit declaration of function `open'
scripts/mkdep.c:531: `O_RDONLY' undeclared (first use in this function)
scripts/mkdep.c:537: warning: implicit declaration of function `fstat'
scripts/mkdep.c:540: warning: implicit declaration of function `close'
scripts/mkdep.c:546: warning: implicit declaration of function `mmap'
scripts/mkdep.c:546: `PROT_READ' undeclared (first use in this function)
scripts/mkdep.c:546: `MAP_PRIVATE' undeclared (first use in this function)
scripts/mkdep.c:546: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:562: warning: implicit declaration of function `puts'
scripts/mkdep.c:567: warning: implicit declaration of function `munmap'
scripts/mkdep.c:528: warning: unused variable `st'
scripts/mkdep.c: In function `main':
scripts/mkdep.c:581: warning: implicit declaration of function `getenv'
scripts/mkdep.c:581: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:583: warning: implicit declaration of function `fputs'
scripts/mkdep.c:591: warning: implicit declaration of function `strncmp'
make[2]: *** [scripts/mkdep] Error 1
make[2]: Leaving directory `/usr/src/kernel-source-2.4.18'
make[1]: *** [dummy_do_dep] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.4.18'
make: *** [stamp-kernel-configure] Error 2


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



Reply to: