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 38A9141D1E for ; Tue, 12 Nov 2002 19:05:30 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id gAD05UC13348 for axp-list@listman.redhat.com; Tue, 12 Nov 2002 19:05:30 -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 gAD05TD13344 for ; Tue, 12 Nov 2002 19:05:29 -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 gACNgJw16118 for ; Tue, 12 Nov 2002 18:42:19 -0500 Received: from valhalla (Valhalla.attbi.com [192.168.0.2]) by skarpsey.dyndns.org (8.12.6/8.12.5) with ESMTP id gAD00flm024371 for ; Tue, 12 Nov 2002 18:00:41 -0600 From: Kelledin To: axp-list@redhat.com Subject: Re: Fwd: LFS'ing an alpha, continued Date: Tue, 12 Nov 2002 19:00:41 -0500 User-Agent: KMail/1.4.3 References: <200211121715.36547.tedgoodridgejr@acm.org> In-Reply-To: <200211121715.36547.tedgoodridgejr@acm.org> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="------------Boundary-00=_5PMHX54NJL4TV456EN6U" Message-Id: <200211121800.41119.kelledin+AXP@skarpsey.dyndns.org> 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: --------------Boundary-00=_5PMHX54NJL4TV456EN6U Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Tuesday 12 November 2002 05:15 pm, Ted Goodridge wrote: > I'm forwarding this hoping to get some ppl with alpha > experience as this might be a simple matter. I'm using an LFS > system, and building Glib, but getting the following errors > (something about pc-relative relocation) is striking me as > odd. Third, netkit-base needs a patch, else the "ping" utility isn't=20 64-bit clean (see below). --=20 Kelledin "If a server crashes in a server farm and no one pings it, does=20 it still cost four figures to fix?" --------------Boundary-00=_5PMHX54NJL4TV456EN6U Content-Type: text/x-diff; charset="iso-8859-1"; name="netkit-base-0.17-alpha-ping.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="netkit-base-0.17-alpha-ping.patch" --- netkit-base-0.17/ping/ping.c Sun Jul 23 06:16:21 2000 +++ netkit-base-0.17-alpha-ping-fix/ping/ping.c Tue Sep 10 20:14:51 2002 @@ -203,7 +203,7 @@ * datalen is the length of the other data plus the timeval. * note: due to alignment problems don't assign to OUTPACK_TIME, use memcpy. */ -static u_int8_t outpack[IP_MAXPACKET]; +static u_int8_t outpack[IP_MAXPACKET] __attribute__((aligned(sizeof(long)))); static int datalen = DEFDATALEN; #define OUTPACK_ICMP ((struct icmp *)outpack) @@ -725,6 +725,7 @@ tp = (struct timeval *)icp->icmp_data; memcpy(&packettv, tp, sizeof(struct timeval)); tvsub(&now, &packettv); + /* precision: tenths of milliseconds */ triptime = now.tv_sec * 10000 + (now.tv_usec / 100); @@ -760,7 +761,7 @@ inet_ntoa(from->sin_addr), icp->icmp_seq); printf(" ttl=%d", ip->ip_ttl); if (timing) { - printf(" time=%ld.%ld ms", triptime/10, + printf(" time=%hd.%hd ms", triptime/10, triptime%10); } if (dupflag) { --------------Boundary-00=_5PMHX54NJL4TV456EN6U--