It looks (to me) like the redhat sources half-applied a devfs patch. Since (AFAIK) RedHat doesn't use devfs it's not a huge deal, but this is Gentoo! I got this during the initial compile: make[3]: Entering directory `/usr/src/linux-2.4.20-2.48/fs/devfs' gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-2.48/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=base -DEXPORT_SYMTAB -c base.c base.c: In function `is_devfsd_or_child': base.c:1417: structure has no member named `p_opptr' base.c:1417: structure has no member named `p_opptr' base.c: In function `devfsd_ioctl': base.c:3433: warning: unused variable `lock' make[3]: *** [base.o] Error 1 make[3]: Leaving directory `/usr/src/linux-2.4.20-2.48/fs/devfs' p_opptr is the *new* way of referencing the (old) real_parent pointer in include/linux/sched.h. However sched.h (and the rest of the kernel) hadn't been patched to change to using the new nomenclature. This is my patch to "fix" the devfs/base.c file. *I HAVEN'T TESTED THIS YET* but hope to soon. --- linux-2.4.20-2.48-orig/fs/devfs/base.c 2002-11-28 18:53:15.000000000 -0500 +++ linux-2.4.20-2.48/fs/devfs/base.c 2003-03-27 08:35:18.000000000 -0500 @@ -1414,7 +1414,7 @@ if (current == fs_info->devfsd_task) return (TRUE); if (current->pgrp == fs_info->devfsd_pgrp) return (TRUE); #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,1) - for (p = current->p_opptr; p != &init_task; p = p->p_opptr) + for (p = current->real_parent; p != &init_task; p = p->real_parent) { if (p == fs_info->devfsd_task) return (TRUE); } Reproducible: Always Steps to Reproduce: 1. emerge redhat-sources 2. Enable devfs in configuration 3. make bzImage 4. Wait. :) Actual Results: Kernel doesn't build. Expected Results: Kernel builds. I'm trying to see if the redhat kernel fixes bug#17571. If it does I'll take the ext3fs source tree and port it to gentoo-r2 & see if it works...
It looks like the included patch does fix the problem and the kernel runs. However I haven't tested it much as the nvidia-kernel package doesn't work with the Red Hat kernel... The ext3 stuff did work, but that's about all I've done...
redhat-sources is not patched nor maintained by gentoo. reports bugs to Red Hat.