On Tuesday 12 November 2002 21:56, Doug Glenn wrote:
Hi All,
I am getting an error while compiling the kernel for 8.1. I tried both the default kernel source package and the updated package above. The command used is "make dep;make bzImage" (No sense in trying for the modules yet since the kernel won't compile....)
(error starts here:) gcc -D__KERNEL__ -I/usr/src/linux-2.4.19.SuSE/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -DKBUILD_BASENAME=traps -DEXPORT_SYMTAB -c traps.c traps.c: In function `do_int3': traps.c:785: warning: implicit declaration of function `kdb' traps.c:785: `KDB_REASON_BREAK' undeclared (first use in this function) traps.c:785: (Each undeclared identifier is reported only once traps.c:785: for each function it appears in.) traps.c:785: `kdb_eframe_t' undeclared (first use in this function) traps.c:785: parse error before "regs" make[1]: *** [traps.o] Error 1 make[1]: Leaving directory `/usr/src/linux-2.4.19.SuSE/arch/i386/kernel' make: *** [_dir_arch/i386/kernel] Error 2 (error ends)
(To reproduce, use stock Suse source, On CPU page ONLY, change CPU to Athlon and say N to both Apic options on the page. Save and compile. No other changes made to stock kernel settings)
I definitely don't get that (and I don't think I ever got that) even though I run a very configured SuSE kernel. I did have some APIC (or ACPI.... it's all the same now in my head) issues, and IIRC I ended up changing a Makefile. Check out this usenet post: http://groups.google.com/groups?q=KDB_REASON_BREAK&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=anfnqh%24su5%2403%241%40news.t-online.com&rnum=1 It's in German, however, so I don't quite understand (make that 'not quite' to not at all), but it seems understable. Quote: -- Da steckt ein Fehler in /usr/src/linux-2.4.19.SuSE/arch/i386/kernel/traps.c, der Debug-Code wird kompiliert. Ändere die Zeile 658: if (kdb(KDB_REASON_BREAK, error_code, (kdb_eframe_t) regs)) return 0; _in folgende Anweisung:_ #ifdef CONFIG_KDB if (kdb(KDB_REASON_BREAK, error_code, (kdb_eframe_t) regs)) return 0; #endif /* CONFIG_KDB */ -- Judging from the smiley face on the reply to this post, it seems this solution worked. To me it basically says to edit up arch/i386/kernel/traps.c with 1 pre-processor directive. Does it work?
I've checked and there are not any unresolved conflicts showing in Yast2, so anyone with a clue, please chime in and point out what might be the problem. (I even installed kdbg on the off chance it had something to do with the error).
(On another front, I bought the upgrade version, and the admin guide on page page 267 says after copying bzImage to the boot dir to run "lilo". Strikes me as a good way to create tech support calls since 8.1 uses Grub now and running lilo is not going to make Grub happy or the end user with the resulting errors of no lilo.conf :))
I am having hard lockups on my system under X (doesn't care what WM I am using) and I want to remove ALL APM/APIC settings (it is disabled in X, but still occurs. It is disabled in the BIOS. Using an ASUS A7V266-FX that worked fine for 8.0, so it has to be the apic settings in the kernel)
Thanks in advance! Doug
--
Karol Pietrzak