Click to See Complete Forum and Search --> : Kernel module compile error


Hena
08-17-2001, 08:43 AM
I tried to recompile my kernel (first time) and got along nicely until i made command: make modules. It made an error in compiling DEC960.c file and exited.

log:
make -C block modules
make[2]: Entering directory `/usr/src/linux-2.4.7/drivers/block'
gcc -d__KERNEL__ -i(much stuff, snipped off)
DAC960.c: In function `DAC960_ProcessRequest':
DAC960.c:2771: structure has no member named `sem'
make[2]: *** [DAC960.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.7/drivers/block'
make[1]: *** [_modsubdir_block] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.7/drivers'
make: *** [_mod_drivers] Error 2
[root@strahlhorn linux-2.4.7]#

So how can i get past this. DEC960.c-file is driver for some RAID controller. I thought to turn that module off but couldn't find it.

Hena

bdg1983
08-17-2001, 09:10 AM
It's in the block device section. Change it to 'n' and you should be good to go. I would suggest that while your at it, go through every single configuration option, read the help and then disable what you don't need.

I did that my first time and now have become quite familiar with the kernel config. Only started a month ago compiling my kernel.

Great way to learn what's what.

#
# Block devices
#
CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
CONFIG_BLK_DEV_LOOP=m
# CONFIG_BLK_DEV_NBD is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_BLK_DEV_INITRD=y