[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem Compiling gnulib/getdelim on MacOSX
From: |
Yves Blusseau |
Subject: |
Problem Compiling gnulib/getdelim on MacOSX |
Date: |
Mon, 12 Apr 2010 15:56:07 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.2pre) Gecko/20100302 Lightning/1.0b2pre Lanikai/3.1b1 |
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
smime.p7s
Description: S/MIME Cryptographic Signature
- Problem Compiling gnulib/getdelim on MacOSX,
Yves Blusseau <=