Re: [lfs-support] Cannot boot to LFS with seperate boot partition
On Mon, 25 Jun 2012 17:24:12 +0100 Yasser Zamani yasser.zam...@live.com wrote: root@slax:~# cat /mnt/sda7/grub/grub.cfg # Begin /boot/grub/grub.cfg set default=0 set timeout=5 # WHEN I SELECT THIS ENTRY IT TELLS error: no argument specified BUT AFTER KEY PRESS ENTERS TO WINDOWS SUCCESSFULLY menuentry Windows 7 (loader) (on /dev/sda3) { insmod part_msdos insmod ntfs set root='(hd0,msdos3)' search --no-floppy --fs-uuid --set 125c5cdd5c5cbd63 chainloader +1 } My guess is that it's the search line that's causing the error: no argument specified message. try removing it. # WHEN I SELECT THIS ONE IT TELLS error: file not found BUT AFTER KEY PRESS ENTERS TO LFS SUCCESSFULLY menuentry GNU/Linux, Linux 3.4.1-lfs-SVN-20120617 { insmod ext3 set root=(hd0,7) linux /vmlinuz-3.4.1-lfs-SVN-20120617 root=/dev/sda6 ro } Is there an ext3.mod? I only have ext2.mod but I find that I've never needed to insmod anything, grub always does it automatically. Try removing the insmod line. The way to test changes is to leave int the entries that work but make a duplicate with the new modifications (that way you can still boot with the original entry). Try adding this to your grub.cfg: menuentry Windows 7 testing { set root='(hd0,msdos3)' chainloader +1 } menuentry GNU/Linux testing { set root=(hd0,7) linux /vmlinuz-3.4.1-lfs-SVN-20120617 root=/dev/sda6 ro } Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [blfs-support] wget: unable to resolve host address
On Tue, 26 Jun 2012 10:55:32 +0100 Omar vic...@yahoo.com.cn wrote: Hi, all, I used wget to download and got the following prompt. http://anduin.linuxfromscratch.org/files/BLFS/svn/xorg/proto-7.7-1.md5 Resolving anduin.linuxfromscratch.org... failed: Name or service not known. wget: unable to resolve host address `anduin.linuxfromscratch.org' I doubt that my parsing of domain name is wrong. For other example I can get response from ping 192.168.x.x but can't from ping www.google.com and it tells me unknown host. Any suggestions? cat /etc/resolv.conf HERE_DOC nameserver 8.8.4.4 nameserver 8.8.8.8 HERE_DOC Andy -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] glibc 5.7
On Thu, 21 Jun 2012 11:57:19 +0100 Tobias Gasser l...@ebp-gasser.ch wrote: why are the CC= AR= RANLIB= not set for glibc? To quote from the glibc page http://www.linuxfromscratch.org/lfs/view/development/chapter05/glibc.html --host=$LFS_TGT, --build=$(../glibc-2.15/scripts/config.guess) The combined effect of these switches is that Glibc's build system configures itself to cross-compile, using the cross-linker and cross-compiler in /tools. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Cannot boot to LFS with seperate boot partition
On Thu, 21 Jun 2012 17:04:24 +0100 Yasser Zamani yasser.zam...@live.com wrote: Now, system can find Linux kernel and boot to the root :) But at first, it tells error: file not found and I have to press a key to continue; do you have any idea please? Could you post your grub.cfg please? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS-BOOK-7.0 Section 5.9 binutils pass2 doubt
On Tue, 19 Jun 2012 18:09:21 +0100 Emerson Yesupatham yemerson1...@gmail.com wrote: *My host system violates one of the prerequisites mentioned in page XVi* *Linux Kernel-2.6.25 * So what are you saying, that your kernel is older than 2.6.25? Glibc is configured with --enable-kernel=2.6.25 so if you try to use it (eg, when configuring the next package, Binutils) with an older kernel it won't work and you'll get an error message like the one you posted. The obvious solution is to get a newer kernel but you could also try configuring glibc with --enable-kernel=$(uname -r) but it may not work (I can't remember why). So upgrade your kernel before you start the book. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] AMD Catalyst drivers and LFS-7.1ish
On Thu, 07 Jun 2012 00:09:31 +0100 Kristian Poul Herkild krist...@herkild.dk wrote: How on Earth does one manage to get that binary piece of junk to work? I've tried several approaches now, and after a few weeks with no luck getting first 12.2 and now 12.4 to work I'm about to give up. Has anybody managed to get AMD Catalyst drivers to work with LFS-7.1ish? I did use it for a while but it was years ago (long before LFS 7.1). If I were to try again I'd install Xorg (maybe an old version as newer versions of Xorg always used to break frglx) then I'd recompile the kernel (maybe an old version as frglx often didn't work with the current kernel) and I would enable modules and disable some of the graphics options (IIRC it didn't like the framebuffer so no more penguins for you!) then I would install the kernel, make modules_install and leave the kernel source where it was. Reboot into the new kernel and and try and run the catalyst frglx installer. Then I'd spend a couple of days Googling on the error messages and reading posts from the Gentoo forums until I gave up again in disgust. Why did I waste my time on this junk again? Actually I may be going round this cycle again in the near future if the stories about Steam coming to Linux pan out :) Andy PS, as this topic involves Xorg it should really be discussed on the BLFS Support mailing list -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] handle power button in LFS
On Fri, 18 May 2012 14:44:00 +0100 xinglp xin...@gmail.com wrote: In order to use power button to shutdown or suspend my lfs. I enabled the depreciate /proc/acpi/event in kernel, and install acpid to handle the button event. It works well. But is there any clear way to do that, such as by inittab or udev or kernel callout userspace script ( /proc/sys/kernel/poweroff_cmd has somethings ) I've looked into blfs, there's a lot more packages need to be installed to enable this.(I'm not a X user,for now.) I don't know of any other way of handling the power button event at init 3. I used to install acpid, like you, for this reason but I stopped as I hardly spend any time at the command prompt nowadays. So what I do now is alter /etc/inittab so that it handles ctrl alt del by shutting down instead of rebooting: ca:12345:ctrlaltdel:/sbin/halt When X is running I have my window manager (Openbox) handle pressing the power button (xev says it is XF86PowerOff) by running a script which (after it's tidied up a few things) calls /sbin/halt. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Problems starting the final LFS system
On Mon, 14 May 2012 14:31:11 +0100 Lázaro Morales laz...@frioclima.com.cu wrote: En 14/05/2012 08:54:50, Эмиль Кранц bl8r1...@tut.by escribió: Have a closer look: /dev/sdaX in fstab and /dev/hdaX in error message IDE and SCSI? Typo? Cheerio. The virtual machine have 1 virtual disk IDE. The '/dev' folder is: root:/sources# ls -l /dev | grep sda lrwxrwxrwx 1 root root 4 May 4 11:55 root- sda1 brw-rw 1 root daemon8, 0 May 4 11:55 sda brw-rw 1 root daemon8, 1 May 4 11:55 sda1 brw-rw 1 root daemon8, 2 May 4 11:55 sda2 brw-rw 1 root daemon8, 3 May 4 12:08 sda3 brw-rw 1 root daemon8, 4 May 4 11:56 sda4 The 'fstab' file: # Begin /etc/fstab # file system mount-point type options dump fsck #order /dev/hda4 /ext3 defaults 1 1 /dev/hda3 swap swap pri=10 0 proc /procproc nosuid,noexec,nodev 0 0 sysfs /sysfs sysfs nosuid,noexec,nodev 0 0 devpts /dev/pts devptsgid=4,mode=620 0 0 tmpfs /run tmpfs defaults 0 0 devtmpfs /dev devtmpfs mode=0755,nosuid 0 0 # End /etc/fstab The GRUB file # Begin /boot/grub/grub.cfg set default=0 set timeout=5 insmod ext2 set root=(hd0,4) menuentry GNU/Linux, Linux 3.2.6-lfs-7.1 { linux /boot/vmlinuz-3.2.6-lfs-7.1 root=/dev/sda4 ro } Is something wrong there? Yes, in grub.cfg you have root=/dev/sda4 (and the kernel boots, so it's happy with /dev/sda) then the bootscripts choke because you have /dev/hda in /etc/fstab. sed -i 's#/dev/hda#/dev/sda#' /etc/fstab Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] 6.2.3. Mounting Virtual Kernel File Systems question
On Sun, 13 May 2012 06:58:57 +0100 Wayne Blaszczyk wblas...@bigpond.net.au wrote: Hi All, I've recently updated my main workstation to LFS 7.1 (From LFS 6.7), and noticed one of my auto build scripts is now failing. I've tracked it down to the following command. mount -vt tmpfs shm $LFS/dev/shm It seems to me that this command is mounting onto /run/shm rather than /mnt/lfs/dev/shm due to /mnt/lfs/dev/shm being a symlink to /run/shm. Why is /mnt/lfs/dev/shm a symlink to /run/shm? The instructions for mounting the virtual filesystems are: mkdir -v $LFS/{dev,proc,sys} mknod -m 600 $LFS/dev/console c 5 1 mknod -m 666 $LFS/dev/null c 1 3 mount -v --bind /dev $LFS/dev mount -vt devpts devpts $LFS/dev/pts mount -vt tmpfs shm $LFS/dev/shm mount -vt proc proc $LFS/proc mount -vt sysfs sysfs $LFS/sys http://www.linuxfromscratch.org/lfs/view/development/chapter06/kernfs.html Further more, when entering chroot environment, /dev/shm is now pointing to a no existent /run/shm. Am I'm doing something wrong or is this a bug? You're doing something weird. My guess is the mount -v --bind /dev $LFS/dev step. It's mounting the /dev from your host system on /mnt/lfs/dev. If /dev/shm on your host system is a symlink pointing at /run/shm then that's what it will look like in /mnt/lfs/dev too. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] 6.2.3. Mounting Virtual Kernel File Systems question
On Sun, 13 May 2012 12:43:57 +0100 Wayne Blaszczyk wblas...@bigpond.net.au wrote: Yes, on my host system (which is LFS 7.1), /dev/shm is a symlink pointing to /run/shm. This is what the mountvirtfs start script creates during boot up. This is why I'm questioning if this is a bug? Wayne. Yes, that looks like a bug in the bootscripts. I use my own custom bootscripts so I was unaware of the problem with mountvirtfs. You should probably open a ticket about this. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Shoul I remember (keep in mind) all steps?!
On Sat, 05 May 2012 16:20:45 +0100 Yasser Zamani yasser.zam...@live.com wrote: Hi there, At first thank you very much for this useful site and book! Currently I'm doing jobs step-by-step with no getting any errors; however, sometimes the steps are very specific e.g. GCC pass 2 steps. GCC needs that patch, fixincludes should be suppressed, -fomit-frame-pointer should be removed and etc. should I really remember and keep in mind these?! how book writer discovered these? because we just do steps and if we try to e.g. use another version then we are not sure about patches and switches, right? Yes, just follow the book and you'll be fine. As you gain more experience and learn more you'll begin to understand more about how it all works and you'll learn (through trial and error) what you can change and what you should leave alone. One more thing; sometimes I know why to run the script but I don't know how script works exactly. the main example is sed. I know it edits streams to replace or remove something but it's command in book is complicated for me at this time to understand. Is it essential to understand how it exactly works? No, you don't need to understand. But if you're interested there are lots of good resources available online: http://sed.sourceforge.net/sed1line.txt And indeed some good old fashioned books that you could read: http://www.amazon.co.uk/Mastering-Regular-Expressions-Jeffrey-Friedl/dp/0596528124/ http://www.amazon.co.uk/sed-Nutshell-Handbooks-Dale-Dougherty/dp/1565922255/ Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] error in vim inn chapter 6.61
On Sun, 22 Apr 2012 06:11:31 +0100 ankit vishwakarma ankitvishwakarma0...@gmail.com wrote: so do i need not worry and continue with the build or what should i do Are you going to use Vim? If yes then install it and try using it. If it works then carry on and stop worrying. If you're not going to use it then stop worrying. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] PS1 for user lfs
On Fri, 20 Apr 2012 21:38:37 +0100 Philippe Delavalade philippe.delaval...@orange.fr wrote: Hi. I'm building svn-9812 ; my host is debian/wheezy ; I encounter for the first time a little problem in 4.4. When becoming user lfs and after having passed the command source .bash_profile I don't obtain the right prompt ; all variables are correct except PS1 which is PS1=${debian_chroot:+($debian_chroot)}\u@\h:\w\$ Maybe it's not important (and I think so) but nevertheless, I fear that this uncorrect value can hide other problems... I've noticed the same issue when using Ubunut as a host, when I su to the user lfs I didn't get the bare bash prompt. Like you I worried that it might hide other environment variables that were being preserved from the host. Unlike you I've never taken the time to investigate it, I just cracked on and it all turned out fine so I didn't look back. I suspect that they compile a default PS1 into bash but it's just a suspicion. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Reduce Size Of LFS Build
On Wed, 11 Apr 2012 11:26:58 +0100 Kshitij Jain kjain181...@gmail.com wrote: I've already prepared the lfs system and it is working perfectly. I just want reduce the size of the whole system (so that it is easy to migrate) by deleting files and folders like /sources and /tools which is not useful anymore. Suggest me some files that i can remove.It may include help files and documentation files. Have your read this hint? http://www.linuxfromscratch.org/hints/downloads/files/small-lfs.txt Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Do lfs devs write patches?
On Mon, 09 Apr 2012 16:22:57 +0100 gmspro gms...@yahoo.com wrote: Do some particular lfs devs write these patches? http://www.linuxfromscratch.org/patches/lfs/7.1/ Or do they copy patches somewhere and store there in that mirror? The lfs patches are in a subversion repository. Some of them are written by people working on LFS, some are nicked from elsewhere. Personally I find patches to be clumsy. I would much rather use a sed if I can get away with it. As others have said, if you read the top 10 or so lines of the patches they should give you some background info of where the patch came from and what it's for. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] 5.5. GCC-4.4.3 - Pass 1
On Sat, 07 Apr 2012 06:10:09 +0100 Anoop C c.an...@gmail.com wrote: I am also getting the same error, gcc 4.6.2 binutils 2.22 Intel(R) Pentium(R) D CPU 2.80GHz processor (DELL Optiplex GX620) Dual core. root@pc:~# uname -a Linux pc 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 i686 i386 GNU/Linux Perhaps it's not possible to compile GCC-4.4.3 with GCC-4.6.2. Why are you trying to use an old version of GCC? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Ncurses compilation during the Temp Tools stage
On Sat, 07 Apr 2012 18:15:11 +0100 Эмиль Кранц bl8r1...@tut.by wrote: Hello all. Ncurses configure script during the Temp tools stage (chapter 5.15) gives an error, requesting to be complied against gpm. As gpm is installed in BLFS, the key --without-gpm should be passed to the configure script, in addition. All works well from there. Cheers. Emile Krantz Maybe this should have been sent to lfs-dev? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] problem with section 6.9 of LFS 7.1
On Sat, 07 Apr 2012 01:38:22 +0100 Charles Wood wood.charle...@gmail.com wrote: Installing glibc-2.14.1 I am a student and am doing Linux From Scratch as a class project. I am working on section 6.9, installing glibc-2.14.1. I have made sure I am entering all the commands correctly. When I perform make install it runs for quite awhile but gives an error at the end. Here is a copy of the text: test ! -x /sources/glibc-build/elf/ldconfig || LC_ALL=C LANGUAGE=C \ /sources/glibc-build/elf/ldconfig \ /lib64 /usr/lib64 CC=gcc /usr/bin/perl scripts/test-installation.pl /sources/glibc-build/ gcc: error: /tmp/test-prg5634: No such file or directory I have double-checked and entered the sed commands concerning the test-installation.pl script. Have you tried just copy and pasting them from your browser into your terminal? It's hard to type every character exactly so my money is on a typo entering the sed. Any ideas? Maybe I shouldn't lead you astray, but you could disable running test-installation.pl completely: sed -i '/t-i/d' Makefile make install I've never known test-installation.pl to tell me anything useful. If you glibc install is b0rken you'll know soon enough :) Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Adding firmware to the kernel
On Fri, 06 Apr 2012 01:26:03 +0100 Ken Moffat zarniwh...@ntlworld.com wrote: My latest machine has an ATI 760G (Radeon 3000) video controller. According to dmesg, it is trying to load R600_rlc.bin for KMS. So, I got the firmware, and put it in firmware/radeon/ in the kernel tree. But it doesn't find it (this is without an initrd). My config includes CONFIG_FIRMWARE_IN_KERNEL=y CONFIG_EXTRA_FIRMWARE=R600_rlc.bin CONFIG_EXTRA_FIRMWARE_DIR=firmware/radeon/ Any idea what I'm doing wrong, please ? Nothing obvious leaps out at me. The only thing I can suggest is perhaps the kernel is looking for radeon/R600_rlc.bin? Try setting it like this: CONFIG_EXTRA_FIRMWARE=radeon/R600_rlc.bin CONFIG_EXTRA_FIRMWARE_DIR=firmware This works for me (with a different Radeon card): # CONFIG_PREVENT_FIRMWARE_BUILD is not set CONFIG_FW_LOADER=y CONFIG_FIRMWARE_IN_KERNEL=y CONFIG_EXTRA_FIRMWARE=radeon/BARTS_mc.bin radeon/BARTS_me.bin radeon/BARTS_pfp.bin radeon/BTC_rlc.bin CONFIG_EXTRA_FIRMWARE_DIR=/lib/firmware Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Can't login after kernel loading, some configuration problem with kernel loading
On Wed, 04 Apr 2012 04:55:06 +0100 gmspro gms...@yahoo.com wrote: From /etc/initab id:2:initdefault: It was id:1:initdefault: before , Now i get the login prompt , i typed root and the password, that doesn't login successfully, it prompts me to login again and again, may be some problem setting root password. I also get this after doing 'chroot $LFS /usr/bin/env -i HOME=/root TERM=$TERM PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash --login' root:/etc/sysconfig# passwd root Changing password for root Enter the new password (minimum of 5 characters) Please use a combination of upper and lower case letters and numbers. Bad password: too short. Warning: weak password (enter it again to use it anyway). passwd: password changed. root:/etc/sysconfig# Can't set password ^ If you want to set the password you need to bind mount /dev before you chroot. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] How can i set up pppoe internet connection?
On Wed, 04 Apr 2012 06:11:54 +0100 gmspro gms...@yahoo.com wrote: Here it's for static ip address http://www.linuxfromscratch.org/lfs/view/stable/chapter07/network.html I need to install rp-pppoe, the pppoe-setup and pppoe-start, how can i install it? http://www.linuxfromscratch.org/blfs/view/svn/basicnet/ppp.html Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Can't install glib
On Wed, 04 Apr 2012 13:11:15 +0100 gmspro gms...@yahoo.com wrote: cd glib-2.32.0 ./configure --prefix=/usr --sysconfdir=/etc checking for zlib.h... yes checking for LIBFFI... no configure: error: in `/sources/glib-2.32.0': configure: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables LIBFFI_CFLAGS and LIBFFI_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see http://pkg-config.freedesktop.org/. See `config.log' for more details What should i do? How can i install glib and pkg-config successfully? Have you tried Beyond Linux From Scratch? http://www.linuxfromscratch.org/blfs/view/svn/general/glib2.html Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Can't install irssi
On Wed, 04 Apr 2012 14:09:46 +0100 gmspro gms...@yahoo.com wrote: I have install glib and pkg-config following th blfs doc cd irssi-0.8.15 ./configure checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.7... yes checking for GLIB - version = 2.6.0... Package libpcre was not found in the pkg-config search path. Perhaps you should add the directory containing `libpcre.pc' to the PKG_CONFIG_PATH environment variable Package 'libpcre', required by 'GLib', not found no *** Could not run GLIB test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact error that occured. This usually means GLIB is incorrectly installed. *** trying without -lgmodule checking for pkg-config... (cached) /usr/bin/pkg-config checking pkg-config is at least version 0.7... yes checking for GLIB - version = 2.6.0... Package libpcre was not found in the pkg-config search path. Perhaps you should add the directory containing `libpcre.pc' to the PKG_CONFIG_PATH environment variable Package 'libpcre', required by 'GLib', not found no *** Could not run GLIB test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact error that occured. This usually means GLIB is incorrectly installed. *** If you don't have GLIB, you can get it from ftp://ftp.gtk.org/pub/glib/ *** We recommend you get the latest stable GLIB 2 version. *** Compile and install it, and make sure pkg-config finds it, *** by adding the path where the .pc file is located to PKG_CONFIG_PATH configure: error: GLIB is required to build irssi. What should i do? Several things. Firstly, as irssi is not part of LFS you should really be asking these sorts of questions on the BLFS-Support mailing list. The error above says you've not installed PCRE. Try installing it http://www.linuxfromscratch.org/blfs/view/svn/general/pcre.html and then install glib again http://www.linuxfromscratch.org/blfs/view/svn/general/glib2.html Lastly, the error message above says that there are more details in irssi-0.8.15/config.log. What does it say in relation to pcre and glib? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [blfs-support] Problems building gnome-terminal-3.4.0.1 with gtk3.
On Wed, 04 Apr 2012 15:24:57 +0100 John Burrell john_burr...@hotmail.com wrote: checking for SMCLIENT... yes checking for gconftool-2... /usr/bin/gconftool-2 Using config source xml:merged:/etc/gconf/gconf.xml.defaults for schema installation Using $(sysconfdir)/gconf/schemas as install directory for schema files checking for gtk-builder-convert... false configure: error: gtk-builder-convert not found Anyone ran into this problem? I'm using the --with-gtk=3.0 switch, and I don't want to use gtk2. But gtk-builder-convert is installed by gtk+2 so I don't think you have an option - So does that mean that Gnome-3 requires gtk+-2? Andy -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] problem with glibc
On Thu, 29 Mar 2012 19:13:11 +0100 ankit vishwakarma ankitvishwakarma0...@gmail.com wrote: after running the version.sh script the following is the output ankit@ankit-Inspiron-1012:~$ bash version-check.sh bash, version 4.2.10(1)-release /bin/sh - /bin/dash Fix this. You can't do LFS with dash, it won't work. sudo ln -sf bash /bin/sh Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] problem with glibc
On Thu, 29 Mar 2012 20:29:04 +0100 Lázaro Morales laz...@frioclima.com.cu wrote: En 29/03/2012 14:13:05, ankit vishwakarma ankitvishwakarma0...@gmail.com escribió: after running the version.sh script the following is the output ankit@ankit-Inspiron-1012:~$ bash version-check.sh bash, version 4.2.10(1)-release /bin/sh - /bin/dash That output is correct. No it isn't. Dash won't work for LFS. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] lfs live cd and being blind
On Thu, 29 Mar 2012 23:12:08 +0100 Eleanore Boyd cara...@cox.net wrote: On 3/29/2012 11:03 AM, mike wrote: hi, I am blind and build my lfs's usually using grml and an ssh session but was wondering if their is a way to get the lfs live cd to start with speakup for building? I am working on getting accessibility support back into the livecd in general, and am trying to replace the GNOME window manager with fluxbox, so it might be a while before it can without breaking. To be honest, I didn't expect my announcement to generate this much interest, especially seeing as I'm just a high school student working during a computer class and after school on such things as LFS. Plus, I originally meant the announcement as wanting to know if anyone wanted to see what I did and take a few ideas from it, maybe improve on it. Has anyone else thought of remastering the Ubuntu livecd for building purposes? It would be slightly horrific if I was the only one, as I don't think I can develop and maintain this sort of thing by myself, there's a little too much that needs to be done yet.. You're a hero for even contemplating such a thing. If you build it people will use it. It will be a lot of work and as you've already found out, people will ask you to support things that you've never even thought. On the plus side, you get to be the big cheese in your own project. If you start from another distro like Ubunut you'll have to do a lot of work getting to know how they work. An alternative is to resurrect the moribund LFS LiveCD. I think doing that would have a very steep initial learning curve but once you got an initial version working you'd be working from an LFS base so you wouldn't need to learn about another distro. Personally, I'd just run away if I were you ;) Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [blfs-support] Intltool-0.50.0 not found
On Fri, 30 Mar 2012 13:29:58 +0100 mike msto...@jmshosting.us wrote: hi , i go to the following link and wget the file and it claims it can't any ideas? http://launchpad.net/intltool/trunk/0.50.0/+download/intltool-0.50.0.tar.gz Works for me: andy@eccles:~$ wget http://launchpad.net/intltool/trunk/0.50.0/+download/intltool-0.50.0.tar.gz --2012-03-30 14:17:23-- http://launchpad.net/intltool/trunk/0.50.0/+download/intltool-0.50.0.tar.gz Resolving launchpad.net... 91.189.89.223, 91.189.89.222 Connecting to launchpad.net|91.189.89.223|:80... connected. HTTP request sent, awaiting response... 303 See Other Location: https://launchpadlibrarian.net/82359793/intltool-0.50.0.tar.gz [following] --2012-03-30 14:17:23-- https://launchpadlibrarian.net/82359793/intltool-0.50.0.tar.gz Resolving launchpadlibrarian.net... 91.189.89.229, 91.189.89.228 Connecting to launchpadlibrarian.net|91.189.89.229|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 142837 (139K) [application/x-tar] Saving to: `intltool-0.50.0.tar.gz' 100%[==] 142,837 537K/s in 0.3s 2012-03-30 14:17:24 (537 KB/s) - `intltool-0.50.0.tar.gz' saved [142837/142837] Andy -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] problem with glibc
On Thu, 29 Mar 2012 09:10:52 +0100 ankit vishwakarma ankitvishwakarma0...@gmail.com wrote: presently i am doing with chapter 5.7 glibc installation i have applied the patches restarted the budil many a times but the following error occurs consistently please help. In file included from ../sysdeps/unix/sysv/linux/syslog.c:10:0: ../misc/syslog.c: In function '__vsyslog_chk': ../misc/syslog.c:144:9: warning: variable 'prioff' set but not used [-Wunused-but-set-variable] ../misc/syslog.c:123:1: sorry, unimplemented: inlining failed in call to 'syslog': function body not available ../misc/syslog.c:155:9: sorry, unimplemented: called from here make[2]: *** [/mnt/lfs/sources/glibc-build/misc/syslog.o] Error 1 make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.14.1/misc' make[1]: *** [misc/subdir_lib] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.14.1' make: *** [all] Error 2 lfs@ankit-Inspiron-1012:/mnt/lfs/sources/glibc-build$ Please run version-check.sh and pot the results here http://www.linuxfromscratch.org/lfs/view/stable/prologue/hostreqs.html Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Package management
On Mon, 26 Mar 2012 06:03:59 +0100 DJ Lucas d...@linuxfromscratch.org wrote: packaged up as a tar.bz2 (guess I should probably use xz now) It depends on the situation. If the files are just for local use (no one is downloading them) then the factors are disk space, RAM and time. If disk space is tight and you've got lots of time and RAM, xz is a good choice. If you've got lots of disk space and you don't like waiting, good old gz is still a reasonable choice. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] problems with glibc
On Sun, 25 Mar 2012 00:13:32 + mike msto...@jmshosting.us wrote: hi, i followed the book to a letter then when i do a make on glibc i get the following c -lgcc_eh `i686-lfs-linux-gnu-gcc --print-file-name=crtend.o` /mnt/lfs/sources/glibc-build/csu/crtn.o /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.6.2/../../../../i686-lfs- linux-gnu/bin/ld: cannot find -lgcc_eh ld cannot find libgcc_eh.a Did you ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/_eh/'` like it says on the bottom of the first gcc page? http://www.linuxfromscratch.org/lfs/view/development/chapter05/gcc-pass1.html Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] preprocessor error
On Wed, 21 Mar 2012 13:02:09 + siefke_lis...@web.de siefke_lis...@web.de wrote: Hello, now in Build LFS System, GCC come the error again. checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /sources/gcc-build/./gcc/xgcc -B/sources/gcc-build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-includeaccepts -g... yes checking for /sources/gcc-build/./gcc/xgcc -B/sources/gcc-build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-includeoption to accept ISO C89... unsupported checking how to run the C preprocessor... /lib/cpp configure: error: in `/sources/gcc-build/i686-pc-linux-gnu/libgcc': configure: error: C preprocessor /lib/cpp fails sanity check See `config.log' for more details. make[1]: *** [configure-target-libgcc] Error 1 make[1]: Leaving directory `/sources/gcc-build' make: *** [all] Error 2 The config.log find under http://nopaste.info/87120df9c2.html. I have deleteted the folder and start with new gcc folders. But the error message come again. Whereabouts in the book are you? Is this in /tools or in chroot? /sources/gcc-4.6.2/libgcc/configure: line 1441: /lib/cpp: No such file or directory It looks like you're in chroot 'cos it says /sources/gcc-4.6.2, in which case, why's it looking for /lib/cpp? We don't create /lib/cpp until after we've installed gcc, while you're configuring gcc, cpp should be /tools/lib/cpp. I suspect that something has gone wrong while you were adjusting the toolchain, but I don't know what. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] ln -sv ../usr/bin/cpp /lib
On Tue, 20 Mar 2012 14:55:28 + Alexander Kapshuk alexander.kaps...@gmail.com wrote: So in other words, 'ln -sv ../usr/bin/cpp /lib' and 'ln -sv /usr/bin/cpp /lib' are equivalent? ln -sv ../usr/bin/cpp /lib is a relative symbolic link. ln -sv /usr/bin/cpp /lib is an absolute symbolic link. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] GCC Error
On Tue, 20 Mar 2012 17:55:27 + siefke_lis...@web.de siefke_lis...@web.de wrote: Hello, i try with LFS 7.1 to build my own Linux, ok at Moment in VMWARE but when it run good i want it use directly. I use the Handbook, at Moment i has compile errors in GCC, i has before too one error message but i could fix it. But with this error, i not find the way to fix. Can someone help me? checking for i686-lfs-linux-gnu-gcc... /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/i686-lfs-linux-gnu/lib/ -isystem /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-gnu/sys-include checking for suffix of object files... configure: error: in `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[1]: *** [configure-target-libgcc] Error 1 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build' make: *** [all] Error 2 Im not sure, the config.log is sure big for write here in the list. When have question, ask. The config log that you want is /mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc/config.log Open it in a text editor and search for the string 'cannot compute suffix of object files' What was the other error that you fixed? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] GCC Error
On Tue, 20 Mar 2012 19:40:26 + siefke_lis...@web.de siefke_lis...@web.de wrote: ok, yes i have search in other folder. But really i not know what should read in the messages there. http://nopaste.info/56d5e47c92.html This looks like the wrong file. This is /mnt/lfs/sources/gcc-build/config.log As I told you before, you need to look at /mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc/config.log Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] bash: mount: command not found
On Thu, 15 Mar 2012 16:09:16 + gdsi g...@mail.com wrote: Hello. I had reached to LFS-7.1 ch.6.13, all were ok. On next day after performing all needed mount's and chroot I received: root:/# echo $LFS /mnt/lfs root:/# mount -v -t ext3 /dev/sda10 $LFS bash: mount: command not found root:/# If I do not do chroot the mount executed well: [root@shpd-92-101-169-151 user]# mount -v -t ext3 /dev/sda10 $LFS mount: /dev/sda10 already mounted or /mnt/lfs busy mount: according to mtab, /dev/sda10 is already mounted on /mnt/lfs Why? Did you forget to install util-linux? If /bin/mount does exist, what do you get when you run from your host system: ldd /mnt/lfs/bin/mount and from chroot: ldd /bin/mount Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] usb mouse connects=disconnects repeatedly
On Mon, 12 Mar 2012 02:19:57 + Martins Gulbis l...@tentyten.com wrote: I started with the config used for the ubuntu system running on my system and ran make oldconfig. Currently under USB support I have the following included: Support for Host-side USB USB verbose debug messages USB announce new devices *** Miscellaneous USB options *** USB device filesystem (DEPRECATED) USB Monitor *** USB Host Controller Drivers *** xHCI HCD (USB 3.0) support (EXPERIMENTAL) EHCI HCD (USB 2.0) support Root Hub Transaction Translators Improved Transaction Translator scheduling OXU210HP HCD support ISP 1760 HCD support OHCI HCD support UHCI HCD (most Intel and VIA) support *** USB Device Class drivers *** USB Printer support USB Mass Storage support The shared table of common (or usual) storage devices Should I possibly not include some of this? Don't have both OHCI and UHCI, use one or the other. Most systems use UHCI, try disabling OHCI. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] usb mouse connects=disconnects repeatedly
On Sun, 11 Mar 2012 14:33:47 + Martins Gulbis l...@tentyten.com wrote: I just finished getting my LFS 7.0 system to finally boot ok. However the usb mouse I have connected seems to be constantly disconnecting and reconnecting after the system boots, filling the screen constantly connect/disconnect messages like the following : This rings a bell with me, I think something similar happened for me once. I think I fixed the problem by throwing the offending mouse in the bin and getting a new one. Sorry that is not a very sophisticated solution, hopefully someone else will have a better fix. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Linux 3.1 API headers headers_check Errors
On Tue, 28 Feb 2012 00:06:51 -0700 Kyle Brennan kyle_b...@live.com wrote: Hi, I am attempting my first LFS build, and I got to step 5.5 in the book, and everything goes as normal until I hit the command make headers_check which gives me multiple errors. they are outlined below. Where? /mnt/lfs/sources/linux-3.1/usr/include/drm/drm_mode.h:85: found __[us]{8,16,32,64} type without #include linux/types.h/mnt/lfs/sources/linux-3.1/usr/include/drm/i915_drm.h:120: found __[us]{8,16,32,64} type without #include linux/types.h/mnt/lfs/sources/linux-3.1/usr/include/drm/mga_drm.h:260: found __[us]{8,16,32,64} type without #include linux/types.h/mnt/lfs/sources/linux-3.1/usr/include/drm/radeon_drm.h:758: found __[us]{8,16,32,64} type without #include linux/types.h/mnt/lfs/sources/linux-3.1/usr/include/drm/via_drm.h:117: found __[us]{8,16,32,64} type without #include linux/types.h /mnt/lfs/sources/linux-3.1/usr/include/linux/mmc/ioctl.h:10: found __[us]{8,16,32,64} type without #include linux/types.h /mnt/lfs/sources/linux-3.1/usr/include/linux/soundcard.h:1054: userspace cannot reference function or variable defined in the kernel /mnt/lfs/sources/linux-3.1/usr/include/scsi/scsi_netlink.h:108: found __[us]{8,16,32,64} type without #include linux/types.h I'm not sure if this is relevant, but my build environment is Ubuntu 11.10 32bit, running in virtualbox. I have fulfilled all the prerequisites for the build, noting that the version_check.sh that was instructed to be run succeeded with proper versions. I've tried recompiling it multiple times, and I cant seem to get it to work. Can someone advise me on what to do to solve this? Solve what? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Linux 3.1 API headers headers_check Errors
On Tue, 28 Feb 2012 09:13:35 -0800 Kyle Brennan kyle_b...@live.com wrote: Okay. So I did a terrible job explaining what my issue is. I am getting these errors above when I run the headers check. I'm not sure if they are normal or not, I tried looking them up and found nothing. I would like to find out if these errors are normal and if they are not, I need to fix them. That looks pretty normal to me. The Makefile is being verbose about some issues that the maintainers should fix, but they're not problems you or I should worry about. Errors usually have the word error in them. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] 7.1-rc1 pcre
On Fri, 24 Feb 2012 10:22:53 -0700 John Harrigan jfharri...@fedex.com wrote: In the Preface, Rationale for Packages in the Book, it explains the rationale for PCRE but PCRE is not listed in 3.2 All Packages. I'm assuming the PCRE reference is just left over from a previous iteration of the book, is that correct? Yes, I think PCRE was one of the dependencies of pkgconfig when we used to install it in LFS. Hopefully Bruce or Mathew will see your message and fix it. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Headers in the system's include directory. Still Confused.
On Fri, 24 Feb 2012 14:47:07 -0600 (CST) al...@verizon.net wrote: So, some of the questions kicking around in my head, for anybody who'd care to take the time to enlighten me on: Q1. Was I supposed to move the 'linux-x.y.z/include/' files to '/usr/include/' immediately after I installed Glibc? No.If you're not sure, just do what the book says. Q2. Am I supposed to move the 'linux-x.y.z/include/' files to '/usr/include/' each time after I install a new kernel? No. You should leave the kernel headers in /usr/include as they were when you installed glibc. Q3. Which is the system's include directory - the '/usr/include/'? Yes Q4. sanitised headers are those in this (?) Linux kernel tarball against which Glibc was compiled? Glibc is compiled at a certain point in time. this kernel varies almost daily, according to the LFS book and reality. Fair enough. New kernels have new features but they should all support the features offered by the headers you installed before glibc. The risk is that if you install new kernel headers into /usr those files will offer new features that glibc (compiled against the old headers) won't support. Things could break and before you know it you're using a live CD to start again. Q5. What's the raw kernel headers? The *.h files in the kernel source. Q6. What's the other kernel sanitized headers? How long's a piece of string? That could mean anything. Q7. Is there a difference between sanitised and sanitized headers? (this is _just a joke_ - so bear with me, I've been in a silly mood once I saw 'udev-181' run so smoothly) The raw headers in the kernel source define a lot of functions. Some of them are private to the kernel and some a functions that the kernel offers to userspace. When the kernel headers are sanitised the private stuff is removed leaving only the public API interface. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] 6.06 Creating Essential Files and Symlinks
On Tue, 14 Feb 2012 18:05:09 -0800 Qrux qrux@gmail.com wrote: Also, did you install shadow from LFS? Because I see this in my /etc/login.defs: xlapp [/var/log] # grep tmp /etc/login.defs # If defined, login failures will be logged here in a utmp format. # last, when invoked as lastb, will read /var/log/btmp, so... FTMP_FILE /var/log/btmp And I see this in in shadow: xlapp [~/lfs/src/shadow-4.1.4.3/etc] # grep tmp login.defs # If defined, login failures will be logged here in a utmp format. # last, when invoked as lastb, will read /var/log/btmp, so... FTMP_FILE /var/log/btmp I assume (perhaps tacitly) that this is being installed on your system, too, if you're installing shadow. Again, IDK if it's login that's writing to this file. But something is. Your data differs from mine, but I don't think that qualifies my data as being wrong. LOL The difference is I install PAM before I install shadow. If you look at the shadow page in BLFS it has: install -v -m644 /etc/login.defs /etc/login.defs.orig for FUNCTION in LASTLOG_ENAB MAIL_CHECK_ENAB \ PORTTIME_CHECKS_ENAB CONSOLE \ MOTD_FILE NOLOGINS_FILE PASS_MIN_LEN \ SU_WHEEL_ONLY MD5_CRYPT_ENAB \ CONSOLE_GROUPS ENVIRON_FILE \ ULIMIT ENV_TZ ENV_HZ ENV_SUPATH \ ENV_PATH QMAIL_DIR MAIL_DIR MAIL_FILE \ CHFN_AUTH FAILLOG_ENAB QUOTAS_ENAB FTMP_FILE \ OBSCURE_CHECKS_ENAB CRACKLIB_DICTPATH \ PASS_CHANGE_TRIES PASS_ALWAYS_WARN ISSUE_FILE do sed -i s/^$FUNCTION/# / /etc/login.defs done So shadow doesn't write to /var/log/btmp if it's installed after PAM. Thanks for your help looking at this. I'd forgotten about modifying /etc/login.defs when installing shadow after PAM. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] 6.06 Creating Essential Files and Symlinks
On Mon, 13 Feb 2012 16:53:25 -0800 Qrux qrux@gmail.com wrote: Empirical testing shows that login writes to btmp. I infer, from that description given at TLDP, that everything that logs a bad-login attempt (e.g., login) ought to be writing to this file. It is NOT an SSH-specific thing. You appear to be wrong. login writes to /var/log/wtmp, not /var/login/btmp. If I try to login as root (on tty1) and enter the wrong password nothing gets written to /var/login/btmp. Maybe login _should_ be writing the failed login attempt to /var/log/btmp, maybe login is broken? The only application on my system that writes to /var/login/btmp is ssh, so I suggest that we move creating this file to the ssh page in BLFS. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] 6.06 Creating Essential Files and Symlinks
On Mon, 13 Feb 2012 04:01:55 -0800 Qrux qrux@gmail.com wrote: After installing OpenSSH, I'm seeing errors like this: sshd[1226]: Excess permission or bad ownership on file /var/log/btmp Quick google turns up: https://issues.rpath.com/browse/RPL-1825 TL;DR - I think we ought to change the last few lines from this: touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} chgrp -v utmp /var/run/utmp /var/log/lastlog chmod -v 664 /var/run/utmp /var/log/lastlog to this: touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} chgrp -v utmp /var/run/utmp /var/log/{lastlog,btmp} chmod -v 664 /var/run/utmp /var/log/lastlog chmod -v 0600 /var/log/btmp Does anyone see an issue with changing the group and perms of /var/log/btmp to fit SSH's expectations? I agree, if we create /var/log/btmp it should be chmod 600, but I wonder, do we need it? Does anything use it? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] 6.06 Creating Essential Files and Symlinks
On Mon, 13 Feb 2012 13:23:48 -0600 Bruce Dubbs bruce.du...@gmail.com wrote: The command 'lastb' uses btmp. It's true lastb can use /var/log/btmp, but only to read its contents. If nothing in LFS is writing to the file, do we need to create it in LFS? Wouldn't it be more sensible to create it in BLFS, on the ssh page? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] looking for a build buddy
On Sun, 29 Jan 2012 10:00:20 -0800 Robert A. Lerche r...@msbit.com wrote: Hi. I have previously built LFS and used the LFS Live CD project to create a custom system (back in the 6.3 / 6.4 days). I am now engaged in a project for a client using Android on a custom embedded system. As you may know, Android uses the Linux kernel as a base. Has anyone out there built Android completely from sources? I'd appreciate a chance to chat with someone familiar with setting up a complete source build environment. As I understand it, Andriod is a custom java virtual machine that runs on top of a patched linux kernel. It has very little in common with LFS. They're completely different beasts. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS-7.0 /dev/pts
On Fri, 27 Jan 2012 22:57:57 -0600 Bruce Dubbs bruce.du...@gmail.com wrote: It is mounted as devpts /dev/pts devpts gid=4,mode=620 0 0 I suspect that /dev/pts should be created by udev, you might want to comment that out of fstab to see if it is created and then try to mount manually. No, udev doesn't create it. The mountpoint should be created by the mountfs bootscript. Just after where it says Mounting remaining file systems... add the line: mkdir /dev/{pts,shm} Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS-7.0 /dev/pts
On Sat, 28 Jan 2012 10:06:31 -0500 Baho Utot baho-u...@columbus.rr.com wrote: I have this currently in the config file CONFIG_VT=y CONFIG_CONSOLE_TRANSLATIONS=y CONFIG_VT_CONSOLE=y CONFIG_HW_CONSOLE=y CONFIG_VT_HW_CONSOLE_BINDING=y CONFIG_UNIX98_PTYS=y # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set # CONFIG_LEGACY_PTYS is not set CONFIG_SERIAL_NONSTANDARD=y I will rebuild the kernel and then try to find the udev script reponsible for /dev/pts. /dev/pts used to be copied from /lib/udev/devices/pts by the bootscripts (the book still creates /lib/udev/devices/pts). But it seems that the only thing copied now is /lib/udev/devices/null by the mountvirtfs bootscript. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS-7.0 /dev/pts
On Sat, 28 Jan 2012 17:06:44 -0600 Bruce Dubbs bruce.du...@gmail.com wrote: There are three places /dev/pts is mentioned in the book: 6.2. Preparing Virtual Kernel File Systems 8.2. Creating the /etc/fstab File 9.3. Rebooting the System ...and on the udev page we have: install -dv /lib/{firmware,udev/devices/pts} The bootscripts used to copy everything in /lib/udev/devices to /dev Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Another problem: Glibc in Chapter 5.7
On Thu, 26 Jan 2012 20:35:19 +0100 Mario Meier bea...@gmx.at wrote: Dear Support, I have another problem: Building Glibc (Chapter 5.7) fails during make. This time, I have copied the output immediately: mv -f /mnt/lfs/sources/glibc-build/libc.so.6.new /mnt/lfs/sources/glibc-build/libc.so.6 i686-pc-linux-gnu-gcc -nostdlib -nostartfiles -o /mnt/lfs/sources/glibc-build/iconv/iconvconfig -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both /mnt/lfs/sources/glibc-build/csu/crt1.o /mnt/lfs/sources/glibc-build/csu/crti.o `i686-pc-linux-gnu-gcc --print-file-name=crtbegin.o` /mnt/lfs/sources/glibc-build/iconv/iconvconfig.o /mnt/lfs/sources/glibc-build/iconv/strtab.o /mnt/lfs/sources/glibc-build/iconv/xmalloc.o /mnt/lfs/sources/glibc-build/iconv/hash-string.o -Wl,-rpath-link=/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sources/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/lfs/sources/glibc-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/sources/glibc-build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-build/crypt:/mnt/lfs/sources/glibc-build/nptl /mnt/lfs/sources/glibc-build/libc.so.6 /mnt/lfs/sources/glibc-build/libc_nonshared.a /mnt/lfs/sources/glibc-build/elf/l d. so -lgcc -lgcc_eh `i686-pc-linux-gnu-gcc --print-file-name=crtend.o` /mnt/lfs/sources/glibc-build/csu/crtn.o /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgcc_eh It seems something went wrong when you installed gcc. The first pass of gcc should be calling itself i686-lfs-linux-gnu, not i686-pc-linux-gnu. ld cannot find libgcc_eh.a which should have been installed as part of gcc. You gcc is b0rken. I would start again. Make sure you follow the book carefully. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS-7.0 Chapter 6.16. MPC-0.9 FYI
On Wed, 18 Jan 2012 20:49:37 -0500 Baho Utot baho-u...@columbus.rr.com wrote: I have been working on mpc. I have noticed that the way it is built in the book it only builds the static library. If --enable-shared is passed to configure it look like that is ignored as it still doesn't build the shared library. I don't agree. I configure mpc with: ./configure --prefix=/usr --disable-static It installs: /usr/include/mpc.h /usr/lib/libmpc.so.2.0.0 /usr/lib/libmpc.so.2 /usr/lib/libmpc.so /usr/lib/libmpc.la /usr/share/info/mpc.info Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] configure, make and make install as who
On Tue, 17 Jan 2012 03:42:35 -0500 Dave H thegenrl...@gmail.com wrote: Hello I'm stuck at a point and I really don't know what's wrong. Here is my situation. Gathered from the list of All Packages list page 3.2, it states Autoconf (2.68) and M4 (1.4.16) So I downloaded, extracted, M4 (1.4.16) and did the following while in the directory $LFS/sources/m4-1.4.16: ./configure(as user lfs) make (as user lfs) sudo make install (as root) This is very wrong. In chapter 5 run make install as user lfs. If you do it as root you run the risk of destroying your host system. Also, root does not have the same environment variables set as the user lfs so the commands will not be executed in the same way if they are run by root. question: should /usr/local/bin be in my path variable for user lfs? No currently $PATH=/tools/bin:/bin:/usr/bin. question: should i be ./configure,make,make install all as root? No. Do all of chapter 5 as the user lfs. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Chroot failure
On Sun, 15 Jan 2012 13:34:32 +0400 Дмитрий Шеховцов d...@transinf.ru wrote: Hello. I follow LFS 7.0 book. After Glibc-2.14.1 has been installed (chapter 6.9) chroot fails with Segmentation fault error. If I rename $LFS/lib to $LFS/lib_ just before chrooting then chroot is completed OK. Why does $LFS/lib exist before you chroot? In the book we create $LFS/lib on the page after we chroot. What's in $LFS/lib that's causing a segfault? ls $LFS/lib Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Error during Glibc Installation
On Sun, 15 Jan 2012 22:50:06 +0530 Uthayanan suthaya...@gmail.com wrote: version-check.sh: line 22: /lib/libc.so.6: No such file or directory Don't worry about this. Ubuntu's libc is fine. version-check.sh: line 32: makeinfo: command not found Texinfo: You need to install texinfo. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Error during Glibc Installation
On Mon, 16 Jan 2012 16:10:30 +0530 Uthayanan suthaya...@gmail.com wrote: I installed every thing successfully up to 5.28 (patches) . During the make process I got this following warning. /mnt/lfs/Sources/patch-2.6.1/src/patch.c:1542: warning: the use of `mktemp' is dangerous, better use `mkstemp' lfsuthayan@ubuntu:/mnt/lfs/Sources/patch-2.6.1$ Do I need to consider fixing this ? No, don't worry about warnings like that. That's for the patch developers to worry about. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Error during Glibc Installation
On Fri, 13 Jan 2012 14:31:33 +0530 Uthayanan suthaya...@gmail.com wrote: Hi Firerat I tried installing the system with gawk. This time I got the following error. Any suggestions ? I suggest that you run version-check.sh and post the results here. http://www.linuxfromscratch.org/lfs/view/development/prologue/hostreqs.html Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Still fighting with Network Madness...
On Wed, 11 Jan 2012 16:20:00 -0700 jasonps...@jegas.com wrote: It does make an entry in the /etc/udev/rules.d/70-persistent-net.rules file for my card and uses eth0, it even has a comment above it displaying a PCI device ID and in parens (tg3) THIS IS PROBABLY GOOD I THINK Yes, that looks good. I do not know where to go from here. Bruce explained there might be a file in /sys/ folder, but I don't know what to do with it if I find id. The init scripts during boot say trying to bring up interface eth0 than I'm WARNED eth0 doesn't exist. That doesn't look good. Does eth0 exist? What do you get when you type: ip addr If eth0 doesn't exist it's a kernel problem. Maybe it needs recompiling, maybe it needs firmware. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Still fighting with Network Madness...
On Wed, 11 Jan 2012 16:20:00 -0700 jasonps...@jegas.com wrote: I get the feeling that this is one of those areas that just works for people, and I'm admittedly frustrated. Additionally, to Evade this issue when I do a full build in VirtualBox using just default Kernel config, I get a kernel panic about can't find init (And I checked the boot loader and ftab to make sure the settings were right for the boot drive) I was so hoping to be deciding what Window Manager I wanted the most by now :( That reminds me of http://xkcd.com/349/ Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Final GCC Compile Weirdness - 1 Time? No, 2 nd Time? Perfect!
On Tue, 10 Jan 2012 09:21:01 + Firerat fire...@googlemail.com wrote: I find that if a make fails first time, but completes (or gets further ) on second run it is due to some race condition where you have multiple jobs and a new job thread is dependent on something that hasn't completed. The simplest way around this is to flag the make with -j1 FWIW I've never had a problem compiling gcc with make -j4 Also, if you read his script he doesn't use multiple jobs when he runs: make -k check If you are having trouble with slow builds then have a look at top on your host system and see if anything is eating CPU and/or memory. I have had problems with polkitd and nautilus on Ubuntu (bad pulseaudio setup) Chrome is also a mem/CPU hog, especially if flash is enabled Are you compiling in a virtual machine? If so, perhaps it is not making all the system's resources available? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.0 - No Devices in /dev on boot up - Kernel then shuts off PC
On Tue, 10 Jan 2012 06:58:10 -0700 jasonps...@jegas.com wrote: Now I want to make my network card work - it says there isn't an eth0... That sounds like a kernel config problem. Read what lspci says about your ethernet card and when you do make menuconfig compare it to the help text for each of the ethernet options. Andy I did exactly as you said. In slackware, lspci worked like a charm and told me I have a Broadcom network card and a Broadcom Wireless card. I Promptly made a new Kernel, located Broadcom Drivers, marked (NEW), selected it (with ASTERISK which means compiled into kernel versus say M which meands loadable module). Still nothing. Do they need firmware? look at the output of dmesg and see if the kernel complains somewhere about missing firmware Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.0 - No Devices in /dev on boot up - Kernel then shuts off PC
On Tue, 10 Jan 2012 10:03:09 -0700 jasonps...@jegas.com wrote: Cool TRick - and I see how that might worked ... but what I found is... the driver is name tg3. It is from Broadcom. In the kernel (3.2), make menuconfig Device Drivers --- [*] Network device support --- [*] Ethernet driver support --- [*] Broadcom devices [*] Broadcom Tigon3 support Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS -Chapter 6.4 - CHROOT - Frustrating me badly.... I've tried so many things...
On Wed, 04 Jan 2012 21:25:27 -0700 jasonps...@jegas.com wrote: Hello Folks, I need more help I'm afraid. Error Message: chroot failed to run command '/tools/bin/env' : No such file or directory What do you get when you run (on your host system): ldd /tools/bin/env If it lists anything in /lib or /usr then you've made a mistake somewhere. It should only list things in /tools. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] glibc tests errors
On Tue, 03 Jan 2012 06:19:39 -0600 Eleanore Boyd cara...@cox.net wrote: It should say x86_64-lfs-linux-gnu, no unknown factor. Something is very wrong with associations, hostnames, or otherwise. No, that's not true. After the second pass of gcc in chapter 5 it says x86_64-unknown-linux-gnu (or on 32 bit i686-unknown-linux-gnu). Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Cannot open root device sda1
On Mon, 2 Jan 2012 06:52:55 -0800 (PST) brown wrap gra...@yahoo.com wrote: I am using LFS 7.0. I have completed everything just trying to boot the system. When I do boot,it panics and I get: Cannot open root device sda1 or unknown=block(2,0) Maybe it's called sdb1 or hda1 or perhaps you compiled your kernel with modules? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] IPRoute2
On Sat, 31 Dec 2011 17:14:14 -0800 lfs-support.neophyte_...@ordinaryamerican.net wrote: I just tried to download from: https://devresources.linuxfoundation.org/dev/iproute2/download/iproute2-2.6.39.tar.gz and got a 404 - Not Found Any suggestions where I can download an IPRoute2 tarball? http://anduin.linuxfromscratch.org/sources/LFS/lfs-packages/7.0/ Should have everything Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.0 - 6.34 Perl-5.14.2 - 32bit VM Host on Slackware 13
On Fri, 30 Dec 2011 03:52:53 + Ken Moffat zarniwh...@ntlworld.com wrote: This time (still LFS-7.0), module-init-tools (needs libc.a or else --disable-static-tools) I must confess I was unaware of this problem. It's been years since I compiled module init tools as I don't use any modules. and sysvinit (specifically, sulogin - it couldn't find libcrypt although the symlink from libcrypt.so to /lib/libcrypt.so.1 to libcrypt-2.14 looks ok, running ldd on it from the host reported /mnt/lfs/usr/lib/libcrypt.so: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /mnt/lfs/usr/lib/libcrypt.so) linux-vdso.so.1 = (0x7fffaa3ff000) libc.so.6 = /lib/libc.so.6 (0x7f7ac3927000) /lib64/ld-linux-x86-64.so.2 (0x7f7ac3ca8000) - possibly the error message is from running on the older host, but I couldn't persuade sulogin to build until I made the static libcrypt.a visible. Try adding this to the sed on sysvinit's src/Makefile: sed -i '/^all:/i SULOGINLIBS+= -lcrypt' src/Makefile Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Chroot failure
On Thu, 29 Dec 2011 06:47:39 -0500 Austin Jones austin.jones...@gmail.com wrote: I'm doing LFS 7.0 on an Ubuntu 11.10 system. My system rebooted and I need to get back into the Chroot environment. I mounted all the virtual kernel file systems, but when I ran the Chroot command in section 6.4, I received: chroot: failed to run command `/tools/bin/env': No such file or directory What does this show? ldd /tools/bin/env If it mentions /usr/lib or /lib then you have compiled it linked to libraries on your host system and it will not work in chroot. If so it (and everything else that has been miscompiled) will need to be recompiled properly. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] confusion setting up binutils-build directory
On Wed, 28 Dec 2011 05:53:04 -0500 Dave H thegenrl...@gmail.com wrote: hi, i am at Chapter 5.4 of the lfs manual v7.0 and i'm confused where it says to make the binutils-build directory. i am assuming at this step, i should be user lfs and currently in the $LFS/sources directory. however the command mkdir -v ../binutils-build cannot successfully issued by user lfs, because the $LFS is owned by root (partition that was mounted as root). Read the book, particularly the box marked important on this page: http://www.linuxfromscratch.org/lfs/view/stable/chapter05/generalinstructions.html So, on each page you should untar the source, cd into the directory created and then start executing the commands on the page. So, for binutils you should start in /mnt/lfs/sources/binutils-2.21.1 and mkdir -v ../binutils-build will make /mnt/lfs/sources/binutils-build. If you're following the book /mnt/lfs/sources is owned and writable for user lfs so there is no problem. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Chapter 8 Grub Reboot Failures... Progress - but Kernel explodes into confetti
On Tue, 27 Dec 2011 00:12:13 -0500 Jason P Sage jasonps...@jegas.com wrote: APPENDED CORRECTION: (SORRY Wrong link originally) ftp://jegas.net/archives/os/linux/linuxfromsratch/lfs/ INIT: /etc/inittab[19]: id field too long (max 4 characters) You should be able to fix this yourself. let's see /etc/inittab cat /mnt/lfs/etc/inittab Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] GCC-4.6.1 - Pass 2
On Tue, 27 Dec 2011 00:53:47 -0500 Austin Jones austin.jones...@gmail.com wrote: I'm doing LFS 7.0 Section 5.10 on Ubuntu 11.10. When I run make install, I get this error: /usr/bin/install: cannot remove `/tools/libexec/gcc/i686-pc-linux-gnu/4.6.1/install-tools/fixinc.sh': Permission denied make[2]: *** [install] Error 1 make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/fixincludes' make[1]: *** [install-fixincludes] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build' make: *** [install] Error 2 You should read the book. /tools should be a symlink pointing at /mnt/lfs/tools and /mnt/lfs/tools should be owned (and hence writable) for the user lfs. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.0 - 6.34 Perl-5.14.2 - 32bit VM Host on Slackware 13
On Sat, 24 Dec 2011 03:04:10 + Ken Moffat zarniwh...@ntlworld.com wrote: This is also why some of us have a bee in our bonnets about static libraries - if it's only used within a package, no problem. If it's installed into /usr/lib as libfoo.a then you'd better have a means of identifying what used it in case you need to fix a vulnerability. For myself, my buildscripts have a function which moves static libs in /usr/lib to libfoo.a.hidden (except for *some* toolchain libs - I've never had time to sort out all those that *need* to be static : basically, if there is a vulnerability in the toolchain, it's time to build a new LFS system). For what it's worth, I've managed to reduce the number of static libs to 8, all from gcc, binutils or glibc: andy@eccles:~$ ls /usr/lib/*.a /usr/lib/libc_nonshared.a /usr/lib/libmcheck.a /usr/lib/libg.a/usr/lib/libpthread_nonshared.a /usr/lib/libiberty.a /usr/lib/librpcsvc.a /usr/lib/libieee.a /usr/lib/libsupc++.a It may be possible to get rid of some of these, but fiddling with them got time consuming so I gave up. So, on my desktop I know that firefox uses (from memory) libcrmf.a - the build failed, so now my scripts rename the hidden static lib when building firefox. This is from nss? This works for me: ar -x libcrmf.a gcc -shared *.o -o /usr/lib/libcrmf.so rm /usr/lib/libcrmf.a Firefox is quite happy with a shared libcrmf. I wrote a function that generalises it: function convert_static_to_shared() { rm -rf /tmp/conversion mkdir /tmp/conversion pushd /tmp/conversion mv /usr/lib/lib${1}.a . ar -x lib${1}.a gcc -shared *.o -o /usr/lib/lib${1}.so popd rm -rf /tmp/conversion } convert_static_to_shared crmf Some things need to be compiled with -fPIC in there CFLAGS before their static libs can be converted to shared. Similarly, on my current desktop I've got only static libs from nettle rm /usr/lib/lib{hogweed,nettle}.a Works for me. I know that both gnutls and glib-networking use them. Security, even at this minimal level, is almost as much 'fun' as editing the books ;-) For me, gnutls and glib-networking seem to be quite happy with the shared libs. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] what to do? binutils of my host system doesn't match with LFS-7.0 host requirements
On Sat, 24 Dec 2011 23:41:50 +0530 Karthik Bhuvanagiri karthik.bhuvanag...@gmail.com wrote: Hi, I want to build LFS-7.0 but binutils of my host system (ubuntu 11.10) is 2.21.53.20110810 (GNU Binutils for Ubuntu) which doesn't match with the host requirements of LFS-7.0. Shall I proceed building LFS-7.0 with my installed binutils version? If not, is there any workaround? Yes, binutils-2.21 is fine. Drive on. As Bruce said, make sure /bin/sh points at bash, awk is gawk, Bison and texinfo are installed. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.0 - 6.34 Perl-5.14.2 - 32bit VM Host on Slackware 13
On Fri, 23 Dec 2011 18:24:38 -0500 Jason P Sage jasonps...@jegas.com wrote: I just wanted to report that I had trouble with Perl in relation to the ZLib Library. In the book it suggests a sed command that makes Perl compile with the previously installed ZLib Library. This (unlike everything so far) failed for me. ZLib even seemed to install without a hitch. I tried WITH the Errata Perl Code Injection patch and WITHOUT: Each attampt I blew away the Perl folder and unarchived the sources fresh. I finally dropped the sed command that includes the previously installed ZLib - and everything went off without a hitch, the compile took a long time like the docs suggest, the tests all passed. How did you enter the sed? Did you copy and paste it from a browser into the terminal or did you type it character by character? It's quite a long, multi line sed and it's easy to make a mistake if you're typing it. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] did 6.13. Binutils-2.21.1a link against with lib under /tools or /usr
On Mon, 19 Dec 2011 10:00:36 +0800 郭伟利 xintouxia...@gmail.com wrote: Hi ! Friend on lfs! I am using lfs-7.0 I find a question confused with me in (6.10. Re-adjusting the Toolchain ) When verify that the new linker is being used with the correct search paths the output is SEARCH_DIR(/tools/i686-pc-linux-gnu/lib) SEARCH_DIR(/usr/lib) SEARCH_DIR(/lib); I think the right out should be SEARCH_DIR(/usr/lib) SEARCH_DIR(/lib); without SEARCH_DIR(/tools/i686-pc-linux-gnu/lib). if keep doing following the book,the next zlib-1.25 file-5.09 binutils-2.21.1a will link against with lib under /tools ,but i think it should link against with lib under /usr. anyone can tell me why? At that point you have only installed glibc into /usr. You need to link against gcc's libraries in /tools or nothing will work. It gets fixed after you've installed gcc into /usr. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] lfs-7.0 when compile glbc-2.14.1 ERROR: command substitution: syntax error near unexpected token `)'
On Sat, 17 Dec 2011 14:45:42 +0800 郭伟利 xintouxia...@gmail.com wrote: i do the lfs on ubuntu 11.10 my host bash version is 4.2.10(1) , the $( ) works but the lfs' bash version is also 4.2.10(1), the $() does not work ! why? any bodybody can reply? Works for me. If you're getting the error: command substitution: syntax error near unexpected token `)' I suspect that you've made a syntax error inside the brackets. Could you copy and paste some examples from a terminal? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Cant execute dynamically linked binaries on my LFS
On Fri, 16 Dec 2011 11:53:07 +0530 harish badrinath harishbadrin...@gmail.com wrote: What could be wrong ?? Perhaps you made a mistake somewhere in chapter 5. Perhaps you stopped at some point and when you came back you didn't set up the build environment correctly? Perhaps, as a result, some of the things in /mnt/lfs/tools are linked to libraries on your host system. ldd will show this. All the paths ldd gives should start with /tools. If they star with /usr or /lib then those things will need to be compiled again. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] help LFS 6.0 Ch 5.7.1 glibc-2.14.1 configure: error: gcc must provide the cpuid.h header
On Wed, 14 Dec 2011 11:04:32 +0100 Henk Teijema h.teij...@genetwister.nl wrote: Configure stops with error: configureL error: gcc must provide the cpuid.h header Host Proc Arch = i686 Gcc -version = 4.1.2 Cupid.h is in /mnt/lfs/tools/lib/gcc/i686-lfs-linux-gnu/4.6.1/include/cupid.h What do I need to do to fix this? Perhaps you forgot to apply the cpuid patch? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] GCC-4.6.1 compile error.
On Tue, 13 Dec 2011 23:21:18 +0200 Alfs Kurmis kallipy...@inbox.lv wrote: Hi experts. I try install LFS-7. I sucessful installed binutils /mnt/lfs/binutils-build/binutils-2.21.1 but i can not install GCC-4.6.1. I gotta error - see below. As said here i unpacked http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html tar -jxf ../mpfr-3.1.0.tar.bz2 mv -v mpfr-3.1.0 mpfr tar -jxf ../gmp-5.0.2.tar.bz2 mv -v gmp-5.0.2 gmp tar -zxf ../mpc-0.9.tar.gz mv -v mpc-0.9 mpc Here http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html is used only relative paths, and i hav no overview abot folder structure. I can not unterstand - what is correct folders for mpfr , gmp , mpc , GCC ? Absolute or relative to $LFS. lfs@SIS-D /mnt/lfs/gcc-build/gcc-4.6.1 $ echo $LFS /mnt/lfs No, gcc-build and gcc-4.6.1 should be alongside one another, both in /mnt/lfs/sources. The general way the book works is that for each package you untar the source, cd into the folder tar created and than start executing the commands. So on the gcc page it says mkdir ../gcc-build, that will create a folder alongside the gcc source Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.0 - broken bash build - command substitution: syntax error near unexpected token `)'
On Sun, 4 Dec 2011 22:14:26 +0800 Zhu Bicen zhubi...@gmail.com wrote: I also encounter this problem before, I think the cause is on my build machine, /bin/sh is pointing to dash, not bash. please check this Pre Requirement. Is dash installed on Fedora? I thought it was a Debian thing. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.0 - broken bash build - command substitution: syntax error near unexpected token `)'
On Sun, 4 Dec 2011 04:49:05 -0600 Tom Blamer bla...@gmail.com wrote: I've been following the LFS 7.0 stable book exactly, as far as I know, but I've hit a brick wall with building Bash in chapter 5. For example, I see lots of messages like this in the output of make tests: ./glob.tests: command substitution: line 188: syntax error near unexpected token `)' ./glob.tests: command substitution: line 188: `echo */man*/bash.*)' ./glob.tests: command substitution: line 190: syntax error near unexpected token `)' ./glob.tests: command substitution: line 190: `echo */man*/bash.*)' My host system is Fedora 16, x86_64. There are at least four threads where other people had this problem or something similar, and no one ever reported what the issue was. What's the deal? http://www.linuxfromscratch.org/pipermail/lfs-support/2009-September/036410.html http://www.linuxfromscratch.org/pipermail/lfs-support/2010-January/037338.html http://linuxfromscratch.org/pipermail/lfs-support/2011-November/041616.html http://www.linuxfromscratch.org/pipermail/lfs-support/2010-February/037873.html We don't know. No one who knows what they're doing has had that problem. No one who's had the problem has ever worked out what went wrong and posted an explanation. All we know is that something went wrong. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Many certitudes and some doubt
On Fri, 02 Dec 2011 22:55:45 +0100 Giorgio Cittadini gioci...@gmail.com wrote: Today I began my second approach to LFS: I'm trying to build a pure 64 bit OS based on the kernel 3.1.4. The first approach (sufficiently smooth and fully successful) was from and for a 32 bit OS. The version of the book being used is 7.0. The host distribution is Ubuntu version 64 bit 11.10 (it was necessary to complementary install bison, gawk and texinfo). The output from the Section “Host System Requirements” presented the well known error /lib/libc.so.6: no such file or directory. This happens - I think - since in my Ubuntu the libc.so.6 is not directly positioned under /lib, but under its subdirectory /lib/x86_64-linux-gnu, so as libc-2.13.so. I was able to correct the error in two ways: (i) simply copying the libc.so.6 into /lib; (2) creating, as suggested by a recent lfs-support message (20/1/2011), a symlink ln -s /lib/x86_64-linux/gnu/libc-2.13.so /lib/libc.so.6. First: I don't understand the relationship between this two libraries; Second: are the two ways equivalent as regards my future buildings? Many thanks for a kind answer. I wouldn't worry about that. What the script is doing is checking that your host has a recent glibc, which it does. I'm sorry that an error in the script has confused you. It's nothing to worry about. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [blfs-support] bind problems
On Tue, 29 Nov 2011 10:10:53 -0500 Danny Vukobratovich dvukobratov...@marianinc.com wrote: /etc/bind/rndc.key:1: key 'rndc-key': already exists previous definition: /etc/bind/rndc.key:1 Here is my configuration from my named.conf file: It looks like the problem is in /etc/bind/rndc.key. Can we see that? (obscure the secret). Andy -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] gcc
On Thu, 24 Nov 2011 19:08:33 -0600 Eleanore Boyd cara...@cox.net wrote: On 11/24/2011 10:41 AM, Aaron Hill wrote: I am using Version 7.0 of the LFS book. When I try to compile GCC with the make command as root, I receive the following error: cc1-checksum.o main.o tree-browser.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/mnt/lfs/sources/gcc-build/./gmp/.libs -L/mnt/lfs/sources/gcc-build/mpfr/src/.libs -L/mnt/lfs/sources/gcc-build/./mpc/src/.libs -lmpc -lmpfr -lgmp -rdynamic -ldl -L../zlib -lz collect2: ld terminated with signal 9 [Killed] make[3]: *** [cc1] Error 1 make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/mnt/lfs/sources/gcc-build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build' amake: *** [all] Error 2 I saw a similar problem at this post http://www.linuxfromscratch.org/pipermail/lfs-support/2011-September/041326.html, but the person was using an older version of the book. Can you help me? I think something killed the process, as it even says so. Make sure no antivirus is running in the background, and make sure nothing is outside the chroot environment where it won't be seen. Also, make sure there isn't a process killer running when you're doing this. I agree, it looks like something killed the process. My suspicion is that it was the kernel's out of memory code at work. Gcc needs quite a lot of RAM to compile these days. Do you have a large enough swap partition? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] 6.9.1. Installation of Glibc command substitution error
On Sat, 19 Nov 2011 23:14:19 -0600 Bruce Dubbs bruce.du...@gmail.com wrote: Zhu Bicen wrote: Hi all, I am using stable LFS7.0 book, and doing the build step by step. Every thing goes well before 6.9.1. Installation of Glibc. But within 6.9.1. Installation of Glibc, I encountered two errors which are both about the command substitution. After I encountered these two errors, I suspect I missed something import point, So I did it again from a fresh begin, but the two errors occurred again. The first time I am using debian 5 ,and second try is using ubuntu 11.10. Any body have some comments? Are you using bash as specified in Section vii. Host System Requirements? In chapter 6 he's on chroot, using the bash we install into /tools. Won't the host system requirements be academic if he's got that far? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] libc.so.6
On Sun, 20 Nov 2011 16:32:57 +0800 Zhu Bicen zhubi...@gmail.com wrote: Hi, I am check the host requirement to build LFS. after issuing the version-check.sh on error is occured: I am using a 32 bit ubuntu 11.10. version-check.sh: line 22: /lib/libc.so.6: No such file or directory I haven't downloaded or tried ubuntu 11.10 so I can't say for certain but I suspect you'll be fine. The file seems to be in a subdirectory (/lib/i383-linux-gnu/libc.so.6? I'm not sure). The rest of you output looks fine (/bin/sh and awk look good). I'd crack on if I were you. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: built LFS7 wont boot from usb harddrive
On Sun, 13 Nov 2011 10:36:34 + spiky martynvid...@aol.com wrote: Ok I used grub prompt it showed the usb drive hd0,msdos1(LFS-7.0),2(swap),3(home). then entered set root=(hd0,msdos) linux /boot/vmlinux-3.1-7.0 (it found with tab)root=/devsda1 boot i get no filesystem could mount root tried ext 3 ,2, 4 etc also Kernel panic not syncing VFS unable to mount root fs on unknown block (8.1). This is the same as I get when I let it boot as normal for this drive. That looks like a kernel panic, which is good because it means you've got past the BIOS and grub. It could be that you've not compiled the kernel with support for the root filesystem built into the kernel. It could also be that the kernel config is fine but you've passed it the wrong root= option on the grub command line. I'm pretty sure I'd get a similar looking kernel panic if I tried to boot my kernel with root= pointing to my swap partition. Another possibility is that the kernel sees the partition as /dev/sdb1 or /dev/hdc1 or some such. There's no way to be sure other than to try all the combinations you can think of and see what works. If none of them work then the problem is probably with your kernel config so you'll have to work on that recompile your kernel until you get one that boots. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: built LFS7 wont boot from usb harddrive
On Sat, 12 Nov 2011 22:53:11 + spiky martynvid...@aol.com wrote: I have built lfs7 with linux 3.1rc4. I cant boot it when on sdc. If drive is put in laptop on IDE it will boot. I have set the fstab grub.cfg in lots of different ways still no joy, grub.cfg # Begin /boot/grub/grub.cfg set default=0 set timeout=5 insmod ext2 set root=(hd2,1) menuentry GNU/Linux, Linux 3.1-lfs-7.0 { linux /boot/vmlinuz-3.1-lfs-7.0 root=/dev/sdc1 } fstab # Begin /etc/fstab # file system mount-point type options dump fsck #order /dev/sdc1 /ext4 defaults1 1 /dev/sdc2 swap swap pri=1 0 0 proc /procproc defaults0 0 sysfs /sys sysfs defaults0 0 devpts /dev/pts devpts gid=4,mode=620 0 0 tmpfs /run tmpfs defaults0 0 # End /etc/fstab I would like it to boot off it,s own drive selected by bios (bios dose allow booting from usb) At what point in the boot process does the boot fail (BIOS, grub or kernel)? What sort of error messages do you get when the boot fails? Give us a clue, what actually happens? FWIW fstab is irrelevent for a boot failing. The kernel gets its root partition from the grub command line in grub.cfg and mounts that read only. /etc/fstab comes into play later when the bootscripts do their work. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: v7.0, gcc pass 2 won't make. libmpfr not found?
On Thu, 10 Nov 2011 10:23:28 + (GMT) Christian Gardner christian_gard...@yahoo.co.uk wrote: Subject says it all really. Everything up to this point seems to go smoothly - creating the filesystem, first passes of binutils, gcc, linux headers, glibc, adjusting the toolchain, second pass of binutils. I've double checked and I seem to be typing everything correctly (I put it all in a script). Perhaps it would be best if you sent the script then we could see what you've done? I've never seen anything like your error message. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Ok, now I am having issues
On Tue, 8 Nov 2011 07:04:54 -0600 William Immendorf will.immend...@gmail.com wrote: (Bruce, you may want to add:) The LiveCDs of these distributions work well as a base system too. As others have said, they may need some tweaking (/bin/sh = bash, gawk, etc) Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Ok, now I am having issues
On Mon, 7 Nov 2011 23:57:21 +0330 Yaser Amini devil.princ...@gmail.com wrote: Try to execute command separately First: CC=$LFS_TGT-gcc -B/tools/lib/ \ AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib Second: ../binutils-2.21.1/configure --prefix=/tools \ --disable-nls --with-lib-path=/tools/lib No, don't. If you execute those commands separately then the CC and AR environment variables will be set for everything you run in that terminal. Just follow the book. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: 6.7. Linux-3.0.4 API Headers - make headers_check
On Tue, 18 Oct 2011 19:50:05 -0700 Don Burns d...@andesengineering.com wrote: Hello lfs'ers, I've just joined the list and, though I've seen this question asked in the archives, I did not find an answer that I could turn into a fix. I'm building with Version 7.0-rc2, I've gotten to step 6.7, and followed, carefully, all steps, verbatim, leading to this (three times - just in case). root:/sources/linux-3.0.4# make headers_check CHK include/linux/version.h HOSTCC scripts/basic/fixdep /tools/lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../i686-pc-linux-gnu/bin/ld: warning: cannot find entry symbol _start; defaulting to 080486e0 Usage: fixdep depfile target cmdline make[1]: *** [scripts/basic/fixdep] Error 1 make: *** [scripts_basic] Error 2 Insights would be very much appreciated. Installing the kernel headers is the first thing that you do in chroot that uses the programs installed in chapter 5. If something has gone wrong it is the first time it might show up. From your error above it looks like /tools/lib/i686-pc-linux-gnu/bin/ld is broken. What does ldd /tools/lib/i686-pc-linux-gnu/bin/ld say? If it lists libraries from /usr then it was compiled linked to libraries on your host system that are not available in chroot and it will need to be reinstalled along with anything else linked to your host system. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: LFS-6.8 - wireless
On Fri, 14 Oct 2011 20:04:49 -0400 scrat baho-u...@columbus.rr.com wrote: I have completed a LFS-6.8 build and it actually boots and functions :) I have it on a Dell Inspiron 1501 laptop which has a broadcomm b44 ethernet adapter and a B43 wireless adapter. I used to run Arch linux on this laptop with the wireless fully usable/functional. Good. Well done. When I first bought this Dell netbook it had a broadcom b43 wireless card. I could only get it to work with the closed source broadcom drivers. It made recompiling the kernel a total pain. In the end I gave up on it and spent £15 on an atheros card. Atheros have good open source drivers that are in the kernel. I have the B44 ethernet working and would like to get the wireless functional. If it works with Arch it will work with LFS. Some of the B43 cards work with the kernel drivers. Please forgive my rant above, I was unlucky. Does LFS-6.8 support wireless out of the box with just wireless_tools and the firmware installed? Err I don't know, I don't use the networking scripts from the LFS bootscripts. I rolled my own scripts based on commands that worked. Here is what I have so far iwfconfig shows wlan0 is available ip link shows 2: wlan0: NO-CARRIER,BROADCAST,MULTICAR,UP mtu 1500 qdisc mq state DOWN qlen 1000 ip link set wlan0 up responds with [ 24.321056] b43-phy0: Loading firmware version 478.104 (2008-07-01 00:50:23) ip link shows 2: wlan0: NO-CARRIER,BROADCAST,MULTICAST,UP mtu 1500 qdisc mq state DOWN qlen 1000 That all looks good. I remember getting similar encouraging results with my B43. iwlist wlan0 scan responds with wlan0 No scan results That doesn't look good. It really was a horrible experience dealing with that broadcrap... It looks like the wireless interface is still down Is there something I am missing? If I were you I would boot into your Arch system and work out what they did at the kernel level to get the card working. If that doesn't work and you're desperate, try the broadcrap sta driver http://www.broadcom.com/support/802.11/linux_sta.php but please don't. I recommend spending a small amount on a suitable atheros card. Support companies who work to get their code into the kernel! What works for me is: ip addr add 192.168.1.4 dev wlan0 ip link set wlan0 up wpa_supplicant -B -c/etc/wpa_supplicant.conf -iwlan0 -Dwext ip route add 192.168.1.1 dev wlan0 ip route add default via 192.168.1.1 dev wlan0 ip is part of iproute installed in LFS. wpa_supplicant is needed to access a secure access point http://hostap.epitest.fi/wpa_supplicant/ wpa_supplicant is an excellent tool. /etc/wpa_supplicant.conf just holds the SSID and psk (pre-shared key) for the networks. Before I got wpa/psk2 working I used iwconfig to associate with an unsecure access point but I can't remember the details. The commands above uses static addresses. If I was using someone else's router and they had dhcpd I would use this: wpa_supplicant -B -c/etc/wpa_supplicant.conf -iwlan0 -Dwext sleep 2 dhcpcd Static routes make it easier to navigate my home network. But those scripts are no use to you if iwlist wlan0 scan sees no access points. That suggests a problem with the B43 driver. Good luck with that. :/ But keep going, it's not too hard to get it all working. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [LFS 6.8] [Chapter 5.10] 'program interpreter' should be in /tools/... but is actually in /lib64/...
On Thu, 13 Oct 2011 17:29:01 +0100 Stephen Bryant stephenrbry...@gmail.com wrote: Hi all, This is my first post to this mailing list. I am working my way through LFS 6.8, and at the end of '5.10. GCC-4.5.2 - Pass 2' I have compiled dummy.c to a.out. I have not deliberately deviated from the book in any way (except using MAKEFLAGS = '-j 2'). Unfortunately running readelf on the compiled 'a.out' gives me: readelf -l a.out | grep 'Req' [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2] Which is not correct (as I understand it the interpreter should be in /tools/lib/...). Therefore I have made a mistake somewhere, but I do not know enough to know how far back this may be, so I was wondering if anyone here could give me clue so I don't have to start again from the beginning (I have already repeated section 5.10 from scratch, but this has not resolved the issue)? It looks like you either didn't set up the environment properly to start with or perhaps you closed the shell at some point and when you opened a new one you didn't set up your ${PATH} and everything correctly. You're still only in chapter 5 so starting again is not a big deal. I suggest you take off and nuke the site from orbit. It's the only way to be sure. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: shadow-4.1.4.3, process limits and fork bombs
Hello, The good news is that current svn pkg-shadow works, it successfully limits the number of processes (with PAM at least, I've not tried it without PAM). The bad news is it has other problems, passwd works but pwconv, grpconv and chpasswd all fail with errors like this: chpasswd: nscd exited with status 1 chpasswd: Failed to flush the nscd cache. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: shadow-4.1.4.3, process limits and fork bombs
Sorry for the noise. My fault. Shadow-4.1.4.3 is working normally. I've been using slim http://slim.berlios.de/ as a login manager run from a bootscript run by init and it seems that it is not setting the limits. If I login at the command prompt shadow sets the limits. The reason I thought shadow-4.0.18.1 was working and shadow-4.1.4.3 wasn't was because when I built the system with shadow-4.0.18.1 I tested it at the command prompt before I built xorg. Sorry for the noise. Mea culpa. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: shadow-4.1.4.3, process limits and fork bombs
On Sat, 08 Oct 2011 21:17:45 -0500 Bruce Dubbs bruce.du...@gmail.com wrote: bash has a built in ulimit command, PAM has a pam_limits module, and shadow uses /etc/limits. I don't think any of these actually control the limits, but sets a value for the kernel to do it. I suspect you have a kernel issue, not a pam or shadow issue. shadow-4.0.18.1 works and shadow-4.1.4.3 doesn't. What makes you think it's a kernel issue? Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: shadow-4.1.4.3, process limits and fork bombs
On Sun, 09 Oct 2011 09:59:25 -0500 Bruce Dubbs bruce.du...@gmail.com wrote: shadow-4.0.18.1 is pretty old. I figured you did a complete upgrade, including the kernel. No, I was using the same kernel, current linus git If you do `ulimit -u 128` from the bash prompt, does that limit your processes? Yes, that works, but the fact remains that shadow-4.1.4.3 is broken. Looking at libmisc/limits.c there are major differences between 4.0.18.1 and 4.1.4.3. I don't know enough about C to work out where the problem lies but I expect it is in a code path that is used if shadow parses /etc/limits or if it gets the info via pam from /etc/security/limits.conf 'cos I've tried both ways and the result is the same. I'd like to help fix shadow-4.1.4.3, but 4.0.18.1 is working fine so it's not an emergency. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: shadow-4.1.4.3, process limits and fork bombs
On Sun, 09 Oct 2011 13:48:38 -0500 Bruce Dubbs bruce.du...@gmail.com wrote: I see you tried the shadow mailing list. I hope you get an answer, but the list seems to have a lot of spam, so I'm not sure how much it is actually read. That was my impression too, which is why I didn't subscribe Did you see https://alioth.debian.org/tracker/index.php?func=detailaid=312375group_id=30580atid=411478 That was from 18 months ago. The 4.1.4.3 news says there was a small change in Feb 2011, but the change before that was July 2009. Thanks for that, I hadn't seen it, it led me to this https://alioth.debian.org/tracker/index.php?func=detailaid=312374 It talks about the setting of user limits from the /etc/limits file is fundamentally broken which seems similar to the issue I'm seeing, however it doesn't deal with the case where PAM is used. The patch attached there still applies to shadow-4.1.4.3. It compiles but sadly doesn't fix the problem. Thanks for looking at this. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
shadow-4.1.4.3, process limits and fork bombs
Hello, I've wrote to LFS support before about fork bombs. Last July I learned how to prevent them by limiting the number of processes a user can have with /etc/limits. Recently I've been working on installing linux-PAM (for ssh, it gives me more options to use PAM. I want to open ssh to the internet so I'm hardening things up a bit). As part of my testing I tried a fork bomb and was horrified to discover that nothing I did with PAM could prevent the fork bomb from locking up the system. Then I tried it on a system that didn't have PAM (it still had just shadow) and the result was the same, the fork bomb made the system unresponsive. I can't remember what version of shadow I was using last July but I can't make shadow-4.1.4.3 limit the number of processes and protect against a fork bomb. I've just rebuilt a system with shadow-4.0.18.1 and when I run a fork bomb the shell fills up with Resource temporarily unavailable (ie, shadow-4.0.18.1 has done it's job and limited the number of processes), the system stays responsive, I can log out and shut down cleanly. Basically, shadow-4.0.18.1 works. The current version (shadow-4.1.4.3) is broken. With or without PAM it cannot limit the number of processes. It seems to me that any system with shadow-4.1.4.3 is vulnerable to a fork bomb. We should go back to 4.0.18.1, which works. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page