Fix build failure in tools/widl/parser.y (fwd)

Gerald Pfeifer gerald at pfeifer.com
Fri Oct 12 05:27:41 CDT 2007


This time from my real address, sorry...

---------- Forwarded message ----------
From: Gerald at dbai.tuwien.ac.at, UNEXPECTED_DATA_AFTER_ADDRESS at .SYNTAX-ERROR.
To:  <wine-patches at winehq.org>
Date: Wed, 10 Oct 2007 21:11:56 +0200 (CEST)
Subject: Fix build failure in tools/widl/parser.y

The patch below fixes the following build error:

parser.y:518.9: parse error, unexpected ":", expecting ";" or "|"
gmake[2]: *** [parser.tab.h] Error 1
gmake[2]: Leaving directory `/sw/test/Wine/tools/widl'
gmake[1]: *** [widl] Error 2
sed -e 's, at bindir\@,/tmp/WINE/bin,g' -e 's, at dlldir\@,/tmp/WINE/lib/wine,g' -e 's, at PACKAGE_STRING\@,Wine 0.9.46,g' winebuild.man.in >winebuild.man || (rm -f winebuild.man && false)
gmake[1]: *** Waiting for unfinished jobs....
/usr/bin/gcc -g -O2 -o winebuild import.o main.o parser.o relay.o res16.o res32.o spec16.o spec32.o utils.o     ../../libs/port/libwine_port.a 
gmake[2]: Leaving directory `/sw/test/Wine/tools/winebuild'
gmake[1]: Leaving directory `/sw/test/Wine/tools'
gmake: *** [tools] Error 2

Gerald

ChangeLog:
Fix the build with bison 1.75.

Index: parser.y
===================================================================
RCS file: /home/wine/wine/tools/widl/parser.y,v
retrieving revision 1.136
diff -u -3 -p -r1.136 parser.y
--- parser.y	9 Oct 2007 18:39:27 -0000	1.136
+++ parser.y	10 Oct 2007 19:05:23 -0000
@@ -514,6 +514,7 @@ uuid_string:
 	| aSTRING				{ if (!is_valid_uuid($1))
 						    yyerror("invalid UUID: %s", $1);
 						  $$ = parse_uuid($1); }
+        ;
 
 callconv:
 	| tSTDCALL



More information about the wine-patches mailing list