From owner-freebsd-ports@FreeBSD.ORG Wed Feb 1 22:52:41 2006 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 641EA16A420; Wed, 1 Feb 2006 22:52:41 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18F4543D45; Wed, 1 Feb 2006 22:52:41 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id EC9691A3C26; Wed, 1 Feb 2006 14:52:40 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 4A51452255; Wed, 1 Feb 2006 17:52:40 -0500 (EST) Date: Wed, 1 Feb 2006 17:52:40 -0500 From: Kris Kennaway To: "Jeffrey H. Johnson" Message-ID: <20060201225240.GB34532@xor.obsecurity.org> References: <83FCC49FA606CF7B7FB5302E@046BC845B756A9F9584BDE56> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8P1HSweYDcXXzwPJ" Content-Disposition: inline In-Reply-To: <83FCC49FA606CF7B7FB5302E@046BC845B756A9F9584BDE56> User-Agent: Mutt/1.4.2.1i Cc: ports-amd64@FreeBSD.org, ports@FreeBSD.org, kris@obsecurity.org, mnag@FreeBSD.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: ports/92658: [PATCH] sysutils/heirloom: [Unbreak AMD64 build] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2006 22:52:41 -0000 --8P1HSweYDcXXzwPJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 01, 2006 at 05:41:58PM -0500, Jeffrey H. Johnson wrote: > OK, I have an update here: >=20 > ----------------------------------- > --- spell/spellin.c.orig Wed Feb 1 23:34:58 2006 > +++ spell/spellin.c Wed Feb 1 23:27:02 2006 > @@ -103,7 +103,7 @@ > z =3D huff((1L< fprintf(stderr, "%s: expected code widths =3D %f\n", > argv[0], z); > - for (count =3D 0; scanf("%lo", (long *)&h) =3D=3D 1; ++count) { > + for (count =3D 0; scanf("%o", (long *)&h) =3D=3D 1; ++count) { > if ((t =3D h >> (HASHWIDTH - INDEXWIDTH)) !=3D u) { > if (bp !=3D B) > wp++; > ----------------------------------- >=20 > This should work on all architectures where int32_t is the same size > as int, which I *believe* should cover all current FreeBSD platforms. >=20 > If someone has a better solution, I'd be glad to hear it. I'm also > puzzled as to why this seems to work on pointyhat without the=20 > modifications but I don't have access to AMD64 running 5 to examine.=20 It's probably as simple as that the amd64 5 build hasn't been rerun since the recent update :) Kris --8P1HSweYDcXXzwPJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD4Tu3Wry0BWjoQKURAhZgAKDCLAuyXvbaQm1xGf6sxQHAKy/V9wCfa5oV XybmT4SRufpnBoy3Ss0h5Ho= =hyVK -----END PGP SIGNATURE----- --8P1HSweYDcXXzwPJ--