When compiling linux-2.4.23_pre8-gss kernel, I got these two errors: 1) redefined "REPORT_LUNS" 2) 2 errors in af_irda.c Reproducible: Always Steps to Reproduce: 1. genkernel Actual Results: These errors: ----------------- SCSI -------------------------- In file included from cpqfcTScontrol.c:48: cpqfcTSstructs.h:222:1: warning: "REPORT_LUNS" redefined In file included from scsi.h:26, from sd.h:19, from cpqfcTScontrol.c:45: /usr/src/linux-2.4.23_pre8-gss/include/scsi/scsi.h:81:1: warning: this is the location of the previous definition gcc -D__KERNEL__ -I/usr/src/linux-2.4.23_pre8-gss/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing$ gcc -D__KERNEL__ -I/usr/src/linux-2.4.23_pre8-gss/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing$ ld -m elf_i386 -r -o initio.o ini9100u.o i91uscsi.o ld -m elf_i386 -r -o a100u2w.o inia100.o i60uscsi.o gcc -D__KERNEL__ -I/usr/src/linux-2.4.23_pre8-gss/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing$ In file included from cpqfcTSinit.c:57: cpqfcTSstructs.h:222:1: warning: "REPORT_LUNS" redefined In file included from scsi.h:26, from sd.h:19, from cpqfcTSinit.c:53: /usr/src/linux-2.4.23_pre8-gss/include/scsi/scsi.h:81:1: warning: this is the location of the previous definition ld -m elf_i386 -r -o cpqfc.o cpqfcTSinit.o cpqfcTScontrol.o cpqfcTSi2c.o cpqfcTSworker.o cpqfcTStrigger.o make[2]: Leaving directory `/usr/src/linux-2.4.23_pre8-gss/drivers/scsi' make[1]: Leaving directory `/usr/src/linux-2.4.23_pre8-gss/drivers' ----------------- SCSI -------------------------- ----------------- IRDA -------------------------- gcc -D__KERNEL__ -I/usr/src/linux-2.4.23_pre8-gss/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing$ af_irda.c: In function `irda_connect_indication': af_irda.c:289: parse error before "self" af_irda.c: In function `irda_getvalue_confirm': af_irda.c:388: parse error before "result" make[2]: *** [af_irda.o] Error 1 make[2]: Leaving directory `/usr/src/linux-2.4.23_pre8-gss/net/irda' make[1]: *** [_modsubdir_irda] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.23_pre8-gss/net' make: *** [_mod_net] Error 2 ----------------- IRDA -------------------------- Expected Results: Should compile without errors These are the solutions that helped for me: 1) In file 'cpqfcTSinit.c' I have added #ifndef REPORT_LUNS #define REPORT_LUNS ... (stays unchanged) #endif 2) On the specified lines there were missing commas between "__FUNCTION__" and next parameter.
er, I don't maintain gss, don't assign to me
the REPORT_LUNS thing is just a warning, if you are still having trouble with the latest version of gs-sources, let us know.