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 5B3304032B for ; Wed, 13 Nov 2002 08:11:42 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id gADDBgF23036 for axp-list@listman.redhat.com; Wed, 13 Nov 2002 08:11:42 -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 gADDBgD23032 for ; Wed, 13 Nov 2002 08:11:42 -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 gADCmUw32267 for ; Wed, 13 Nov 2002 07:48:30 -0500 Received: from valhalla (Valhalla.attbi.com [192.168.0.2]) by skarpsey.dyndns.org (8.12.6/8.12.5) with ESMTP id gADD6slm025011 for ; Wed, 13 Nov 2002 07:06:54 -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:06:54 -0500 User-Agent: KMail/1.4.3 To: axp-list@redhat.com MIME-Version: 1.0 Message-Id: <200211130706.54559.kelledin+AXP@skarpsey.dyndns.org> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by int-mx1.corp.redhat.com id gADDBgD23032 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 08:45 pm, Michal Jaegermann wrote: > On Tue, Nov 12, 2002 at 07:00:41PM -0500, Kelledin wrote: > > Third, netkit-base needs a patch, else the "ping" utility > > isn't 64-bit clean (see below). > > > > - printf(" time=%ld.%ld ms", > > triptime/10, + printf(" > > time=%hd.%hd ms", triptime/10, > > Eh??? You switched a long conversion flag for an integer > specifier in printf() to short to make 'ping' 64-bit clean? > Whatever you think this does it is not doing anything overly > useful. What really fixed it is probably the "__attribute__((aligned(sizeof(long))))" bit in the other part of the patch. The extra stuff (the whitespace, and the different conversion specifier) is probably just stylistic changes--the patch was apparently produced by a Gentoo developer found by google, not by me. ;) Without the patch, the "ping" utility works for the alpha box pinging itself, but not for it pinging any of the other (x86) boxen on my local network. With the patch, the "ping" utility compiles and works as intended, on either x86 or on alpha. > Is 'triptime' really of a type short? I did not look at > sources but I would be somewhat surprised. Nope, it's of type "long." I don't see exactly why the conversion specifier got changed, but it looks like a pretty harmless change--unless you end up with ping times longer than 32 seconds. In that case, the value would get truncated. Maybe someone decided that hack would be nice to keep each output line from exceeding 80 chars? By the way, another option (in case you don't really feel like using a patched netkit) is to use GNU inetutils. It doesn't have this problem, and it's actively maintained. I'm currently sticking with the netkit collection solely because it has a timed daemon--but this may change soon. -- Kelledin "If a server crashes in a server farm and no one pings it, does it still cost four figures to fix?"