LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 09-15-2011, 06:45 AM   #1
llioha
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Rep: Reputation: Disabled
Question LFS chapter 5.6 problems, need help


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 =)
 
Old 09-15-2011, 07:00 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Here are a few pointers that might help you:

- 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.

Hope this helps.
 
Old 09-15-2011, 07:27 AM   #3
llioha
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
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?

Thanks in advance!
 
Old 09-15-2011, 07:58 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by llioha View Post
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.

Hope this helps.
 
Old 09-15-2011, 04:48 PM   #5
llioha
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Lightbulb

Well, I've downloaded the tarball you said and now everything works just fine!
Thanks a lot for your advices!
 
Old 09-16-2011, 01:24 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
You're welcome
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 06:30 AM
lfs chapter 6.11 Binutils-2.16.1 make problems Nislick Linux From Scratch 3 08-15-2006 05:25 PM
lfs chapter 6.12 deucedlt Linux From Scratch 1 08-13-2006 10:03 AM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
chapter 6.3 of LFS 6.1 Stamp Linux From Scratch 2 07-22-2005 07:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration