glibc and /dev/null in the chrooted environment

Sparhawk sparhawk at idirect.ca
Sun Oct 28 11:57:49 PST 2001


Whenever I had a problem with /dev/null when compiling glibc inside the
chroot env I just delete the device file and restart the compile on a
clean source tree and everything seems to work fine.  

-----Original Message-----
From: blfs-support-owner at linuxfromscratch.org
[mailto:blfs-support-owner at linuxfromscratch.org] On Behalf Of Jesse
McCrosky
Sent: Sunday, October 28, 2001 1:51 PM
To: blfs-support at linuxfromscratch.org
Subject: Re: glibc and /dev/null in the chrooted environment

I don't remember the details, but I think there's a mount option which
disables access to device files.  Check how you're mounting your lfs
partition.  Take a look at the mount man page.

Mike Labriola wrote:
> 
> Jeroen Coumans wrote:
> 
> > ----- Original Message -----
> > From: "Mike Labriola" <labriomd at clarkson.edu>
> > To: <blfs-support at linuxfromscratch.org>
> > Sent: Sunday, October 28, 2001 5:16 PM
> > Subject: glibc and /dev/null in the chrooted environment
> >
> >
> >
> >>ok, this has got me stumped...  my guess is that it's probably some
dumb
> >>little error on my part, but i just can't find it.
> >>
> >>i'm building another lfs system on my other machine and when i get
to
> >>enter the chrooted environment and run the script listed on lfs 3.0
for
> >>glibc i get this error:
> >>
> >>loading cache ./config.cache
> >>../glibc-2.2.4/configure: /dev/null: Permission denied
> >>../glibc-2.2.4/configure: /dev/null: Permission denied
> >>configure: error: can not run ../glibc-2.2.4/scripts/config.sub
> >>
> >>
> >>so...  it's bailing before it even gets through the configure...
ouch
> >>what's confusing is that /dev/null is created in the first step of
that
> >>script.  i looked through the archives, and found a thread
suggesting
> >>that i just exit the chrooted env and reenter it, but that didn't do
> >>anything different.
> >>
> >>anyone else run into this before?
> >>
> >>
> > Did you check the permissions on /dev/null? 'ls -l /dev/null' should
give
> > crw-rw-rw- 1 root root 1,3. If not, recreate it according to the
> > instructions in the LFS book.
> > HTH
> >
> 
> that's exactly what i get, although root root is replaced with 0 0
> inside the chrooted environment...  that's because glibc isn't
installed
> yet, right?
> 
> -mike
> 
> --
> Unsubscribe: send email to listar at linuxfromscratch.org
> and put 'unsubscribe blfs-support' in the subject header of the
message

-- 
	jesse McCrosky
	mccrosky at ualberta.ca
	GPG Public Key: http://www.ualberta.ca/~mccrosky/public_key.asc
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list