Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DQlEM-00014E-PH for mharc-grub-devel@gnu.org; Wed, 27 Apr 2005 08:01:26 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DQlEL-00013C-HI for grub-devel@gnu.org; Wed, 27 Apr 2005 08:01:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DQlEH-000114-Mu for grub-devel@gnu.org; Wed, 27 Apr 2005 08:01:24 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQlEE-0000Rq-FG for grub-devel@gnu.org; Wed, 27 Apr 2005 08:01:18 -0400 Received: from [66.187.233.31] (helo=mx1.redhat.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DQlGh-0000tK-6u for grub-devel@gnu.org; Wed, 27 Apr 2005 08:03:51 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j3RBxoFu021542 for ; Wed, 27 Apr 2005 07:59:50 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j3RBxoO21553 for ; Wed, 27 Apr 2005 07:59:50 -0400 Received: from localhost.localdomain (vpn83-148.boston.redhat.com [172.16.83.148]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j3RBxoP6028384 for ; Wed, 27 Apr 2005 07:59:50 -0400 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.13.3/8.13.1) with ESMTP id j3RBxmth021997 for ; Wed, 27 Apr 2005 07:59:49 -0400 From: pjones To: The development of GRUB 2 In-Reply-To: <1114551626.14788.14.camel@bauerbob.hirsch.lan> References: <1114551626.14788.14.camel@bauerbob.hirsch.lan> Content-Type: text/plain Date: Wed, 27 Apr 2005 07:59:48 -0400 Message-Id: <1114603188.7651.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 (2.2.2-1) Content-Transfer-Encoding: 7bit Subject: Re: invalid storage class for some functions in grub_ls_list_files 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, 27 Apr 2005 12:01:25 -0000 On Tue, 2005-04-26 at 23:40 +0200, Thorsten Hirsch wrote: > Hi, > > I couldn't find much in the archive about that one, so here's a > compilation error of grub2 (gcc (GCC) 4.0.0 (Gentoo Linux 4.0.0)): > > gcc -Icommands -I./commands -I. -Iinclude -I./include -Wall -W > -DGRUB_DATADIR=\"/opt/grub2/share/grub/i386-pc\" -g -O2 -DGRUB_UTIL=1 > -c -o grub_emu-commands_ls.o commands/ls.c > commands/ls.c: In function 'grub_ls_list_files': > commands/ls.c:107: error: invalid storage class for function > 'print_files' > commands/ls.c:115: error: invalid storage class for function > 'print_files_long' > commands/ls.c: In function 'grub_cmd_ls': > commands/ls.c:223: error: invalid storage class for function > 'grub_ls_print_files' > make: *** [grub_emu-commands_ls.o] Error 1 This means you've got nested functions declared "static". -- Peter