On Wednesday 20 December 2006 15:56, arnuld wrote: > the Glibc documentation recommends building Glibc outside of the > source directory in a dedicated build directory: > > mkdir -v ../glibc-build > cd ../glibc-build > > Next, prepare Glibc for compilation: > > ../glibc-2.3.6/configure --prefix=/tools \ > --disable-profile --enable-add-ons \ > --enable-kernel=2.6.0 --with-binutils=/tools/bin \ > --without-gd --with-headers=/tools/include \ > --without-selinux > --------------------------------------------------------------------------------------- > > Koenraad, if you are in the UNTARRED directory then you you do > "./configure" not "../glibc-2.3.6/configure" (which shows that you are > outside of UNTARRED directory)
Well, the actual sequence of actions are as follows: 1. Untar an archive to $LFS/sources. That would create a new subdirectory $LFS/sources/glibc-2.3.6. 2. Cd to the new directory as the book says. Now you're in $LFS/sources/glibc-2.3.6. 3. mkdir ../glibc-build would create the $LFS/sources/glibc-2.3.6/../glibc-build directory that's actually $LFS/sources/glibc-build. As you see, the new directory is created in $LFS/sources which owner is lfs. Concerning the warning about linuxthreads, I don't know why you have it but I guess is't safe to just ignore it passing the --disable-sanity-checking flag to the configure. Though I've never seen this warning. The idea is that a few years ago linuxthreads was a standard thread library for linux but the 2.6.x kernel introduced new thread library called NPTL and linuxthreads became unnecessary. Moreover, if one wished to use linuxthreads he/she had to download a special file (in the case of glibc-2.3.6 it was ftp://ftp.gnu.org/gnu/glibc/glibc-linuxthreads-2.3.6.tar.bz2) and unpack it to the directory created while unpacking the main archive (or something like that, I mean this add-on wasn't in the main glibc archive). Now, linuxthreads is unnecessary so LFS doesn't tell users to download and unpack this "special" file. AFAIK many distos don't have linuxthreads at all. -- Nothing but perfection pv -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
