Re: Newbie: ENBD on kernel 2.6?
Roland Paterson-Jones <[email protected]>
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Message-ID | <[email protected]> |
Peter T. Breuer wrote: >Hi. > >"Also sprach Roland Paterson-Jones:" > > >>I'm trying to build ENBD 2.4.31 on Fedora Core 3 with kernel 2.6.9. It >>barfs pretty early looking for file 'Rules.make' in the kernel source. >>Is this normal? >> >> > >Well, if you don't have a Rules.make, I guess it is. How exactly are you >trying to build it? I see that enbd 2.4.31 does have some patches aimed >at 2.6 kernels, but the latest patch is for 2.6.7, not 2.6.9 (as >mutilated by RH or not). > > I was trying to ./configure then 'make'. Looking around in 2.4.32 I found apparent source directory for 2.6 in kernel/linux-2.6.x, and soft link kernel/linux pointing to the linux-2.4.x directory. So, I linked kernel/linux to point to kernel/linux-2.6.x and tried again. Then it gets further, but barfs in some header files (from nbd/ioctl.c). This has to do with types not defined with __KERNEL_STRICT_NAMES but used in stuff from linux/cdrom.h (why are you including cdrom headers?). I hacked by defining the types myself, then it built to completion. But now, 'insmod /tmp/enbd.ko' gets past a few messages from enbd_init (which claims it is 2.4._30_ !) then null pointer exception. Now, realise that I don't really have a clue what I'm doing... I saw that you have attempted a patch for 2.6.8 by 'dead reckoning'. Has anyone tried this? Where can I find out how to apply a kernel patch and rebuild the kernel? Regards Roland