[vbox-users] [1.5.2] Building vboxdrv module fails with current upstream kernel
Frans Pop
elendil at planet.nl
Tue Oct 30 22:27:44 CET 2007
On Tuesday 30 October 2007, Frans Pop wrote:
> I'm following upstream kernel development and a very recent change in
> Linus' git repository causes the following build failure:
I've managed to work around the breakage by making relatively minor changes
in the vboxdrv source.
1) include/linux/types.h:40: error: redefinition of typedef ‘uintptr_t’
This error was fixed by commenting out the following code fragment in
include/iprt/stdint.h:
#ifndef _MSC_VER
#ifndef _INTPTR_T_DECLARED
typedef __intptr_t intptr_t;
typedef __uintptr_t uintptr_t;
#define _INTPTR_T_DECLARED
#endif
#endif /* !_MSC_VER */
2) include/linux/bitops.h:6:1: warning: "BIT" redefined
The upstream kernel now defines BIT itself (BITOP was renamed to BIT).
I therefore renamed BIT in the vboxdrv source to VB_BIT using:
$ find -type f -exec sed -i "s/\([^_]\)BIT(/\1VB_BIT(/g" {} +
After that the module builds and seems to work fine.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://vbox.innotek.de/pipermail/vbox-users/attachments/20071030/01963411/attachment.pgp
More information about the vbox-users
mailing list