NetBSD Problem Report #40683

From hauke@Espresso.Rhein-Neckar.DE  Wed Feb 18 22:47:56 2009
Return-Path: <hauke@Espresso.Rhein-Neckar.DE>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 2231963B8C3
	for <gnats-bugs@gnats.netbsd.org>; Wed, 18 Feb 2009 22:47:56 +0000 (UTC)
Message-Id: <200902182210.n1IMAYf27924@mara.causeuse.org>
Date: Wed, 18 Feb 2009 23:10:35 +0100 (CET)
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Reply-To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
To: gnats-bugs@gnats.netbsd.org
Cc: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Subject: tcsh pkg build error 
X-Send-Pr-Version: 3.95

>Number:         40683
>Category:       pkg
>Synopsis:       tcsh pkg build error
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    hauke
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 18 22:50:00 +0000 2009
>Closed-Date:    Fri Mar 26 14:15:04 +0000 2010
>Last-Modified:  Fri Mar 26 14:15:04 +0000 2010
>Originator:     Hauke Fath
>Release:        NetBSD 1.5.4_ALPHA
>Organization:
Falling Raindrops
>Environment:


System: NetBSD mara 1.5.4_ALPHA NetBSD 1.5.5_ALPHA (MARA-$Revision: 1.1 $) #0: Wed Jul 9 11:37:12 CEST 2008 hauke@mara:/local/cvswork/netbsd/netbsd-1-5/src/sys/arch/mac68k/compile/MARA mac68k
Architecture: m68k
Machine: mac68k
>Description:

On NetBSD/mac68k 1.5, the shells/standalone-tcsh build 
(probably also shells/tcsh) fails with

[hauke@mara] /<5>work/tcsh-6.16.00 > make
cc -c -O2 -pipe -I/usr/include -I. -I. -D_PATH_TCSHELL='"/bin/tcsh"'  -I/usr/include  sh.char.c
sh.char.c:1172: syntax error at end of input
*** Error code 1

Stop.
[hauke@mara] /<5>work/tcsh-6.16.00 >


because an apparently seldom-used #ifdef branch is broken. 
This is fixed by


[hauke@mara] /<5>work/tcsh-6.16.00 > diff -u sh.char.c sh.char.c~
--- sh.char.c   Wed Feb 18 22:55:37 2009
+++ sh.char.c~  Wed Mar  7 17:31:37 2007
@@ -233,8 +233,8 @@

 /*     252 udiaeresis  253 yacute      254 thorn       255 ydiaeresis  */
	_LET|_DOW,      _LET|_DOW,      _LET|_DOW,      _LET|_DOW,
-#endif /* SHORT_STRINGS */
 };
+#endif /* SHORT_STRINGS */

 #if defined(KANJI) && defined(SHORT_STRINGS) && defined(DSPMBYTE)
 /* original table */
[hauke@mara] /<5>work/tcsh-6.16.00 >


>How-To-Repeat:

Build shells/{standalone-}tcsh on an old NetBSD machine (1.5 here).

>Fix:

Apply the above patch.

>Release-Note:

>Audit-Trail:
From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/40683: tcsh pkg build error
Date: Thu, 19 Feb 2009 10:23:29 +0100

 Sorry, reversed patch...

 --- sh.char.c.orig      2007-03-07 17:31:37.000000000 +0100
 +++ sh.char.c
 @@ -233,8 +233,8 @@ unsigned short _cmap[256] = {

   /*     252 udiaeresis  253 yacute      254 thorn       255 ydiaeresis  */
          _LET|_DOW,      _LET|_DOW,      _LET|_DOW,      _LET|_DOW,
 -};
   #endif /* SHORT_STRINGS */
 +};

   #if defined(KANJI) && defined(SHORT_STRINGS) && defined(DSPMBYTE)
   /* original table */


 -- 
       The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email	        Institut für Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
       Respect for open standards              Ruf +49-6151-16-3281

Responsible-Changed-From-To: pkg-manager->christos
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Thu, 19 Feb 2009 10:17:44 +0000
Responsible-Changed-Why:
Over to maintainer.


Responsible-Changed-From-To: christos->hauke
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Fri, 26 Mar 2010 14:15:04 +0000
Responsible-Changed-Why:
I'll just apply the patch I provided.


State-Changed-From-To: open->closed
State-Changed-By: hauke@NetBSD.org
State-Changed-When: Fri, 26 Mar 2010 14:15:04 +0000
State-Changed-Why:
Patched, tested, verified fixed.


>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.