Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ejxj5-0005Nu-CX for mharc-grub-devel@gnu.org; Wed, 07 Dec 2005 06:44:49 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EjxeF-00059h-V4 for grub-devel@gnu.org; Wed, 07 Dec 2005 06:39:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EjxQr-0004Uq-4M for grub-devel@gnu.org; Wed, 07 Dec 2005 06:26:18 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ejx77-0003rt-W3 for grub-devel@gnu.org; Wed, 07 Dec 2005 06:05:40 -0500 Received: from [147.175.55.175] (helo=meta.morph.sk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ejx7x-00062Q-Kz for grub-devel@gnu.org; Wed, 07 Dec 2005 06:06:25 -0500 Received: from mail.morph.sk (meta.morph.sk [147.175.55.175]) by meta.morph.sk (Postfix) with ESMTP id 8621E24C for ; Wed, 7 Dec 2005 12:03:35 +0100 (CET) Received: from 213.81.186.66 (SquirrelMail authenticated user lkundrak) by mail.morph.sk with HTTP; Wed, 7 Dec 2005 12:03:35 +0100 (CET) Message-ID: <3504.213.81.186.66.1133953415.squirrel@mail.morph.sk> In-Reply-To: <12b5f1ef0512061552v4980bcd6o5a0948ef5ef00345@mail.gmail.com> References: <12b5f1ef0512061552v4980bcd6o5a0948ef5ef00345@mail.gmail.com> Date: Wed, 7 Dec 2005 12:03:35 +0100 (CET) From: "Lubomir Kundrak" To: "The development of GRUB 2" User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 (Normal) Importance: Normal Content-Transfer-Encoding: quoted-printable Subject: Re: grub2 compilation error on CentOS 4.2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Dec 2005 11:44:27 -0000 > I was trying to compile today's grub2 CVS version, and ran into the > following problem: > > host% gmake > gcc [...] -c -o grub_emu-normal_lexer.o normal/lexer.c > normal/lexer.c: In function `grub_script_yylex': > normal/lexer.c:89: error: called object is not a function > normal/lexer.c:90: error: syntax error before "return" > normal/lexer.c:92: error: called object is not a function > normal/lexer.c:93: error: syntax error before '{' token > > This appears to be due to a rather unfortunate preprocessor macro in > grub_script.tab.h: > > host% grep define.if grub_script.tab.h > #define if 258 > > I'm not sure what's going on, but my version of yacc is generating > that output from grub2/normal/parser.y. > > host% rpm -qf /usr/bin/yacc > byacc-1.9-28 berkley yacc doesn't work. use bison. configure.ac should be changed to enforce use of bison imho. > > -- kolya > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel >