* Problem Compiling gnulib/getdelim on MacOSX
@ 2010-04-12 13:56 Yves Blusseau
2010-04-12 14:37 ` Colin Watson
0 siblings, 1 reply; 2+ messages in thread
From: Yves Blusseau @ 2010-04-12 13:56 UTC (permalink / raw)
To: The development of GRUB 2
[-- Attachment #1: Type: text/plain, Size: 990 bytes --]
Hi,
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......
Regards,
Yves Blusseau
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3326 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Problem Compiling gnulib/getdelim on MacOSX
2010-04-12 13:56 Problem Compiling gnulib/getdelim on MacOSX Yves Blusseau
@ 2010-04-12 14:37 ` Colin Watson
0 siblings, 0 replies; 2+ messages in thread
From: Colin Watson @ 2010-04-12 14:37 UTC (permalink / raw)
To: grub-devel
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 [cjwatson@ubuntu.com]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-12 14:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-12 13:56 Problem Compiling gnulib/getdelim on MacOSX Yves Blusseau
2010-04-12 14:37 ` Colin Watson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.