glibc segmentation fault

Kyle West sithii at
Fri Sep 22 08:18:30 PDT 2000

Yes, it was nasty.  I did not try what you suggested below because last 
night as I was attempting to sleep, I thought of one small thing I had 

When I was compiling the first LFS, I made the root bash profile changes for 
CFLAGS, CXXFLAGS and TERM that you had suggested.  When I went to compile 
the 2nd LFS, it was still loading the bash profile from root, since now 
everytime I log in as root those are set.  So, I completely whiped out my 
'problem' copy of glibc, cleared those 3 variables, and compiled glibc 
again, this time without a problem.  (YAY!)

I was kind of tipped off to it by your comment on the package that sometimes has difficulty compiling with optimization settings, and it 
would appear to me that glibc has an internal that it uses and is 
subject to the same compilation difficulties.

So, YAY!  Problem solved.

>From: Gerard Beekmans <gerard at>
>Reply-To: lfs-discuss at
>To: lfs-discuss at
>Subject: Re: glibc segmentation fault
>Date: Fri, 22 Sep 2000 08:21:05 -0400
>MIME-Version: 1.0
>Received: from [] by (3.2) with ESMTP id 
>MHotMailBB94999D00AED82197E9D81DAE1F10170; Fri Sep 22 05:20:46 2000
>Received: from shadowfax (localhost.localdomain [])by 
> (Postfix) with ESMTPid BEB0E36E8B; Fri, 22 
>Sep 2000 08:21:54 -0400 (EDT)
>Received: with LISTAR (v0.129a; list lfs-discuss); Fri, 22 Sep 2000 
>08:21:54 -0400 (EDT)
>Received: from ( 
>[])by (Postfix) with ESMTP id 
>3A5E236E3Bfor <lfs-discuss at>; Fri, 22 Sep 2000 08:21:54 
>-0400 (EDT)
>Received: from ([])          by 
>          (InterMail vM. 201-229-121) 
>with ESMTP          id 
>< at> 
>          for <lfs-discuss at>;          Fri, 22 Sep 2000 
>08:20:43 -0400
>Received: from gwaihir (localhost.localdomain [])by 
> (8.10.1/8.9.3) with SMTP id e8MCL5Y11314for 
><lfs-discuss at>; Fri, 22 Sep 2000 08:21:05 -0400
>From lfs-discuss-owner at Fri Sep 22 05:25:26 2000
>Organization: LFS
>X-Mailer: KMail [version 1.1.94]
>References: <F252IVvLVKi3s1wsXZZ00001bc8 at>
>In-Reply-To: <F252IVvLVKi3s1wsXZZ00001bc8 at>
>Message-Id: <00092208210503.11294 at gwaihir>
>Sender: lfs-discuss-owner at
>Errors-To: lfs-discuss-owner at
>X-original-sender: gerard at
>Precedence: bulk
> > I delved into this a bit further and found that the file it is calling,
> > /mnt/usr/src/glibc-build/elf/, links to in the same
> > directory.  If I run in that directory without any parameters, I 
> > get "Segmentation fault" so I am assuming that this compiled 
>Nasty bugger one yes. Ok here's what you can try: Install all packages from
>chapter 5 and skip Glibc. then enter chroot and try to compile chroot from
>within chroot. You will have to copy the libnss* files from the starting
>distro (LFS) by running cp -a /lib/libnss* /mnt/lfs/lib
>I don't see how that makes much of a difference, but it never hurts to try.
>Gerard Beekmans
>-*- If Linux doesn't have the solution, you have the wrong problem -*-

Get Your Private, Free E-mail from MSN Hotmail at

Share information about yourself, create your own public profile at

More information about the lfs-dev mailing list