[vbox-dev] [PATCH] Fix new breakage from Linus

Frank Mehnert Frank.Mehnert at Sun.COM
Mon Jan 19 01:50:34 PST 2009

On Saturday 27 December 2008, walt wrote:
> The latest linux kernel headers break compilation of vbox by introducing
> a new header file, swabb.h, containing definitions not needed by vbox.
> Prevent the new header file from loading:
> Index: src/VBox/Devices/Storage/swab.h
> ===================================================================
> --- src/VBox/Devices/Storage/swab.h     (revision 15711)
> +++ src/VBox/Devices/Storage/swab.h     (working copy)
> @@ -33,6 +33,7 @@
>  #define _VBOX_LINUX_SWAB_H
>  #include <asm/types.h>

Thank you for that report. A similar fix was applied to SVN.

> It's the c++ compiler that complains about the syntax in swab.h and
> swabb.h, so I tried just adding extern "C" to the recipe, but it didn't
> fix anything or even change the error message.  Can anyone here explain
> why it doesn't work?

'extern "C"' does not switch the compiler to use plain C syntax. It
just changes some properties (the symbols names convention above all).

Kind regards,

Dr.-Ing. Frank Mehnert    Sun Microsystems    http://www.sun.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://www.virtualbox.org/pipermail/vbox-dev/attachments/20090119/a1b02596/attachment-0001.bin 

More information about the vbox-dev mailing list