make[2]: Entering directory `/usr/src/linux-2.4.20-gentoo-r3/grsecurity' gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O3 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=grsec_chroot -c -o grsec_chroot.o grsec_chroot.c In file included from /usr/src/linux-2.4.20-gentoo-r3/include/linux/prefetch.h:13, from /usr/src/linux-2.4.20-gentoo-r3/include/linux/list.h:6, from /usr/src/linux-2.4.20-gentoo-r3/include/linux/wait.h:14, from /usr/src/linux-2.4.20-gentoo-r3/include/linux/fs.h:12, from /usr/src/linux-2.4.20-gentoo-r3/include/linux/capability.h:17, from /usr/src/linux-2.4.20-gentoo-r3/include/linux/binfmts.h:6, from /usr/src/linux-2.4.20-gentoo-r3/include/linux/sched.h:9, from grsec_chroot.c:2: /usr/src/linux-2.4.20-gentoo-r3/include/asm/processor.h:288:1: warning: "TASK_UNMAPPED_BASE" redefined /usr/src/linux-2.4.20-gentoo-r3/include/asm/processor.h:283:1: warning: this is the location of the previous definition grsec_chroot.c: In function `gr_handle_chroot_setpriority': grsec_chroot.c:56: structure has no member named `nice' make[2]: *** [grsec_chroot.o] Error 1 make[2]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r3/grsecurity' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r3/grsecurity' make: *** [_dir_grsecurity] Error 2 Also note TASK_BASE warning, seem to be improperly nested defines (x86 arch). Attaching config. Reproducible: Always Steps to Reproduce:
Created attachment 10827 [details] Kernel config
fixed in pfeifer-sources-2.4.20_pre9 which soon should be gentoo-sources-2.4.20-r4 i've tested it with your .config and it compiles fine now. thanks, Jay