Hello, I've been unable to compile the kernel for a while now. When I do a 'make bzImage', it always bombs out in the file kernel/exec_domain.c. I'm currently trying to compile 2.4.19pre7-ac2, though the same problem occurs in a stock 2.4.18, or 2.4.19-pre7. I'm building on a Pentium III, with RedHat 7.2 and gcc 2.95.3. The currently running kernel is 2.4.18-pre4. Attached is the list of errors I get from 'make bzImage', as well as my .config file. As for the latter, I've rebuilt it from scratch several times with the same results. Any help is appreciated... Thanks, -Jeremy Right were the error occurs: make[2]: Entering directory `/usr/src/linux-2.4.19-pre7ac2/kernel' gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-pre7ac2/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -I /usr/local/gcc-2.95.3/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include -DKBUILD_BASENAME=exec_domain -DEXPORT_SYMTAB -c exec_domain.c exec_domain.c:233: parse error before `register_exec_domain' exec_domain.c:233: warning: type defaults to `int' in declaration of `register_exec_domain' exec_domain.c:233: `register_exec_domain' redeclared as different kind of symbolexec_domain.c:113: previous declaration of `register_exec_domain' exec_domain.c:233: invalid initializer exec_domain.c:233: warning: data definition has no type or storage class exec_domain.c:233: parse error before `register_exec_domain' [...and a verly long string of warnings and errors follows, as attached...]
[root@home linux-2.4.19-pre7ac2]# make bzImage . scripts/mkversion > .tmpversion gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-pre7ac2/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.19-pre7ac2/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 " -C kernel make[1]: Entering directory `/usr/src/linux-2.4.19-pre7ac2/kernel' make all_targets make[2]: Entering directory `/usr/src/linux-2.4.19-pre7ac2/kernel' gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-pre7ac2/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -I /usr/local/gcc-2.95.3/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include -DKBUILD_BASENAME=exec_domain -DEXPORT_SYMTAB -c exec_domain.c exec_domain.c:233: parse error before `register_exec_domain' exec_domain.c:233: warning: type defaults to `int' in declaration of `register_exec_domain' exec_domain.c:233: `register_exec_domain' redeclared as different kind of symbolexec_domain.c:113: previous declaration of `register_exec_domain' exec_domain.c:233: invalid initializer exec_domain.c:233: warning: data definition has no type or storage class exec_domain.c:233: parse error before `register_exec_domain' exec_domain.c:233: warning: type defaults to `int' in declaration of `register_exec_domain' exec_domain.c:233: conflicting types for `register_exec_domain' exec_domain.c:233: previous declaration of `register_exec_domain' exec_domain.c:233: warning: excess elements in scalar initializer exec_domain.c:233: warning: (near initialization for `register_exec_domain') exec_domain.c:233: parse error before `register_exec_domain' exec_domain.c:233: warning: data definition has no type or storage class exec_domain.c:234: parse error before `unregister_exec_domain' exec_domain.c:234: warning: type defaults to `int' in declaration of `unregister_exec_domain' exec_domain.c:234: `unregister_exec_domain' redeclared as different kind of symbol exec_domain.c:140: previous declaration of `unregister_exec_domain' exec_domain.c:234: invalid initializer exec_domain.c:234: warning: data definition has no type or storage class exec_domain.c:234: parse error before `unregister_exec_domain' exec_domain.c:234: warning: type defaults to `int' in declaration of `unregister_exec_domain' exec_domain.c:234: conflicting types for `unregister_exec_domain' exec_domain.c:234: previous declaration of `unregister_exec_domain' exec_domain.c:234: warning: excess elements in scalar initializer exec_domain.c:234: warning: (near initialization for `unregister_exec_domain') exec_domain.c:234: parse error before `unregister_exec_domain' exec_domain.c:234: warning: data definition has no type or storage class exec_domain.c:235: parse error before `__set_personality' exec_domain.c:235: warning: type defaults to `int' in declaration of `__set_personality' exec_domain.c:235: `__set_personality' redeclared as different kind of symbol exec_domain.c:161: previous declaration of `__set_personality' exec_domain.c:235: invalid initializer exec_domain.c:235: warning: data definition has no type or storage class exec_domain.c:235: parse error before `__set_personality' exec_domain.c:235: warning: type defaults to `int' in declaration of `__set_personality' exec_domain.c:235: conflicting types for `__set_personality' exec_domain.c:235: previous declaration of `__set_personality' exec_domain.c:235: warning: excess elements in scalar initializer exec_domain.c:235: warning: (near initialization for `__set_personality') exec_domain.c:235: parse error before `__set_personality' exec_domain.c:235: warning: data definition has no type or storage class exec_domain.c:286: parse error before `abi_defhandler_coff' exec_domain.c:286: warning: type defaults to `int' in declaration of `abi_defhandler_coff' exec_domain.c:286: conflicting types for `abi_defhandler_coff' exec_domain.c:248: previous declaration of `abi_defhandler_coff' exec_domain.c:286: invalid initializer exec_domain.c:286: warning: data definition has no type or storage class exec_domain.c:286: parse error before `abi_defhandler_coff' exec_domain.c:286: warning: type defaults to `int' in declaration of `abi_defhandler_coff' exec_domain.c:286: conflicting types for `abi_defhandler_coff' exec_domain.c:286: previous declaration of `abi_defhandler_coff' exec_domain.c:286: warning: excess elements in scalar initializer exec_domain.c:286: warning: (near initialization for `abi_defhandler_coff') exec_domain.c:286: parse error before `abi_defhandler_coff' exec_domain.c:286: warning: data definition has no type or storage class exec_domain.c:287: parse error before `abi_defhandler_elf' exec_domain.c:287: warning: type defaults to `int' in declaration of `abi_defhandler_elf' exec_domain.c:287: conflicting types for `abi_defhandler_elf' exec_domain.c:249: previous declaration of `abi_defhandler_elf' exec_domain.c:287: invalid initializer exec_domain.c:287: warning: data definition has no type or storage class exec_domain.c:287: parse error before `abi_defhandler_elf' exec_domain.c:287: warning: type defaults to `int' in declaration of `abi_defhandler_elf' exec_domain.c:287: conflicting types for `abi_defhandler_elf' exec_domain.c:287: previous declaration of `abi_defhandler_elf' exec_domain.c:287: warning: excess elements in scalar initializer exec_domain.c:287: warning: (near initialization for `abi_defhandler_elf') exec_domain.c:287: parse error before `abi_defhandler_elf' exec_domain.c:287: warning: data definition has no type or storage class exec_domain.c:288: parse error before `abi_defhandler_lcall7' exec_domain.c:288: warning: type defaults to `int' in declaration of `abi_defhandler_lcall7' exec_domain.c:288: conflicting types for `abi_defhandler_lcall7' exec_domain.c:250: previous declaration of `abi_defhandler_lcall7' exec_domain.c:288: invalid initializer exec_domain.c:288: warning: data definition has no type or storage class exec_domain.c:288: parse error before `abi_defhandler_lcall7' exec_domain.c:288: warning: type defaults to `int' in declaration of `abi_defhandler_lcall7' exec_domain.c:288: conflicting types for `abi_defhandler_lcall7' exec_domain.c:288: previous declaration of `abi_defhandler_lcall7' exec_domain.c:288: warning: excess elements in scalar initializer exec_domain.c:288: warning: (near initialization for `abi_defhandler_lcall7') exec_domain.c:288: parse error before `abi_defhandler_lcall7' exec_domain.c:288: warning: data definition has no type or storage class exec_domain.c:289: parse error before `abi_defhandler_libcso' exec_domain.c:289: warning: type defaults to `int' in declaration of `abi_defhandler_libcso' exec_domain.c:289: conflicting types for `abi_defhandler_libcso' exec_domain.c:251: previous declaration of `abi_defhandler_libcso' exec_domain.c:289: invalid initializer exec_domain.c:289: warning: data definition has no type or storage class exec_domain.c:289: parse error before `abi_defhandler_libcso' exec_domain.c:289: warning: type defaults to `int' in declaration of `abi_defhandler_libcso' exec_domain.c:289: conflicting types for `abi_defhandler_libcso' exec_domain.c:289: previous declaration of `abi_defhandler_libcso' exec_domain.c:289: warning: excess elements in scalar initializer exec_domain.c:289: warning: (near initialization for `abi_defhandler_libcso') exec_domain.c:289: parse error before `abi_defhandler_libcso' exec_domain.c:289: warning: data definition has no type or storage class exec_domain.c:290: parse error before `abi_traceflg' exec_domain.c:290: warning: type defaults to `int' in declaration of `abi_traceflg' exec_domain.c:290: conflicting types for `abi_traceflg' exec_domain.c:252: previous declaration of `abi_traceflg' exec_domain.c:290: invalid initializer exec_domain.c:290: warning: data definition has no type or storage class exec_domain.c:290: parse error before `abi_traceflg' exec_domain.c:290: warning: type defaults to `int' in declaration of `abi_traceflg' exec_domain.c:290: conflicting types for `abi_traceflg' exec_domain.c:290: previous declaration of `abi_traceflg' exec_domain.c:290: warning: excess elements in scalar initializer exec_domain.c:290: warning: (near initialization for `abi_traceflg') exec_domain.c:290: parse error before `abi_traceflg' exec_domain.c:290: warning: data definition has no type or storage class exec_domain.c:291: parse error before `abi_fake_utsname' exec_domain.c:291: warning: type defaults to `int' in declaration of `abi_fake_utsname' exec_domain.c:291: conflicting types for `abi_fake_utsname' exec_domain.c:253: previous declaration of `abi_fake_utsname' exec_domain.c:291: invalid initializer exec_domain.c:291: warning: data definition has no type or storage class exec_domain.c:291: parse error before `abi_fake_utsname' exec_domain.c:291: warning: type defaults to `int' in declaration of `abi_fake_utsname' exec_domain.c:291: conflicting types for `abi_fake_utsname' exec_domain.c:291: previous declaration of `abi_fake_utsname' exec_domain.c:291: warning: excess elements in scalar initializer exec_domain.c:291: warning: (near initialization for `abi_fake_utsname') exec_domain.c:291: parse error before `abi_fake_utsname' exec_domain.c:291: warning: data definition has no type or storage class {standard input}: Assembler messages: {standard input}:452: Error: Symbol register_exec_domain already defined. {standard input}:458: Error: Symbol unregister_exec_domain already defined. {standard input}:464: Error: Symbol __set_personality already defined. make[2]: *** [exec_domain.o] Error 1 make[2]: Leaving directory `/usr/src/linux-2.4.19-pre7ac2/kernel' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.19-pre7ac2/kernel' make: *** [_dir_kernel] Error 2 [root@home linux-2.4.19-pre7ac2]#
Attachment:
.config
Description: Binary data