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 <unistd.h> 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 [cjwat...@ubuntu.com] _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel