[SOLVED] The expect -c "spawn ls" check in section 6.12 of the book gives a segmentation fault
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The expect -c "spawn ls" check in section 6.12 of the book gives a segmentation fault
I am trying to build LFS 6.8 on an Ubuntu 11.04 machine. I am getting the following output when I try to run Binutils2.21 Installation check under section 6.12 of the LFS Book.
root:/sources/binutils-2.21# expect -c "spawn ls"
spawn ls
Segmentation fault
I do not understand if this is a problem, since the book states that I should get back a 'spawn ls' and I do get that, though I get a Seg fault afterwards.
I have followed the book except for one change. I automount the LFS partition under /mnt/lfs using the /etc/fstab file on startup. That seems to have worked fine so far. I have also set up the environment for PTY operation using the mounts and then used the chroot command as in the book.
I found the solution for this myself (and learnt a valuable lesson in shell scripting along the way). I was using a shell script to mount devpts, shm, sysfs etc...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.