Copied from blog:
http://eitchpress.eitchnet.ch/?p=13
VMWare 6 and Ubuntu Hardy: vmmon compile error
Just a quick post to documentate how I got my VMWare config to work:
Problem: include/asm/bitops_32.h:9:2: error: #error only <linux/bitops.h> can be included directly, and vmmon-only compile failes
Solution: change line 74 in vmmon-only source file to read: #include “linux/bitops.h”
Steps:
1. cd /usr/lib/vmware/modules/source
2. cp vmmon.tar vmmon.tar.orig
3. sudo tar xvf vmmon.tar
4. cd vmmon-only/include/
5. sudo vi vcpuset.h
6. change line 74 from: #include “asm/bitops.h” to: #include “linux/bitops.h”
7. rm vmmon.tar
8. sudo tar cvf vmmon.tar vmmon-only/
9. sudo rm -rf vmmon-only/
10. sudo vmware-config.pl
That’s it, the compile will work now and vmware should be usable as normal
eitch
Hope that solves your compile problem! Ken
Recent comments
19 hours 37 min ago
21 hours 26 min ago
1 day 10 hours ago
1 day 15 hours ago
1 day 19 hours ago
1 day 21 hours ago
2 days 11 hours ago
2 days 11 hours ago
2 days 16 hours ago
2 days 23 hours ago