Skip to contentSkip to conversation

Xen 4.1.1 kernel build failure

DISCUSSION Christoph Egger 2 participants 2 messages Jun 16, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

xen/drivers/char/console.c fails to compile because it includes <xen/stdarg.h> itself and then again via <xen/lib.h>.

Then gcc fails with redefining va_list in xen/include/xen/stdarg.h.

One way to fix it is to remove the <xen/stdarg.h> inclusion from xen/drivers/char/console.c.
A second way to fix it is to add a multiple inclusion protection to xen/include/xen/stdarg.h

Christoph

Signature · 6 lines
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
#1 lore raw
Quoted 6 lines · Christoph Egger

Hi,

xen/drivers/char/console.c fails to compile because it includes <xen/stdarg.h> itself and then again via <xen/lib.h>.

Quoted 6 lines

Then gcc fails with redefining va_list in xen/include/xen/stdarg.h.

One way to fix it is to remove the <xen/stdarg.h> inclusion from xen/drivers/char/console.c.
A second way to fix it is to add a multiple inclusion protection to xen/include/xen/stdarg.h

I'll do both. :-)

-- Keir

Quoted 3 lines

Christoph