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.
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ vbox-users mailing list [email protected] http://vbox.innotek.de/mailman/listinfo/vbox-users
