Date: Wed, 1 Feb 2006 23:00:21 GMT From: Kris Kennaway <kris@obsecurity.org> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/92658: [PATCH] sysutils/heirloom: [Unbreak AMD64 build] Message-ID: <200602012300.k11N0LgR026600@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/92658; it has been noted by GNATS. From: Kris Kennaway <kris@obsecurity.org> To: "Jeffrey H. Johnson" <CPE1704TKS@bellsouth.net> Cc: Larry Rosenman <ler@lerctr.org>, FreeBSD-gnats-submit@freebsd.org, kris@obsecurity.org, mnag@FreeBSD.org, ports@FreeBSD.org, ports-amd64@FreeBSD.org Subject: Re: ports/92658: [PATCH] sysutils/heirloom: [Unbreak AMD64 build] Date: Wed, 1 Feb 2006 17:52:40 -0500 --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<<HASHWIDTH)/atof(argv[1])); > 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602012300.k11N0LgR026600>