only serial console -> build failure
gcc -Wp,-MD,drivers/char/.vt.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium4 -Iinclude/asm-i386/mach-default -fomit-frame-pointer -nostdinc
-iwithprefix include -DKBUILD_BASENAME=vt -DKBUILD_MODNAME=vt -c -odrivers/char/vt.o drivers/char/vt.cdrivers/char/vt.c: In function `vty_init':drivers/char/vt.c:2518: `console_driver' undeclared (first use in this function)drivers/char/vt.c:2518: (Each undeclared identifier is reported only oncedrivers/char/vt.c:2518: for each function it appears in.) make[2]: *** [drivers/char/vt.o] Error 1
make[1]: *** [drivers/char] Error 2
[jgarzik@fokker2 atascsi-2.5]$ grep CONS .configCONFIG_SCSI_CONSTANTS=y
# CONFIG_VT_CONSOLE is not setCONFIG_HW_CONSOLE=yCONFIG_SERIAL_8250_CONSOLE=yCONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_VGA_CONSOLE is not set
# CONFIG_MDA_CONSOLE is not setCONFIG_DUMMY_CONSOLE=y
Quoted 6 lines · Jeff Garzik
gcc -Wp,-MD,drivers/char/.vt.o.d -D__KERNEL__ -Iinclude -Wall
(quoted diff) +0
-4-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium4 -Iinclude/asm-i386/mach-default -fomit-frame-pointer -nostdinc -iwithprefix include -DKBUILD_BASENAME=vt -DKBUILD_MODNAME=vt -c -o
drivers/char/vt.odrivers/char/vt.c
Quoted 8 lines
drivers/char/vt.c: In function `vty_init':drivers/char/vt.c:2518: `console_driver' undeclared (first use in this function)drivers/char/vt.c:2518: (Each undeclared identifier is reported only oncedrivers/char/vt.c:2518: for each function it appears in.) make[2]: *** [drivers/char/vt.o] Error 1
make[1]: *** [drivers/char] Error 2
Following up:
This only occurs when CONFIG_VT=y but not CONFIG_VT_CONSOLE=y.
Jeff