NetBSD Problem Report #8143

Received: (qmail 2170 invoked from network); 4 Aug 1999 13:12:15 -0000
Message-Id: <199908041411.QAA04415@ismaelda>
Date: Wed, 4 Aug 1999 16:11:38 +0200 (CEST)
From: zandijk@cs.utwente.nl
Reply-To: zandijk@cs.utwente.nl
To: gnats-bugs@gnats.netbsd.org
Subject: package games/craft won't build on NetBSD 1.4/arm32
X-Send-Pr-Version: 3.95

>Number:         8143
>Category:       pkg
>Synopsis:       package games/craft won't build on NetBSD 1.4/arm32
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 04 06:20:00 +0000 1999
>Closed-Date:    Wed Aug 11 22:43:01 +0000 1999
>Last-Modified:  Wed Aug 11 22:43:21 +0000 1999
>Originator:     Reinoud Zandijk
>Release:        NetBSD-release fetched at 2 aug <NetBSD-current source date>
>Organization:
Twente University

>Environment:

System: NetBSD ismaelda 1.4.1 NetBSD 1.4.1 (config.ismaelda) #3: Mon Aug 2 17:35:14 CEST 1999 root@ismaelda:/usr/src/sys/arch/arm32/compile/config.ismaelda arm32


>Description:
The game `craft' won't build on arm32 due to assumption made by the origional author that a `char' is signed by default. Patching this makes the program compile and running OK.
The symptoms were multiple warnings about comparisations always resulting in true/false...


>How-To-Repeat:
Build the distribution of games/craft on NetBSD/arm32; it fails.

>Fix:
Use the following patches (patch-ag updated) :

/usr/pkgsrc/games/craft/patches/patch-ag :

"
--- hcc/hcc.cc.orig	Fri Feb 21 12:50:16 1997
+++ hcc/hcc.cc	Wed Aug  4 15:37:39 1999
@@ -1,6 +1,5 @@
-#include "bool.h"
 #include "stdio.h"
-#include "std.h"
+#include <stdlib.h>
 #include "string.h"
 #include "ctype.h"

@@ -203,7 +202,7 @@
    char last_last_sym;
    int  last_ref_sym_line;
    int  last_ref_sym_no;
-   char sym;
+   signed char sym;
    int  nested_brackets;
    bool inside_refinement;
    bool inside_string;
"

/usr/pkgsrc/games/craft/patches/patch-ah :

"
--- xfile.hc.orig	Thu Mar 20 09:29:16 1997
+++ xfile.hc	Wed Aug  4 14:42:46 1999
@@ -12,10 +12,10 @@
 /*----------------------------------------------------------------------*/

 struct conv 
-   {char b0; 
-    char b1;
-    char b2;
-    char b3;
+   {signed char b0; 
+    signed char b1;
+    signed char b2;
+    signed char b3;
    };

 union conv_data
"

end of patches/pr.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: tron 
State-Changed-When: Wed Aug 11 15:43:01 PDT 1999 
State-Changed-Why:  
Patches added, thanks. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.