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

Re: working GNU/FreeBSD chroot



i'm probably a brand stupid newbie .. but . how to chroot the thing ? mean,
under linux or under *bsd ?
:)

> On Tue, May 06, 2003 at 10:11:42PM +0200, Robert Millan wrote:
> >
> > hi!
> >
> > my GNU/FreeBSD chroot jail is finaly self-hosting. i
> > could build Glibc 2.3, GCC 3.2.3 and binutils (cvs)
> > within the jail, and these worked fine to compile
> > other packages like coreutils, etc.
> >
> > i've uploaded a tarball of the system, you can get
> > it from:
> >
> >   http://people.debian.org/~rmh/gnu-freebsd/
> >
> > (note for those of you interested on a GNU/FreeBSD
> > production system: this tarball is _USELESS_ for
> > anything other than development or bug fixing.)
> >
> > there are also some patches you might find useful
> > in the patches/ dir (some updated from Bruno's or
> > Nathan's, other added myself)
> >
> > the build environment seems realy sane for being
> > in alpha stage, but it's unable to bootstrap Debian
> > yet. there are basicaly two problems that prevent
> > building and using perl:
> >
> > - dynamic executables don't work. Glibc's dynamic
> >   linker triggers a "ELF file OS ABI invalid" error
> >   (see [glibc]/elf/dl-load.c) when loading an
> >   executable that is linked against Glibc. i'm
> >   not sure wether the problem is in ld.so, binutils
> >   or libc.so itself.
> >
> >   the workaround i used for now is to link
> >   everything staticaly, by either using [BOOT_]CFLAGS
> >   variables or a /usr/bin/gcc wrapper.
>
> This IIRC, was simply a bug in the ld.so. I attach a patch that might
> fix it.
>
> > - getpw{nam,uid} always fail (return NULL, errno=success)
> >   this could be a problem in NSS, since other
> >   NSS services are broken also (hostname resolving)
> >
>
> This is probably because of the problem above. DNS is broken, unless
> Bruno fixed it, but the NSS uses the dynamic loader.
>
> ---Nathan
>



Reply to: