From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ejy17-0006h0-LJ for mharc-grub-devel@gnu.org; Wed, 07 Dec 2005 07:03:27 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EjxXa-0004sn-Su for grub-devel@gnu.org; Wed, 07 Dec 2005 06:32:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EjwmX-0002tF-DJ for grub-devel@gnu.org; Wed, 07 Dec 2005 05:44:21 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EjwfT-0002GR-6t for grub-devel@gnu.org; Wed, 07 Dec 2005 05:37:00 -0500 Received: from [194.109.24.37] (helo=smtp-vbr17.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EjwgI-0006uF-Bs for grub-devel@gnu.org; Wed, 07 Dec 2005 05:37:50 -0500 Received: from localhost.localdomain (mgerards.xs4all.nl [82.92.27.129]) by smtp-vbr17.xs4all.nl (8.13.3/8.13.3) with ESMTP id jB7AadHb052318 for ; Wed, 7 Dec 2005 11:36:39 +0100 (CET) (envelope-from mgerards@xs4all.nl) Mail-Copies-To: mgerards@xs4all.nl To: The development of GRUB 2 References: <12b5f1ef0512061552v4980bcd6o5a0948ef5ef00345@mail.gmail.com> From: Marco Gerards Date: Wed, 07 Dec 2005 11:36:39 +0100 In-Reply-To: <12b5f1ef0512061552v4980bcd6o5a0948ef5ef00345@mail.gmail.com> (Nickolai Zeldovich's message of "Tue, 6 Dec 2005 15:52:27 -0800") Message-ID: <87r78pgpmw.fsf@xs4all.nl> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner 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 12:03:20 -0000 Nickolai Zeldovich writes: Hi Nickolai, > 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 Thanks for your report! You have to use bison. The autoconf test yet has to be changed to enforce that. -- Marco