From: Kelledin <kelledin+AXP@skarpsey.dyndns.org>
To: axp-list@redhat.com
Subject: Re: Fwd: LFS'ing an alpha, continued
Date: Wed, 13 Nov 2002 08:06:54 -0500 [thread overview]
Message-ID: <200211130706.54559.kelledin+AXP@skarpsey.dyndns.org> (raw)
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?"
next reply other threads:[~2002-11-13 13:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-13 13:06 Kelledin [this message]
2002-11-13 18:08 ` Fwd: LFS'ing an alpha, continued Michal Jaegermann
-- strict thread matches above, loose matches on Subject: below --
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
2002-11-13 0:24 Kelledin
2002-11-13 3:04 ` Michal Jaegermann
2002-11-12 23:15 Fwd: Build Errors with GlibC on an alpha Ted Goodridge
2002-11-13 0:00 ` Fwd: LFS'ing an alpha, continued Kelledin
2002-11-13 2:45 ` Michal Jaegermann
2002-11-13 3:43 ` Jon
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