Re: enbd module 2.6.13-15 kernel fails to modprobe or insmod
"Peter T. Breuer" <[email protected]> Tue, 8 Aug 2006 02:28:16 +0200 (MET DST)
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Message-ID | <[email protected]> |
"Also sprach Norbert Pieroth:" > I'm a newbie on enbd. I want to use enbd to export a 4 TB Device via netw= ork. > I tried to build 2.4.32 on a suse 10.0 and 9.3 on different machines. Actually, your kernel is 2.6.13-15 which is way BELOW mine (which is at 2.6.15.4), so 2.4.32 should compile and run just fine. It does here! If there is a problem=B8 it may be that your kernel is actually relatively old and I got the version at which kernel APIs changed wrong in one of the ifdefs in the code. So, yes, show the compile log - any funnies will show up there. Here's a typical compile line for me ... % gcc -I/home/oboe/ptb/lang/c/nbd/enbd-2.4.32/kernel/linux-2.6.x/include -Wp,-MD,/tmp/linux-2.6.x/drivers/block/enbd/.enbd_base.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -msoft-float -march=3Di686 -Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer -DMODULE -I"/home/oboe/ptb/lang/c/nbd/enbd-2.4.32/kernel/linux-2.6.x/include" -DKBUILD_BASENAME=3Denbd_base -DKBUILD_MODNAME=3Denbd -c -o /tmp/linux-2.6.x/drivers/block/enbd/enbd_base.o /tmp/linux-2.6.x/drivers/block/enbd/enbd_base.c /tmp/linux-2.6.x/drivers/block/enbd/enbd_base.c:4467: warning: `enbd_read_block_0' defined but not used % (kernel source 2.6.15.4). And here's a seamless insmod: % sudo insmod /tmp/enbd.ko=20 %=20 (hic) Make sure your compile log is as clean as the one above (only one warning, for an unused fn). Peter