Date: Wed, 01 Feb 2006 17:41:58 -0500 From: "Jeffrey H. Johnson" <CPE1704TKS@bellsouth.net> To: Larry Rosenman <ler@lerctr.org>, FreeBSD-gnats-submit@freebsd.org Cc: mnag@FreeBSD.org, ports@FreeBSD.org, CPE1704TKS@bellsouth.net, ports-amd64@FreeBSD.org, kris@obsecurity.org Subject: Re: ports/92658: [PATCH] sysutils/heirloom: [Unbreak AMD64 build] Message-ID: <83FCC49FA606CF7B7FB5302E@046BC845B756A9F9584BDE56>
next in thread | raw e-mail | index | archive | help
OK, I have an update here: ----------------------------------- --- 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 = huff((1L<<HASHWIDTH)/atof(argv[1])); fprintf(stderr, "%s: expected code widths = %f\n", argv[0], z); - for (count = 0; scanf("%lo", (long *)&h) == 1; ++count) { + for (count = 0; scanf("%o", (long *)&h) == 1; ++count) { if ((t = h >> (HASHWIDTH - INDEXWIDTH)) != u) { if (bp != B) wp++; ----------------------------------- This should work on all architectures where int32_t is the same size as int, which I *believe* should cover all current FreeBSD platforms. 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 modifications but I don't have access to AMD64 running 5 to examine. If someone who knows what they are doing can apply a more proper fix, please do. :p -- Jeffrey H. Johnson CPE1704TKS@bellsouth.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?83FCC49FA606CF7B7FB5302E>