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

Re: [Nbd] NBD_CMD_* undeclared in nbd-2.8.0-rc1



Op vr, 11-02-2005 te 01:51 -0500, schreef Miguel:
> > I am a newbie

We all are, at some point :-)

> > I downloaded nbd-2.8.0-rc1
> >
> > ./configure seems to work fine ...
> > but make dies with NBD_CMD_DISC & NBD_CMD_WRITE undeclared

Darn. Must fix that (configure shouldn't have succeeded)

> > see below
> >
> > System config is:
> > [mth@...41... nbd-2.8.0-rc1]$ uname -a
> > Linux mykiss.mth.com 2.6.10-1.12_FC2 #1 Wed Feb 2 01:13:49 EST 2005 i686
> > athlon i386 GNU/Linux
> 
> I copied /lib/modules/2.6.10-1.12_FC2/build/include/linux/nbd.h to my
> build directory, reran ./configure, and it seemed to compile OK.
> 
> Why did I have to copy this?

You need a 2.6 nbd.h to be able to compile nbd 2.8 (or 2.7.0, but I
temporarily removed that code there)

> Why is my /usr/include/linux/ndb.h out of sync with my kernel sources?

These days, distributors will generally put the linux include files they
used to compile glibc, in /usr/include. Why Fedora is using 2.4 headers
to compile glibc is beyond me, but that seems to be what's happening.

-- 
         EARTH
     smog  |   bricks
 AIR  --  mud  -- FIRE
soda water |   tequila
         WATER
 -- with thanks to fortune




Reply to: