Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Kelledin <kelledin+AXP@skarpsey.dyndns.org>
To: axp-list@redhat.com
Subject: Re: Fwd: LFS'ing an alpha, continued
Date: Tue, 12 Nov 2002 19:00:41 -0500	[thread overview]
Message-ID: <200211121800.41119.kelledin+AXP@skarpsey.dyndns.org> (raw)
In-Reply-To: <200211121715.36547.tedgoodridgejr@acm.org>

[-- Attachment #1: Type: text/plain, Size: 531 bytes --]

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 
64-bit clean (see below).

-- 
Kelledin
"If a server crashes in a server farm and no one pings it, does 
it still cost four figures to fix?"

[-- Attachment #2: netkit-base-0.17-alpha-ping.patch --]
[-- Type: text/x-diff, Size: 1020 bytes --]

--- 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) {

  parent reply	other threads:[~2002-11-13  0:05 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-12 23:15 Fwd: Build Errors with GlibC on an alpha Ted Goodridge
2002-11-12 23:59 ` Kelledin
2002-11-13  0:00 ` Kelledin [this message]
2002-11-13  2:45   ` Fwd: LFS'ing an alpha, continued Michal Jaegermann
2002-11-13  3:43   ` Jon
2002-11-19 10:25     ` Jensen DEC 2000 parts needed AlexCH
2002-11-20 21:17       ` Dirk Schneider
  -- strict thread matches above, loose matches on Subject: below --
2002-11-13  0:24 Fwd: LFS'ing an alpha, continued Kelledin
2002-11-13  3:04 ` Michal Jaegermann
2002-11-13 13:06 Kelledin
2002-11-13 18:08 ` Michal Jaegermann
2002-11-13 13:08 Kelledin
2002-11-13 14:49 ` Falk Hueffner
2002-11-13 17:09   ` Kelledin
2002-11-13 17:41     ` Falk Hueffner
2002-11-13 17:41     ` Peter Petrakis
2002-11-13 18:19       ` Michal Jaegermann
2002-11-13 20:57         ` George France
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox