[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #28336] Build failure on NetBSD due to conflict with macro UNUSED
From: |
Grégoire Sutre |
Subject: |
[bug #28336] Build failure on NetBSD due to conflict with macro UNUSED |
Date: |
Fri, 18 Dec 2009 13:54:18 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:1.9.1.4) Gecko/20091029 Browser/3.5.4 |
URL:
<http://savannah.gnu.org/bugs/?28336>
Summary: Build failure on NetBSD due to conflict with macro
UNUSED
Project: GNU GRUB
Submitted by: gsutre
Submitted on: Fri 18 Dec 2009 01:54:17 PM GMT
Category: Compilation
Severity: Major
Priority: 5 - Normal
Item Group: Software Error
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release:
Release: Bazaar - trunk
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Details:
Hi,
On NetBSD, the header file <sys/disklabel.h> contains the word UNUSED, and
this leads to a build error as a macro named UNUSED is defined in
include/grub/types.h.
/usr/pkg/gcc44/bin/gcc -Iutil -I./util -I. -I./include -I./gnulib -I./include
-Wall -W -DGRUB_LIBDIR=\"/usr/local/lib/`echo grub/i386-pc | sed 's,x,x,'`\"
-DLOCALEDIR=\"\"
-DGRUB_MACHINE_PCBIOS=1 -DGRUB_UTIL=1 -MD -c -o
grub_mkdevicemap-util_deviceiter.o util/deviceiter.c
In file included from util/deviceiter.c:114:
/usr/include/sys/disklabel.h:357: error: expected ',' or '}' before '('
token
[...]
gmake: *** [grub_mkdevicemap-util_deviceiter.o] Error 1
Attached is the full log of (./autogen.sh && ./configure
CC=/usr/pkg/gcc44/bin/gcc LDFLAGS=-lintl && gmake).
The problem is fixed by moving the inclusion of GRUB header files after
<sys/disklabel.h> in util/deviceiter.c, e.g. as in the attached patch.
Thanks,
Grégoire
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 18 Dec 2009 01:54:17 PM GMT Name: patch-ad Size: 598B By:
gsutre
<http://savannah.gnu.org/bugs/download.php?file_id=19290>
-------------------------------------------------------
Date: Fri 18 Dec 2009 01:54:17 PM GMT Name: log Size: 58kB By: gsutre
<http://savannah.gnu.org/bugs/download.php?file_id=19289>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?28336>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #28336] Build failure on NetBSD due to conflict with macro UNUSED,
Grégoire Sutre <=