All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yves Blusseau <blusseau@zetam.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Problem Compiling gnulib/getdelim on MacOSX
Date: Mon, 12 Apr 2010 15:56:07 +0200	[thread overview]
Message-ID: <4BC32677.1010009@zetam.org> (raw)

[-- 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 --]

             reply	other threads:[~2010-04-12 13:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-12 13:56 Yves Blusseau [this message]
2010-04-12 14:37 ` Problem Compiling gnulib/getdelim on MacOSX Colin Watson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BC32677.1010009@zetam.org \
    --to=blusseau@zetam.org \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.