LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-19-2004, 09:32 PM   #1
vegpl
LQ Newbie
 
Registered: Jan 2004
Location: ~
Posts: 28

Rep: Reputation: 15
very beginning


when creating the bash_profile and bashrc should you create them on the host machine or the lfs partition?
 
Old 06-19-2004, 09:40 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
I imagine the lfs partition, ( you already have one on your host ), unless it says edit, then your editing the one you already have. You'd have to log out, and nack in for it to take effect though.
 
Old 06-19-2004, 10:01 PM   #3
vegpl
LQ Newbie
 
Registered: Jan 2004
Location: ~
Posts: 28

Original Poster
Rep: Reputation: 15
is anyone 100% sure of this?
 
Old 06-19-2004, 10:21 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by leonscape
I imagine the lfs partition, ( you already have one on your host ), unless it says edit, then your editing the one you already have. You'd have to log out, and nack in for it to take effect though.
Not entirely true.. you can invoke this command to make it take affect immediately:

source .bash_profile

source .bashrc

And I do believe when editing your .bash_profile or .bashrc files, its on your existing system while performing the LFS installation.. until you boot up into LFS for the first time, your not going to be using these files on its partition.
 
Old 06-19-2004, 10:50 PM   #5
vegpl
LQ Newbie
 
Registered: Jan 2004
Location: ~
Posts: 28

Original Poster
Rep: Reputation: 15
ok just in case I just copied them into my LFS partition.

I also have another problem after downloading all the packages and patches to /mnt/source the book then tells me to extract them as the lfs user but all the files are set to 600 for permissions and a few are set to 644. the file ownership belongs to my original account which is the account i used to downlad the files. the group ownership belongs to users which is default.

I checked the umask on the partition and it's 0022

the sources folder permissions are drwxrwxrwt 2 lfs root

I dunno where I went wrong should i start all over again?
 
Old 06-19-2004, 11:21 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
No need to start over, just chown the files and directories to be owned by your user lfs.

chown -R lfs <filename or directory>

man chown for more details.
 
Old 06-19-2004, 11:33 PM   #7
vegpl
LQ Newbie
 
Registered: Jan 2004
Location: ~
Posts: 28

Original Poster
Rep: Reputation: 15
yea lol it took me a while to figure out why that happened. also had to chown the partition
 
Old 06-21-2004, 07:19 PM   #8
vegpl
LQ Newbie
 
Registered: Jan 2004
Location: ~
Posts: 28

Original Poster
Rep: Reputation: 15
New problem, I made it to chapter 6 and after running 'make check' for glibc I get a few errors.

Code:
gcc -nostdlib -nostartfiles -o /sources/glibc-build/posix/wordexp-test  -Wl,-dynamic-linker=/lib/ld-linux.so.2   -Wl,-z,combreloc  /sources/glibc-build/csu/crt1.o /sources/glibc-build/csu/crti.o `gcc --print-file-name=crtbegin.o` /sources/glibc-build/posix/wordexp-test.o  -Wl,-rpath-link=/sources/glibc-build:/sources/glibc-build/math:/sources/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/glibc-build/crypt:/sources/glibc-build/linuxthreads /sources/glibc-build/libc.so.6 /sources/glibc-build/libc_nonshared.a -lgcc -lgcc_eh `gcc --print-file-name=crtend.o` /sources/glibc-build/csu/crtn.o
/sources/glibc-build/posix/wordexp-test.o(.text+0xd1): In function `main':
/sources/glibc-2.3.3-lfs-5.1/posix/wordexp-test.c:249: the use of `tmpnam' is dangerous, better use `mkstemp'
GCONV_PATH=/sources/glibc-build/iconvdata LC_ALL=C   /sources/glibc-build/elf/ld-linux.so.2 --library-path /sources/glibc-build:/sources/glibc-build/math:/sources/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/glibc-build/crypt:/sources/glibc-build/linuxthreads /sources/glibc-build/posix/wordexp-test  > /sources/glibc-build/posix/wordexp-test.out
make[2]: *** [/sources/glibc-build/posix/wordexp-test.out] Error 1
make[2]: Leaving directory `/sources/glibc-2.3.3-lfs-5.1/posix'
make[1]: *** [posix/tests] Error 2
make[1]: Leaving directory `/sources/glibc-2.3.3-lfs-5.1'
make: *** [check] Error 2
should I continue or are these errors something serious?

Last edited by vegpl; 06-21-2004 at 07:21 PM.
 
Old 06-25-2004, 03:21 PM   #9
znif
Member
 
Registered: Mar 2004
Location: Valgu - is it mean for u something?
Distribution: SuSE 9.1 and LFS soon (I hope)
Posts: 30

Rep: Reputation: 15
same problem here - same errors.
 
Old 06-25-2004, 05:15 PM   #10
znif
Member
 
Registered: Mar 2004
Location: Valgu - is it mean for u something?
Distribution: SuSE 9.1 and LFS soon (I hope)
Posts: 30

Rep: Reputation: 15
no1 knows anything???
 
Old 06-25-2004, 06:22 PM   #11
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by znif
no1 knows anything???
Stop bumping threads and or hijacking threads per se. LFS is not very newbie friendly, not everyone is familiar with it. And making statements that no one knows nothing is not going to get faster replies, only piss members off who do come here to help PEOPLE like you in their own free time. Be patient!
 
Old 06-25-2004, 07:45 PM   #12
znif
Member
 
Registered: Mar 2004
Location: Valgu - is it mean for u something?
Distribution: SuSE 9.1 and LFS soon (I hope)
Posts: 30

Rep: Reputation: 15
Last post wasnt very helpful, trickykid. AND - as I can see lots of ppl got same problem... SO - here must be bug or what?

Last edited by znif; 06-25-2004 at 07:49 PM.
 
Old 06-25-2004, 11:14 PM   #13
vegpl
LQ Newbie
 
Registered: Jan 2004
Location: ~
Posts: 28

Original Poster
Rep: Reputation: 15
did you run the make_devices script?
 
Old 06-26-2004, 11:56 AM   #14
znif
Member
 
Registered: Mar 2004
Location: Valgu - is it mean for u something?
Distribution: SuSE 9.1 and LFS soon (I hope)
Posts: 30

Rep: Reputation: 15
Well... I dont know what was wrong exactly. I start it all from beginning and now got problems with installing perl. No any error was with gcc now.
 
  


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
Just the beginning.... woodworker97 Mandriva 5 05-20-2005 01:53 AM
A new beginning... LK873 Mandriva 13 03-08-2005 06:59 AM
stacked at the beginning alaios Linux From Scratch 2 04-16-2004 03:33 PM
Beginning to print iqbala Linux - Newbie 1 01-11-2004 05:16 PM
Beginning Fatal_3rr0r Programming 4 06-09-2003 08:08 PM

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

All times are GMT -5. The time now is 02:01 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