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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
06-20-2005, 06:04 AM
|
#1
|
Member
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893
Rep:
|
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.
|
|
|
06-20-2005, 09:17 AM
|
#2
|
Member
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893
Original Poster
Rep:
|
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.
|
|
|
06-21-2005, 12:45 AM
|
#3
|
Member
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893
Original Poster
Rep:
|
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.
|
|
|
06-21-2005, 01:19 AM
|
#4
|
LQ Newbie
Registered: Jun 2005
Posts: 8
Rep:
|
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.
|
|
|
06-21-2005, 09:16 AM
|
#5
|
Member
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893
Original Poster
Rep:
|
Thanks, will try it.
|
|
|
06-23-2005, 11:38 AM
|
#6
|
Member
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893
Original Poster
Rep:
|
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.
|
|
|
06-23-2005, 01:34 PM
|
#7
|
LQ Newbie
Registered: Jun 2005
Posts: 8
Rep:
|
I am sorry but what Lfs book are you useing and what page?
Last edited by comtux; 06-23-2005 at 01:42 PM.
|
|
|
06-23-2005, 08:45 PM
|
#8
|
Member
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893
Original Poster
Rep:
|
LFS6.0
|
|
|
07-20-2005, 05:47 PM
|
#9
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,262
|
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. 
|
|
|
07-29-2005, 08:06 AM
|
#10
|
Member
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893
Original Poster
Rep:
|
I decided that LFS is too hard for me... at least now.
So no need to worry 
|
|
|
All times are GMT -5. The time now is 09:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|