Monday 26 January 2009

Kernel update alert: VMWare recompile fails

This morning it happened again. Last week I updated my kernel through the yast-updater. And this causes me to recompile my VMWare modules using However: the compilation fails. For info I now run: x86_64 (Open Suse).

The compilation failed with the error: '... In function ‘VNetBridgeUp’: /tmp/vmware-config3/vmnet-only/bridge.c:947: error: implicit declaration of function ‘sock_valbool_flag ... '.

It took me sometime to get me back to my own earlier post at: Here I wrote that I had to add the function in /usr/src/linux/include/net/sock.h.

Open the file in vi (as root).
Search for the line: extern __u32 sysctl_wmem_max;
Right above it copy the following lines:

static inline void sock_valbool_flag(struct sock *sk, int bit, int valbool)
if (valbool)

sock_set_flag(sk, bit);
sock_reset_flag(sk, bit);

Then running should succeed.

Good luck. And I hope I remember this the next time I update the kernel.

No comments :