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.
Hello people,
I'm building an LFS system. I've downloaded the latest LiveCD, but as I can't make it boot I'm building the LFS on my Backtrack using the sources from the LFS LiveCD.
I can't proceed because I've got an issue with the chapter 5.6:
I've unpacked the kernel linux-2.6.22.5 and then tried to extract the required headers, beginning with "make headers_check" command, but here's the output:
root@bt:/mnt/lfs/sources/linux-2.6.22.5# make headers_check
CHK include/linux/version.h
HOSTCC scripts/unifdef
scripts/unifdef.c:209: error: conflicting types for ‘getline’
/usr/include/stdio.h:651: note: previous declaration of ‘getline’ was here
make[1]: *** [scripts/unifdef] Error 1
make: *** [headers_install] Error 2
I would really like to successfully build the LFS... please help =)
- Do not use the packages on the LFS liveCD. They are from an old LFS version (LFS 6.3). Use the latest stable LFS version (LFS 6.8 at this moment). If you do not want to download all the individual packages you can download a tarball here: LFS Packages
- If you cannot use the liveCD as a host make sure that the host you are using (backtrack in your case) is made compliant: Host System Requirements
- Do start reading from the first page of the LFS book, valuable information is provided in those first chapters that will make your LFS building experience easier.
Thanks for the reply.
I've also tried to use packages from LFS 6.8, but as kernel.org is down I used the kernel 2.6.22.5, the older version.
All the packages are of later version than those indicated in Host System Requirements...
It looks like my PC wants to compile something using existing headers in /usr folder, but the only thing I need is to extract some headers from the kernel sources and place them into LFS folders...
Any other ideas?
I've also tried to use packages from LFS 6.8, but as kernel.org is down I used the kernel 2.6.22.5, the older version.
The LFS Packages link I provided in my previous post has all the required packages, no need to go to the home page of any package.
Whatever you do: Do not mix and match LFS versions!! Stick with one LFS version (6.8) and use the package versions mentioned (did you run the script?).
Quote:
All the packages are of later version than those indicated in Host System Requirements...
That statement doesn't mean anything. Higher then recommended or "just" a minor or build version higher?
I do hope you switched to LFS 6.8. The 6.3 version might be too old for your current backtrack.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.