Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 34185

Summary: Compiling linux-2.4.23_pre8-gss results in errors - redefined REPORT_LUNS and errors in af_irda.c
Product: Gentoo Linux Reporter: Miroslav Šulc <fordfrog>
Component: Current packagesAssignee: x86-kernel (DEPRECATED) <x86-kernel>
Status: RESOLVED NEEDINFO    
Severity: normal CC: drobbins, livewire, x86-kernel
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Miroslav Šulc gentoo-dev 2003-11-23 07:09:55 UTC
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.
Comment 1 Brad House 2004-01-18 13:48:48 UTC
er, I don't maintain gss, don't assign to me
Comment 2 Brian Jackson (RETIRED) gentoo-dev 2004-02-16 16:09:23 UTC
the REPORT_LUNS thing is just a warning, if you are still having trouble with the latest version of gs-sources, let us know.