Using same .config I had for 2.4.22, I tried to make vmlinux for 2.4.23. This error occurs: sparc64-linux-gcc -D__KERNEL__ -I/usr/src/linux-2.4.23-sparc/include -Wall -Wstr ict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -m64 -pipe - mno-fpu -mcpu=ultrasparc -mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g 7 -Wno-sign-compare -Wa,--undeclared-regs -pg -nostdinc -iwithprefix include - DKBUILD_BASENAME=ffb_drv -c -o ffb_drv.o ffb_drv.c In file included from drmP.h:75, from ffb_drv.c:9: drm_os_linux.h:16: warning: #warning the author of this code needs to read up on list_entry In file included from drm_dma.h:33, from ffb_drv.c:334: drm_os_linux.h:16: warning: #warning the author of this code needs to read up on list_entry ffb_drv.c:386: redefinition of `ffb_options' drm_drv.h:138: `ffb_options' previously defined here {standard input}: Assembler messages: {standard input}:3559: Error: symbol `ffb_options' is already defined make[4]: *** [ffb_drv.o] Error 1 make[4]: Leaving directory `/usr/src/linux-2.4.23-sparc/drivers/char/drm' make[3]: *** [first_rule] Error 2 make[3]: Leaving directory `/usr/src/linux-2.4.23-sparc/drivers/char/drm' make[2]: *** [_subdir_drm] Error 2 make[2]: Leaving directory `/usr/src/linux-2.4.23-sparc/drivers/char' make[1]: *** [_subdir_char] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.23-sparc/drivers' make: *** [_dir_drivers] Error 2 Reproducible: Always Steps to Reproduce: 1.make vmlinux 2. 3. Actual Results: Error message is in details Expected Results: give me vmlinux. I can send in my .config if needed.
Does it compile if you unset all of the following? # CONFIG_DRM_NEW is not set # CONFIG_DRM_FFB is not set # CONFIG_DRM_TDFX is not set # CONFIG_DRM_R128 is not set
Yes, if the DRM set of options is not included in the kernel, it will compile fine. It did work before, so should I fall back to the .22 code in DRM or will there be a patch?
I don't know of a fix currently, but I'm going to have a go at one (unless wesolows beats me to it, of course...). In the mean time, either stick with .22 (really not recommended because of the local root exploit) or go without DRM.
Looks like davem's already fixed this, but it didn't make it into the tree. Please try the patch from: http://marc.theaimsgroup.com/?l=linux-kernel&m=106991880307012&w=2
Patch has been added to sparc-sources-2.4.23-r1 Currently, it's marked with the ~sparc keyword, so after you sync, you may need the following command if you aren't using ACCEPT_KEYWORDS in make.conf ACCEPT_KEYWORDS="~sparc" emerge =sys-kernel/sparc-sources-2.4.23-r1