The Tekram DC395 SCSI driver doesn't compile in gentoo-sources-2.4.20-r9. The problem is described on a note on the tekram scsi homepage <http://www.garloff.de/kurt/linux/dc395/>. It says under the version 1.41 notes "Important: Unfortunately, a TAB slipped in after a backslash (\) in dc395x_trm.h line 68, which prevents successful compilation with old error handling. Please remove the TAB!". Without removing the tab results in a compile error. Reproducible: Always Steps to Reproduce: 1. Enable the Tekram config option in the kernel config under scsi drivers (CONFIG_SCSI_DC395x_TRMS1040=y) 2. make dep; make bzImage Actual Results: gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=scsi_scan -c -o scsi_scan.o scsi_scan.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=scsi_syms -DEXPORT_SYMTAB -c scsi_syms.c ld -m elf_i386 -r -o scsi_mod.o scsi.o hosts.o scsi_ioctl.o constants.o scsicam.o scsi_proc.o scsi_error.o scsi_obsolete.o scsi_queue.o scsi_lib.o scsi_merge.o scsi_dma.o scsi_scan.o scsi_syms.o gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=dc395x_trm -c -o dc395x_trm.o dc395x_trm.c In file included from dc395x_trm.c:260: dc395x_trm.h:68: parse error before `:' dc395x_trm.c:315: warning: type defaults to `int' in declaration of `MODULE_DEVICE_TABLE' dc395x_trm.c:315: warning: parameter names (without types) in function declaration dc395x_trm.c:315: warning: data definition has no type or storage class dc395x_trm.c: In function `DC395x_bios_param': dc395x_trm.c:2445: warning: implicit declaration of function `scsicam_bios_param' dc395x_trm.c: At top level: dc395x_trm.c:7898: stray '\' in program dc395x_trm.c:306: warning: `dc395x_pci_tbl' defined but not used make[3]: *** [dc395x_trm.o] Error 1 make[3]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r9/drivers/scsi' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r9/drivers/scsi' make[1]: *** [_subdir_scsi] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r9/drivers' make: *** [_dir_drivers] Error 2 Expected Results: Successful kernel build.
Assigning to x86-kernel@gentoo.org as per instructions in the ebuild.
Can you do us a favor and test gentoo-sources-2.4.22?
I ran: ACCEPT_KEYWORDS=~x86 emerge =gentoo-sources-2.4.22-r1 but that build didn't have the dc395 patch. Neither did gentoo-sources-2.4.22-r2. I get a fetch error when I tried to build gentoo-sources-2.4.22: !!! Couldn't download gentoo-sources-2.4.22.patch.bz2. Aborting.
Patch is in gentoo-sources-2.4.20-r11. Thanks!