LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Segmentation fault (https://www.linuxquestions.org/questions/linux-from-scratch-13/segmentation-fault-342076/)

satimis 07-11-2005 04:20 AM

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

kjordan 07-11-2005 09:10 AM

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
?

satimis 07-11-2005 10:30 AM

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

kjordan 07-11-2005 06:13 PM

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.

satimis 07-11-2005 08:01 PM

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


All times are GMT -5. The time now is 09:11 PM.