ports/92658: [PATCH] sysutils/heirloom: [Unbreak AMD64 build]
Jeffrey H. Johnson
CPE1704TKS at bellsouth.net
Wed Feb 1 22:50:08 UTC 2006
The following reply was made to PR ports/92658; it has been noted by GNATS.
From: "Jeffrey H. Johnson" <CPE1704TKS at bellsouth.net>
To: Larry Rosenman <ler at lerctr.org>, FreeBSD-gnats-submit at freebsd.org
Cc: kris at obsecurity.org, mnag at FreeBSD.org, ports at FreeBSD.org,
ports-amd64 at FreeBSD.org, CPE1704TKS at bellsouth.net
Subject: Re: ports/92658: [PATCH] sysutils/heirloom: [Unbreak AMD64 build]
Date: Wed, 01 Feb 2006 17:41:58 -0500
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 at bellsouth.net
More information about the freebsd-ports-bugs
mailing list