Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2006 17:52:40 -0500
From:      Kris Kennaway <kris@obsecurity.org>
To:        "Jeffrey H. Johnson" <CPE1704TKS@bellsouth.net>
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]
Message-ID:  <20060201225240.GB34532@xor.obsecurity.org>
In-Reply-To: <83FCC49FA606CF7B7FB5302E@046BC845B756A9F9584BDE56>
References:  <83FCC49FA606CF7B7FB5302E@046BC845B756A9F9584BDE56>

next in thread | previous in thread | raw e-mail | index | archive | help

--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?20060201225240.GB34532>