On 12 Jan 2004 15:37:30 GMT Michael Rex <[EMAIL PROTECTED]> wrote: > I just rsync'ed to update my linux-2.4-benh sources. The new sources > fail to compile with a lot of errors in defkeymap.c: > > defkeymap.c:27: warning: excess elements in array initializer > defkeymap.c:27: warning: (near initialization for `plain_map') > [...] > defkeymap.c:476: warning: excess elements in array initializer > defkeymap.c:476: warning: (near initialization for `ctrl_alt_map') > make[4]: *** [defkeymap.o] Error 1 > make[3]: *** [first_rule] Error 2 > make[2]: *** [_subdir_char] Error 2 > make[1]: *** [_dir_drivers] Error 2 > make: *** [stamp-build] Error 2
Ok... I have the SAME problem since a month or more. I used to compile my kernels from there. I'm using MOL and I need to upgrade it... Compiling the mol-modules needs the source code of the kernel you will run mol under... I know... I made a mistake, I didn't backup my running kernel sources. But it was pretty cool to rsync a kernel tree when it works... I put here the beginning of the error. Perhaps some good soul will help. thanks [SNIP] make[3]: Entering directory `/usr/src/benh_kernel/drivers/char' gcc -D__KERNEL__ -I/usr/src/benh_kernel/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I/usr/src/benh_kernel/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -nostdinc -iwithprefix include -DKBUILD_BASENAME=defkeymap -c -o defkeymap.o defkeymap.c defkeymap.c:1: error: parse error before "defkeymap" In file included from /usr/src/benh_kernel/include/linux/types.h:15, from defkeymap.c:6: /usr/src/benh_kernel/include/linux/posix_types.h:38: warning: type defaults to `int' in declaration of `__kernel_fd_set' /usr/src/benh_kernel/include/linux/posix_types.h:38: warning: data definition has no type or storage class In file included from /usr/src/benh_kernel/include/linux/posix_types.h:46, from /usr/src/benh_kernel/include/linux/types.h:15, from defkeymap.c:6: /usr/src/benh_kernel/include/asm/posix_types.h:58: error: parse error before "__kernel_fd_set" /usr/src/benh_kernel/include/asm/posix_types.h:59: warning: function declaration isn't a prototype /usr/src/benh_kernel/include/asm/posix_types.h: In function `__FD_SET': /usr/src/benh_kernel/include/asm/posix_types.h:60: error: `fd' undeclared (first use in this function) /usr/src/benh_kernel/include/asm/posix_types.h:60: error: (Each undeclared identifier is reported only once /usr/src/benh_kernel/include/asm/posix_types.h:60: error: for each function it appears in.) /usr/src/benh_kernel/include/asm/posix_types.h:62: error: `fdsetp' undeclared (first use in this function) /usr/src/benh_kernel/include/asm/posix_types.h: At top level: /usr/src/benh_kernel/include/asm/posix_types.h:66: error: parse error before "__kernel_fd_set" /usr/src/benh_kernel/include/asm/posix_types.h:67: warning: function declaration isn't a prototype /usr/src/benh_kernel/include/asm/posix_types.h: In function `__FD_CLR': /usr/src/benh_kernel/include/asm/posix_types.h:68: error: `fd' undeclared (first use in this function) /usr/src/benh_kernel/include/asm/posix_types.h:70: error: `fdsetp' undeclared (first use in this function) /usr/src/benh_kernel/include/asm/posix_types.h: At top level: /usr/src/benh_kernel/include/asm/posix_types.h:74: error: parse error before "__kernel_fd_set" /usr/src/benh_kernel/include/asm/posix_types.h:75: warning: function declaration isn't a prototype /usr/src/benh_kernel/include/asm/posix_types.h: In function `__FD_ISSET': /usr/src/benh_kernel/include/asm/posix_types.h:76: error: `fd' undeclared (first use in this function) /usr/src/benh_kernel/include/asm/posix_types.h:78: error: `p' undeclared (first use in this function) /usr/src/benh_kernel/include/asm/posix_types.h: At top level: /usr/src/benh_kernel/include/asm/posix_types.h:86: error: parse error before '*' token /usr/src/benh_kernel/include/asm/posix_types.h:87: warning: function declaration isn't a prototype /usr/src/benh_kernel/include/asm/posix_types.h: In function `__FD_ZERO': /usr/src/benh_kernel/include/asm/posix_types.h:88: error: `p' undeclared (first use in this function) In file included from defkeymap.c:6: /usr/src/benh_kernel/include/linux/types.h: At top level: /usr/src/benh_kernel/include/linux/types.h:20: error: parse error before "fd_set" /usr/src/benh_kernel/include/linux/types.h:20: warning: type defaults to `int' in declaration of `fd_set' /usr/src/benh_kernel/include/linux/types.h:20: warning: data definition has no type or storage class defkeymap.c:10: error: `nr_keys' undeclared here (not in a function) defkeymap.c:10: error: conflicting types for `plain_map' /usr/src/benh_kernel/include/linux/keyboard.h:28: error: previous declaration of `plain_map' defkeymap.c:11: warning: excess elements in scalar initializer defkeymap.c:11: warning: (near initialization for `plain_map') defkeymap.c:11: warning: excess elements in scalar initializer [SNIP] defkeymap.c:476: warning: (near initialization for `ctrl_alt_map') defkeymap.c:480: error: initializer element is not constant defkeymap.c:480: error: (near initialization for `key_maps[0]') defkeymap.c:480: error: initializer element is not constant defkeymap.c:480: error: (near initialization for `key_maps[1]') defkeymap.c:480: error: initializer element is not constant defkeymap.c:480: error: (near initialization for `key_maps[2]') defkeymap.c:481: error: initializer element is not constant defkeymap.c:481: error: (near initialization for `key_maps[4]') defkeymap.c:481: error: initializer element is not constant defkeymap.c:481: error: (near initialization for `key_maps[5]') defkeymap.c:482: error: initializer element is not constant defkeymap.c:482: error: (near initialization for `key_maps[8]') defkeymap.c:483: error: initializer element is not constant defkeymap.c:483: error: (near initialization for `key_maps[12]') defkeymap.c:10: error: storage size of `plain_map' isn't known defkeymap.c:77: error: storage size of `shift_map' isn't known defkeymap.c:144: error: storage size of `altgr_map' isn't known defkeymap.c:211: error: storage size of `ctrl_map' isn't known defkeymap.c:278: error: storage size of `shift_ctrl_map' isn't known defkeymap.c:345: error: storage size of `alt_map' isn't known defkeymap.c:412: error: storage size of `ctrl_alt_map' isn't known make[3]: *** [defkeymap.o] Error 1 make[3]: Leaving directory `/usr/src/benh_kernel/drivers/char' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/benh_kernel/drivers/char' make[1]: *** [_subdir_char] Error 2 make[1]: Leaving directory `/usr/src/benh_kernel/drivers' make: *** [_dir_drivers] Error 2 -- marco -- Clé PGP publique : http://iftbqp.mine.nu/marco.asc
pgp8I46SlXObE.pgp
Description: PGP signature