1
Subject: Bug#236991: FTBFS: bison error
2
Date: Mon, 8 Mar 2004 13:50:58 -0800
3
From: Matt Kraai <kraai@ftbfs.org>
4
To: submit@bugs.debian.org
5
Message-ID: <20040308215058.GA507@catalunya>
12
pbuilder fails to build bison:
15
bison -y -d `test -f 'bc.y' || echo './'`bc.y
16
bc.y:82.26: warning: stray `,' treated as white space
17
bc.y:82.32: warning: stray `,' treated as white space
18
bc.y:82.38: warning: stray `,' treated as white space
19
bc.y:82.48: warning: stray `,' treated as white space
20
bc.y:82.55: warning: stray `,' treated as white space
21
bc.y:428.25: syntax error, unexpected "|"
22
bc.y:494.42-43: $3 of `expression' has no declared type
23
bc.y:499.42-43: $3 of `expression' has no declared type
24
bc.y:504.42-43: $3 of `expression' has no declared type
25
bc.y:509.42-43: $3 of `expression' has no declared type
26
bc.y:514.42-43: $3 of `expression' has no declared type
27
bc.y:519.42-43: $3 of `expression' has no declared type
28
bc.y:556.35-36: $3 of `expression' has no declared type
29
bc.y:560.54-55: $3 of `expression' has no declared type
30
bc.y:561.46-47: $3 of `expression' has no declared type
31
make[3]: *** [bc.c] Error 1
33
The following patch fixes the error (and the warnings).
36
Matt Kraai kraai@ftbfs.org http://ftbfs.org/
39
Content-Type: text/plain; charset=us-ascii
40
Content-Disposition: attachment; filename=patch
42
diff -ru bc-1.06-old/bc/bc.y bc-1.06/bc/bc.y
43
--- bc-1.06-old/bc/bc.y 2004-03-08 13:11:38.000000000 -0800
44
+++ bc-1.06/bc/bc.y 2004-03-08 13:26:52.000000000 -0800
46
/* 'scale', 'ibase', 'obase', 'auto', 'read' */
47
%token <i_value> Scale Ibase Obase Auto Read
48
/* 'warranty', 'halt', 'last', 'continue', 'print', 'limits' */
49
-%token <i_value> Warranty, Halt, Last, Continue, Print, Limits
50
+%token <i_value> Warranty Halt Last Continue Print Limits
52
%token <i_value> UNARY_MINUS HistoryVar