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
>
>  # define _LINUX_BYTEORDER_SWAB_H
> +# define _LINUX_BYTEORDER_SWABB_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,

Frank
-- 
Dr.-Ing. Frank Mehnert    Sun Microsystems    http://www.sun.com/

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
vbox-dev mailing list
vbox-dev@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-dev

Reply via email to