Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1O1KlO-0003MJ-Dc for mharc-grub-devel@gnu.org; Mon, 12 Apr 2010 10:37:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1KlM-0003KW-5h for grub-devel@gnu.org; Mon, 12 Apr 2010 10:37:20 -0400 Received: from [140.186.70.92] (port=58312 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1KlK-0003JB-J9 for grub-devel@gnu.org; Mon, 12 Apr 2010 10:37:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1KlH-0006Pu-Lx for grub-devel@gnu.org; Mon, 12 Apr 2010 10:37:18 -0400 Received: from smarthost02.mail.zen.net.uk ([212.23.3.141]:41635) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1KlH-0006Pd-Ft for grub-devel@gnu.org; Mon, 12 Apr 2010 10:37:15 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost02.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1O1KlG-0007wR-4X for grub-devel@gnu.org; Mon, 12 Apr 2010 14:37:14 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1O1KlF-00080w-00; Mon, 12 Apr 2010 15:37:13 +0100 Date: Mon, 12 Apr 2010 15:37:13 +0100 From: Colin Watson To: grub-devel@gnu.org Message-ID: <20100412143713.GK11833@riva.ucam.org> References: <4BC32677.1010009@zetam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BC32677.1010009@zetam.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost02-IP: [82.69.40.219] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: Problem Compiling gnulib/getdelim on MacOSX X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 14:37:20 -0000 On Mon, Apr 12, 2010 at 03:56:07PM +0200, Yves Blusseau wrote: > when i try to compile grub 1.98 on MacOSX i have this error: > > gcc-4.2 -Ignulib -I./gnulib -I/opt/local/include -I. -I./include > -I./gnulib -I./include -Wall -W -DGRUB_LIBDIR=\"/opt/local/lib/`echo > grub/i386-pc | sed 's,x,x,'`\" -DLOCALEDIR=\"\" -DGRUB_MACHINE_PCBIOS=1 > -DAPPLE_CC=1 -fnested-functions -DGRUB_UTIL=1 -Wno-undef > -Wno-sign-compare -Wno-unused -D_GL_UNUSED="__attribute__ ((unused))" > -I./gnulib -DGRUB_FILE=\"gnulib/getdelim.c\" -MD -c -o > grub_script_check-gnulib_getdelim.o gnulib/getdelim.c > gnulib/getdelim.c:59: error: expected '=', ',', ';', 'asm' or > '__attribute__' before 'getdelim' > make: *** [grub_script_check-gnulib_getdelim.o] Error 1 > > The problem is that the ssize_t type is not defined. We need to add > #include on MacOSX like i do on my commit (r2175). > But i know that we can't modify getdelim.c directly because is it imported. > So if someone have an idea to solve this problem on OSX...... We should import the ssize_t module from gnulib, which adds a configure macro for this. The way grub uses gnulib is a bit odd, though, so it's not something I'd feel comfortable with just fixing; it needs somebody more familiar with it. After we switch to automake (a prerequisite), could we switch to using gnulib-tool for the gnulib import as well, so that this becomes a bit more standard? -- Colin Watson [cjwatson@ubuntu.com]