From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 0CA444029B for ; Wed, 13 Nov 2002 08:13:35 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id gADDDYY23522 for axp-list@listman.redhat.com; Wed, 13 Nov 2002 08:13:34 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id gADDDYD23518 for ; Wed, 13 Nov 2002 08:13:34 -0500 Received: from skarpsey.dyndns.org (12-237-135-160.client.attbi.com [12.237.135.160]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id gADCoNw32686 for ; Wed, 13 Nov 2002 07:50:23 -0500 Received: from valhalla (Valhalla.attbi.com [192.168.0.2]) by skarpsey.dyndns.org (8.12.6/8.12.5) with ESMTP id gADD8llm025018 for ; Wed, 13 Nov 2002 07:08:47 -0600 Content-Type: text/plain; charset="iso-8859-1" From: Kelledin Subject: Re: Fwd: LFS'ing an alpha, continued Date: Wed, 13 Nov 2002 08:08:47 -0500 User-Agent: KMail/1.4.3 To: axp-list@redhat.com MIME-Version: 1.0 Message-Id: <200211130708.47336.kelledin+AXP@skarpsey.dyndns.org> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by int-mx1.corp.redhat.com id gADDDYD23518 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Tuesday 12 November 2002 09:04 pm, Michal Jaegermann wrote: > On Tue, Nov 12, 2002 at 07:24:13PM -0500, Kelledin wrote: > > Fourth (and finally, for now), aboot-0.9a doesn't compile > > against recent glibc versions. > > Which are "recent". The last time I was recompiling aboot, to > make it look for initrd in more places then original, was > on September 9th of this year and it definitely compiled and > it even works. :-) 2.2.5 tripped the problem--basically a slew of unresolved references to the glibc puts() function, which is used by the glibc printf() function. I didn't get so far as testing it with 2.3.1, because 2.3.1 has other problems. I consider 2.3.1 to be too experimental at this point. > > The problem is that it tries to > > override the printf() function, and glibc won't just go > > along with that. > > This is a boot loader. You are not linking that with glibc > but with a small static library which provides only a minimal > required stuff. Full glibc is not available when you are > using this. That small static library is supposed to override glibc printf() with its own bare-metal printf(). It doesn't, for whatever reason--the bootloader code still tries to link with glibc's printf(). Come to think of it, it could be gcc or binutils that's refusing to go along with it...what versions of those software packages are you using? I'm using (patched) gcc-3.2 and binutils-2.13, both of which are in the stable LFS book. Unlike the netkit patch, this patch actually came from yours truly. > I am not sure what you are doing but definitely something > funny. I just renamed aboot's internal from-scratch printf() and forced all bootloader code to call this different function name. Thus it doesn't have to rely on the ability to override glibc's printf(). But as I said, it would probably break "TESTING" mode, which is why it's only a workaround. -- Kelledin "If a server crashes in a server farm and no one pings it, does it still cost four figures to fix?"