After I apply the kdb patch to 2.2.18-pre15 and compile, I get this error:
cc -D__KERNEL__ -I/usr/src/linux-2.2.18-pre15/include -Wall -Wstrict-prototypes
-O2 -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -malign-loops=2
-malign-jumps=2 -malign-functions=2 -DCPU=686 -c -o init/main.o init/main.c
init/main.c: In function `parse_options':
init/main.c:1357: parse error before `extern'
init/main.c: In function `start_kernel':
init/main.c:1415: warning: implicit declaration of function `setup_arch'
init/main.c:1494: warning: implicit declaration of function `cpu_idle'
make: *** [init/main.o] Error 1
It appears the problem is a right-brace missing after line 1307 in main.c.
This brace closes the block started on line 1284.
(I'd supply a patch, but I don't know how to make one).
Unfortunately, it still doesn't compile.
cc -D__KERNEL__ -I/usr/src/linux-2.2.18-pre15/include -Wall -Wstrict-prototypes
-O2 -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -malign-loops=2
-malign-jumps=2 -malign-functions=2 -DCPU=686 -DEXPORT_SYMTAB -c serial.c
serial.c: In function `receive_chars':
serial.c:407: `regs' undeclared (first use in this function)
serial.c:407: (Each undeclared identifier is reported only once
serial.c:407: for each function it appears in.)
make[3]: *** [serial.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.2.18-pre15/drivers/char'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.2.18-pre15/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.18-pre15/drivers'
make: *** [_dir_drivers] Error 2
The variable "regs" is not defined anywhere.
Does anyone actually test these patches before publishing them? How could such
obvious errors be missed?
--
Timur Tabi - [EMAIL PROTECTED]
Interactive Silicon - http://www.interactivesi.com
When replying to a mailing-list message, please direct the reply to the mailing list
only. Don't send another copy to me.