powerpc-linux-gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O -fno-strict-aliasing -fno-common -fomit-frame-pointer -g -I/usr/src/linux-2.4/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -g -nostdinc -iwithprefix include -DKBUILD_BASENAME=ksyms -DEXPORT_SYMTAB -c ksyms.c powerpc-linux-gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O -fno-strict-aliasing -fno-common -fomit-frame-pointer -g -I/usr/src/linux-2.4/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -g -nostdinc -iwithprefix include -DKBUILD_BASENAME=kgdbstub -c -o kgdbstub.o kgdbstub.c kgdbstub.c: In function `kgdb_handle_exception': kgdbstub.c:622: error: `thref' undeclared (first use in this function) kgdbstub.c:622: error: (Each undeclared identifier is reported only once kgdbstub.c:622: error: for each function it appears in.) kgdbstub.c:654: error: `thread' undeclared (first use in this function) kgdbstub.c:751: error: `maxthreads' undeclared (first use in this function) kgdbstub.c:761: error: `nothreads' undeclared (first use in this function) make[2]: *** [kgdbstub.o] Error 1 make[2]: Leaving directory `/usr/src/linux-2.4/kernel' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4/kernel' make: *** [_dir_kernel] Error 2