2.2.10 compilation problem

Thomas Speck (Thomas.Speck@univ-rennes1.fr)
Fri, 25 Jun 1999 14:19:14 +0000 ( )


Hi there !

I've got a problem compiling scsi.c in kernel 2.2.10. Here is the output:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2
-malign-jumps=2 -malign-functions=2 -DCPU=586 -DMODULE -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -c -o scsi.o scsi.c
scsi.c: In function `scan_scsis_single':
scsi.c:769: `TYPE_ENCLOSURE' undeclared (first use this function)
scsi.c:769: (Each undeclared identifier is reported only once
scsi.c:769: for each function it appears in.)
scsi.c: In function `resize_dma_pool':
scsi.c:2500: `TYPE_ENCLOSURE' undeclared (first use this function)
make[2]: *** [scsi.o] Error 1
make[2]: Leaving directory `/usr/src/linux/drivers/scsi'
make[1]: *** [_modsubdir_scsi] Error 2
make[1]: Leaving directory `/usr/src/linux/drivers'
make: *** [_mod_drivers] Error 2

and indeed:

grep TYPE_ENCLOSURE /usr/src/linux/include/scsi/*
[nothing]

grep SCSI .config | grep -v "not set"
# SCSI support
CONFIG_SCSI=m
# SCSI support type (disk, tape, CD-ROM)
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
# SCSI low-level drivers
CONFIG_SCSI_PPA=m

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=m
# CONFIG_CHR_DEV_ST is not set
# CONFIG_BLK_DEV_SR is not set
CONFIG_CHR_DEV_SG=m

Is it me doing something wrong there ?

Thanks for your answers

--
Thomas

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/