LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-20-2005, 06:04 AM   #1
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
Questions about building LFS


I want to use 2.4.31 kernel instead of suggested 2.6.8.1 one in LFS book.
But Linux-Libc-Headers exist only for 2.6.x.
Can I use the ones from /usr/include, or from /usr/src/linux/include?

Thanks.
 
Old 06-20-2005, 09:17 AM   #2
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Original Poster
Rep: Reputation: 35
Ok, I've used the ones from /usr/include.

But when I tried to compile Glibc-2.3.4, I had got the following error:
Code:
make[2]: *** [/lfs/build/glibc/sunrpc/xbootparam_prot.stmp] Error 127
make[2]: Leaving directory `/home/local/src/lfs/build/glibc/glibc-2.3.4/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/home/local/src/lfs/build/glibc/glibc-2.3.4'
make: *** [all] Error 2
Can anyone help me?
Thanks.
 
Old 06-21-2005, 12:45 AM   #3
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Original Poster
Rep: Reputation: 35
I've taken Linux-Libc-Headers from /usr/src/linux/include, but had failed again:
Code:
gcc -s -B/tools/bin/ -nostdlib -nostartfiles -o /tools/build/glibc/sunrpc/rpcinfo  -Wl,-dynamic-linker=/tools/lib/ld-linux.\
so.2   -Wl,-z,combreloc -Wl,-z,relro /tools/build/glibc/csu/crt1.o /tools/build/glibc/csu/crti.o `gcc -s -B/tools/bin/ --pr\
int-file-name=crtbegin.o` /tools/build/glibc/sunrpc/rpcinfo.o  -Wl,-rpath-link=/tools/build/glibc:/tools/build/glibc/math:/\
tools/build/glibc/elf:/tools/build/glibc/dlfcn:/tools/build/glibc/nss:/tools/build/glibc/nis:/tools/build/glibc/rt:/tools/b\
uild/glibc/resolv:/tools/build/glibc/crypt:/tools/build/glibc/nptl /tools/build/glibc/libc.so.6 /tools/build/glibc/libc_non\
shared.a -lgcc -Wl,--as-needed -lgcc_s  -Wl,--no-as-needed `gcc -s -B/tools/bin/ --print-file-name=crtend.o` /tools/build/g\
libc/csu/crtn.o
CPP='gcc -s -B/tools/bin/ -E -x c-header'  /tools/build/glibc/elf/ld-linux.so.2 --library-path /tools/build/glibc:/tools/bu\
ild/glibc/math:/tools/build/glibc/elf:/tools/build/glibc/dlfcn:/tools/build/glibc/nss:/tools/build/glibc/nis:/tools/build/g\
libc/rt:/tools/build/glibc/resolv:/tools/build/glibc/crypt:/tools/build/glibc/nptl /tools/build/glibc/sunrpc/rpcgen -Y ../s\
cripts -c rpcsvc/bootparam_prot.x -o /tools/build/glibc/sunrpc/xbootparam_prot.T
cannot set up thread-local storage: set_thread_area failed when setting up thread-local storage

make[2]: *** [/tools/build/glibc/sunrpc/xbootparam_prot.stmp] Error 127
make[2]: Leaving directory `/home/local/src/lfs/tools/build/glibc/glibc-2.3.4/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/home/local/src/lfs/tools/build/glibc/glibc-2.3.4'
make: *** [all] Error 2
LFS makes me think that it's not intended for everyone (only for 2.6.x users). I'm thinking to proceed with reading Bootdisk-HOWTO.

Can you help me? Advise anything? Maybe not about LFS, but about building custom Linus system.

Thanks.
 
Old 06-21-2005, 01:19 AM   #4
comtux
LQ Newbie
 
Registered: Jun 2005
Posts: 8

Rep: Reputation: 0
Follow the Lfs 6.0 book up to the point of the (kernel, Libc-Headers,And Module-init-utils) and use the same versions the 4.0 book uses for these three packages following any commands issued that are only relevant to the 2.4 series kernel.
 
Old 06-21-2005, 09:16 AM   #5
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Original Poster
Rep: Reputation: 35
Thanks, will try it.
 
Old 06-23-2005, 11:38 AM   #6
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Original Poster
Rep: Reputation: 35
Chapter 5.34.
While doing
Code:
./configure.gnu --prefix=/tools -Dstatic_ext='IO Fcntl POSIX'
script told me that I miss "libgdbm.so.3".
How can I fix it? I've used gcc-3.3.4 instead of suggested gcc-3.4.1

Thanks.
 
Old 06-23-2005, 01:34 PM   #7
comtux
LQ Newbie
 
Registered: Jun 2005
Posts: 8

Rep: Reputation: 0
I am sorry but what Lfs book are you useing and what page?

Last edited by comtux; 06-23-2005 at 01:42 PM.
 
Old 06-23-2005, 08:45 PM   #8
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Original Poster
Rep: Reputation: 35
LFS6.0
 
Old 07-20-2005, 05:47 PM   #9
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
You may need to run /sbin/ldconfig after making changes to libraries, to be sure that the cached information is up-to-date.

The library search-process in Linux is .. shall we say .. interesting.
 
Old 07-29-2005, 08:06 AM   #10
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Original Poster
Rep: Reputation: 35
I decided that LFS is too hard for me... at least now.
So no need to worry
 
  


Reply



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
Building 64bit LFS currir55 Linux From Scratch 1 11-15-2005 03:47 PM
Building Binary LFS Tuvok Linux From Scratch 10 03-20-2005 07:09 PM
Building LFS on a Pocket PC Immolo Linux From Scratch 0 05-21-2004 04:51 AM
Building Screen-4.0.2 (and others...) on LFS cjcuk Linux From Scratch 5 12-17-2003 09:11 AM
Building LFS for Server Iceman Cometh Linux From Scratch 3 03-04-2002 01:14 AM

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

All times are GMT -5. The time now is 07:33 AM.

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