LinuxQuestions.org
Review your favorite Linux distribution.
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 07-11-2005, 05:20 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,679

Rep: Reputation: 55
Segmentation fault


Hi folks,

6.11.1. Installation of Glibc
http://www.sg.linuxfromscratch.org/l...r06/glibc.html

upto
root:/sources/glibc-build# touch /etc/ld.so.conf
root:/sources/glibc-build# make install

Went through without problem

Now coming to re-do
root:/sources/glibc-build# mkdir -p /usr/lib/locale
root:/sources/glibc-build# localedef -i de_DE -f ISO-8859-1 de_DE
Segmentation fault
root:/sources/glibc-build# localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
Segmentation fault

What is Segmentation fault? How to get rid of them.

TIA

B.R.
satimis

Last edited by satimis; 07-11-2005 at 05:25 AM.
 
Old 07-11-2005, 10:10 AM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
Segmentation fault usually indicates an application is trying to access memory it doesn't have access to.

What happens if you just do the
make localedata/install-locales
?
 
Old 07-11-2005, 11:30 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,679

Original Poster
Rep: Reputation: 55
Hi kjordan,

Tks for your advice.

Quote:
What happens if you just do the
make localedata/install-locales?
It went through with only one mistake.

# make localedata/install-locales
Code:
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.4-20040701 objdir=`pwd` localedata/install-locales
make[1]: Entering directory `/sources/glibc-2.3.4-20040701'
make  -C localedata install-locales
make[2]: Entering directory `/sources/glibc-2.3.4-20040701/localedata'
.././scripts/mkinstalldirs /usr/lib/locale
aa_DJ.ISO-8859-1... done
aa_ER.UTF-8... done
....
....
- snip -
....
....
se_NO.UTF-8... done
sid_ET.UTF-8...LC_ADDRESS: `lang_lib' value does not match `lang_term' value
 done
sk_SK.UTF-8... done
.....
.....
- snip -
.....
.....
zu_ZA.UTF-8... done
zu_ZA.ISO-8859-1... done
make[2]: Leaving directory `/sources/glibc-2.3.4-20040701/localedata'
make[1]: Leaving directory `/sources/glibc-2.3.4-20040701'
root:/sources/glibc-build#


I have been building LFS several days. My difficulty was that the FC3 Host PC has to be "on" and "off" after work each day.

Yesterday I succeeded going through this last part "The locales" of
6.11. Glibc-2.3.4-20040701
http://www.sg.linuxfromscratch.org/...er06/glibc.html

mkdir -p /usr/lib/locale
localedef -i de_DE -f ISO-8859-1 de_DE
localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
localedef -i en_HK -f ISO-8859-1 en_HK
localedef -i en_PH -f ISO-8859-1 en_PH
localedef -i en_US -f ISO-8859-1 en_US
localedef -i es_MX -f ISO-8859-1 es_MX
localedef -i fa_IR -f UTF-8 fa_IR
localedef -i fr_FR -f ISO-8859-1 fr_FR
localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
localedef -i it_IT -f ISO-8859-1 it_IT
localedef -i ja_JP -f EUC-JP ja_JP

all went through without complaint

including
6.11.2. Configuring Glibc

Because yesterday I forgot to "chroot" and the first part building "glibc" encountered problem, I have to redo this Section today. Now the first part of this section went through without problem. But this part "The locales" encountered problem as mentioned on this posting.

I'll continue
6.12. Re-adjusting the Toolchain
http://www.sg.linuxfromscratch.org/l...adjusting.html
later after completing this Section

One further question "how to remove those unwanted locales" later?

TIA

B.R.
satimis

Last edited by satimis; 07-11-2005 at 11:39 AM.
 
Old 07-11-2005, 07:13 PM   #4
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
Now that we know that will work, remove the file in /usr/lib/locale and go into glibc-2.3.4-20040701/localedata and edit the SUPPORTED file and put only the locales you need in there and run the make localedata/install-locales command again.
 
Old 07-11-2005, 09:01 PM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,679

Original Poster
Rep: Reputation: 55
Hi kjordan,

Quote:
Now that we know that will work, remove the file in /usr/lib/locale and go into glibc-2.3.4-20040701/localedata and edit the SUPPORTED file and put only the locales you need in there and run the make localedata/install-locales command again.
Noted with thanks.

I'll continue building LFS 6.0 just leaving all unknown problems behind. There are some problems on LFS 6.0 providing warning of inexectitute repeatedly. After completing all steps on LFS 6.0 disregarding successfull or failure I will do another round but on LFS 6.1 instead.

http://www.linuxfromscratch.org/lfs/downloads/6.1/

B.R.
satimis
 
  


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
what does Segmentation Fault mean ? baronlynx Linux - Newbie 10 10-25-2009 05:32 PM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 10:34 AM
Help !!! Segmentation fault mola Linux - Software 3 06-23-2005 12:13 PM
Segmentation fault tejas15_10 Programming 9 06-20-2005 10:12 AM
Segmentation fault santhosh_o Programming 3 10-26-2004 06:45 AM

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

All times are GMT -5. The time now is 01:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration