Re: Anyone's building bf on a woody system?

2000-11-22 Thread Michael Sobolev

On Wed, Nov 22, 2000 at 02:21:44PM -0700, Erik Andersen wrote:
> FYI, I just checked in this update to the header files, to be sure
> that the correct dev_t is used for the loop stuff...
Yes, I saw. :)  Thank you.

--
Misha


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Anyone's building bf on a woody system?

2000-11-22 Thread Erik Andersen

On Wed Nov 22, 2000 at 01:00:38AM +0300, Michael Sobolev wrote:
> On Tue, Nov 21, 2000 at 02:11:38PM -0700, Erik Andersen wrote:
> > On Tue Nov 21, 2000 at 10:49:43PM +0300, Michael Sobolev wrote:
> > > Subject asks it all. :)  I have problems compiling dbootstrap
> > > on a woody system...  These may be caused by libc stuff...
> > > 
> > > In file included from losetup.c:16:
> > > /usr/include/linux/loop.h:62: #error "Wrong dev_t in loop.h"
> > 
> > Argh.  
> Agree. :)
> 
> > You have modified your system such that /usr/include/linux is no longer a
> > directory containing the kernel headers that libc was compiled with.  It is now
> > a symlink, most likely to /usr/src/linux/include/linux.
> > 
> > To fix this problem, put /usr/include/linux back that way it was (this is most
> > easily done by doing an 'apt-get install --reinstall libc6 libc6-dev'
> I wish it were this way.  This was the first thing I checked. :)  No, this file
> (linux/loop.h) comes with libc6-dev package.  BTW, I also checked util-linux
> source package (where mount comes from), and found that it contains some magic:
> 
> +++ "loop.h" +++
> #include 
> #undef dev_t
> #define dev_t __kernel_dev_t
> #include 
> #undef dev_t
> --- "loop.h" ---

FYI, I just checked in this update to the header files, to be sure
that the correct dev_t is used for the loop stuff...

 -Erik

--
Erik B. Andersen   email:  [EMAIL PROTECTED]
--This message was written using 73% post-consumer electrons--


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Anyone's building bf on a woody system?

2000-11-21 Thread Erik Andersen

On Wed Nov 22, 2000 at 01:00:38AM +0300, Michael Sobolev wrote:
> On Tue, Nov 21, 2000 at 02:11:38PM -0700, Erik Andersen wrote:
> > On Tue Nov 21, 2000 at 10:49:43PM +0300, Michael Sobolev wrote:
> > > Subject asks it all. :)  I have problems compiling dbootstrap
> > > on a woody system...  These may be caused by libc stuff...
> > > 
> > > In file included from losetup.c:16:
> > > /usr/include/linux/loop.h:62: #error "Wrong dev_t in loop.h"
> > 
> > Argh.  
> Agree. :)
> 
> > You have modified your system such that /usr/include/linux is no longer a
> > directory containing the kernel headers that libc was compiled with.  It is now
> > a symlink, most likely to /usr/src/linux/include/linux.
> > 
> > To fix this problem, put /usr/include/linux back that way it was (this is most
> > easily done by doing an 'apt-get install --reinstall libc6 libc6-dev'
> I wish it were this way.  This was the first thing I checked. :)  No, this file
> (linux/loop.h) comes with libc6-dev package.  BTW, I also checked util-linux
> source package (where mount comes from), and found that it contains some magic:
> 
> +++ "loop.h" +++
> #include 
> #undef dev_t
> #define dev_t __kernel_dev_t
> #include 
> #undef dev_t
> --- "loop.h" ---

Hmm.  Ok.  Now that you mention it, I just looked and I do the same thing in
busybox (the current version, not the one in boot-floppies CVS).  As I recall,
I believe I put it in to accomodate someone that had changed those symlinks...
Regardless, the same thing should be done to dbootstrap,

 -Erik

--
Erik B. Andersen   email:  [EMAIL PROTECTED]
--This message was written using 73% post-consumer electrons--


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Anyone's building bf on a woody system?

2000-11-21 Thread Michael Sobolev

On Tue, Nov 21, 2000 at 02:11:38PM -0700, Erik Andersen wrote:
> On Tue Nov 21, 2000 at 10:49:43PM +0300, Michael Sobolev wrote:
> > Subject asks it all. :)  I have problems compiling dbootstrap
> > on a woody system...  These may be caused by libc stuff...
> > 
> > In file included from losetup.c:16:
> > /usr/include/linux/loop.h:62: #error "Wrong dev_t in loop.h"
> 
> Argh.  
Agree. :)

> You have modified your system such that /usr/include/linux is no longer a
> directory containing the kernel headers that libc was compiled with.  It is now
> a symlink, most likely to /usr/src/linux/include/linux.
> 
> To fix this problem, put /usr/include/linux back that way it was (this is most
> easily done by doing an 'apt-get install --reinstall libc6 libc6-dev'
I wish it were this way.  This was the first thing I checked. :)  No, this file
(linux/loop.h) comes with libc6-dev package.  BTW, I also checked util-linux
source package (where mount comes from), and found that it contains some magic:

+++ "loop.h" +++
#include 
#undef dev_t
#define dev_t __kernel_dev_t
#include 
#undef dev_t
--- "loop.h" ---

--
Misha


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Anyone's building bf on a woody system?

2000-11-21 Thread Erik Andersen

On Tue Nov 21, 2000 at 10:49:43PM +0300, Michael Sobolev wrote:
> Subject asks it all. :)  I have problems compiling dbootstrap
> on a woody system...  These may be caused by libc stuff...
> 
> In file included from losetup.c:16:
> /usr/include/linux/loop.h:62: #error "Wrong dev_t in loop.h"

Argh.  

You have modified your system such that /usr/include/linux is no longer a
directory containing the kernel headers that libc was compiled with.  It is now
a symlink, most likely to /usr/src/linux/include/linux.

To fix this problem, put /usr/include/linux back that way it was (this is most
easily done by doing an 'apt-get install --reinstall libc6 libc6-dev'

 -Erik

--
Erik B. Andersen   email:  [EMAIL PROTECTED]
--This message was written using 73% post-consumer electrons--


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Anyone's building bf on a woody system?

2000-11-21 Thread Michael Sobolev

Subject asks it all. :)  I have problems compiling dbootstrap
on a woody system...  These may be caused by libc stuff...

In file included from losetup.c:16:
/usr/include/linux/loop.h:62: #error "Wrong dev_t in loop.h"

--
Misha


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]