[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Nbd] mbd.h not found

On Wed, Jun 21, 2006 at 05:04:54PM +0200, Sascha Effert wrote:
> Hello,
> I am trying to compile nbd-2.8.5 using a 2.6.9 Kernel in RedHat AS 4. While 
> running configure I get the message:
> checking where to find a working nbd.h... configure: error: Could not find an 
> nbd.h from kernel 2.6 or above.

Open your nbd.h in a pager or an editor or so. It should contain the
following enum:

enum {
        NBD_CMD_READ = 0,
        NBD_CMD_WRITE = 1,
        NBD_CMD_DISC = 2

if it doesn't, it's outdated and of no use to you. In that case, please
download the kernel source of a more recent kernel, and put the nbd.h
from that kernel in the directory where your NBD source is. It should
work then.

For now, it's okay if you use an nbd.h from a kernel which you're not
actually running.

Fun will now commence
  -- Seven Of Nine, "Ashes to Ashes", stardate 53679.4

Reply to: