vt.c and kbd_rate


Subject: vt.c and kbd_rate
From: Donovan Warren (aramis_@Bacil.DYNDNS.ORG)
Date: Mon Aug 20 2001 - 19:06:27 MDT


when attempting to run
make zImage

under kernel 2.4.9 (after make mrproper, make menuconfig, and make dep, all
of which ran fine), I get this error:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.9/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-D__powerpc__ -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized
-mmultiple -mstring -c -o vt.o vt.c
vt.c: In function `vt_ioctl':
vt.c:507: `kbd_rate' undeclared (first use in this function)
vt.c:507: (Each undeclared identifier is reported only once
vt.c:507: for each function it appears in.)
vt.c:514: `kbd_rate' used prior to declaration
vt.c:514: warning: implicit declaration of function `kbd_rate'
make[3]: *** [vt.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.9/drivers/char'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.9/drivers/char'
make[1]: *** [_subdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.9/drivers'
make: *** [_dir_drivers] Error 2

when in vi, I did a search on kbd_rate, and sure enough, it's used in a
switch before it's been defined:

 /* Linux m68k/i386 interface for setting the keyboard delay/repeat rate
*/
 
        case KDKBDREP:
        {
                struct kbd_repeat kbrep;
 
                if (!kbd_rate) return( -EINVAL );

/* stuff snipped */

Has anyone successfully gotten 2.4.9 to compile on PPC (YDL, specifically),
and if so, how did you get around this? (it did the same thing when I did a
make vmlinux).



This archive was generated by hypermail 2a24 : Mon Aug 20 2001 - 18:14:52 MDT