Skip to content

Instantly share code, notes, and snippets.

@rohan-molloy
Created September 27, 2023 11:06
Show Gist options
  • Save rohan-molloy/663257559bdb14ad1bf37dc9be23030d to your computer and use it in GitHub Desktop.
Save rohan-molloy/663257559bdb14ad1bf37dc9be23030d to your computer and use it in GitHub Desktop.

Problem

2023-09-27T10:52:26.802Z In(05) host-3241276 Using kernel build system.
2023-09-27T10:52:26.802Z In(05) host-3241276 /tmp/modconfig-MRgyG5/vmnet-only/bridge.c: In function ‘VNetBridgeSendLargePacket’:
2023-09-27T10:52:26.802Z In(05) host-3241276 /tmp/modconfig-MRgyG5/vmnet-only/bridge.c:1413:11: error: implicit declaration of function ‘skb_gso_segment’; did you mean ‘tcp_gso_segment’? [-Werror=implicit-function-declaration]
2023-09-27T10:52:26.802Z In(05) host-3241276  1413 |    segs = skb_gso_segment(skb, 0);
2023-09-27T10:52:26.802Z In(05) host-3241276       |           ^~~~~~~~~~~~~~~
2023-09-27T10:52:26.802Z In(05) host-3241276       |           tcp_gso_segment
2023-09-27T10:52:26.802Z In(05) host-3241276 /tmp/modconfig-MRgyG5/vmnet-only/bridge.c:1413:9: warning: assignment to ‘struct sk_buff *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2023-09-27T10:52:26.802Z In(05) host-3241276  1413 |    segs = skb_gso_segment(skb, 0);
2023-09-27T10:52:26.802Z In(05) host-3241276       |         ^
2023-09-27T10:52:26.802Z In(05) host-3241276 cc1: some warnings being treated as errors
2023-09-27T10:52:26.802Z In(05) host-3241276 make[2]: *** [scripts/Makefile.build:252: /tmp/modconfig-MRgyG5/vmnet-only/bridge.o] Error 1
2023-09-27T10:52:26.802Z In(05) host-3241276 make[2]: *** Waiting for unfinished jobs....
2023-09-27T10:52:26.802Z In(05) host-3241276 make[1]: *** [Makefile:2050: /tmp/modconfig-MRgyG5/vmnet-only] Error 2
2023-09-27T10:52:26.802Z In(05) host-3241276 make: *** [Makefile:117: vmnet.ko] Error 2
2023-09-27T10:52:26.802Z In(05) host-3241276 Unable to install all modules.  See log for details.
2023-09-27T10:52:26.802Z In(05) host-3241276 

Solution

cd /usr/lib/vmware/modules/source
tar -xvf vmnet.tar
sed -i '46 a#include <net/gso.h>' vmnet-only/bridge.c
mv vmnet.tar vmnet.tar.original
tar -cf vmnet.tar vmnet-only
vmware-modconfig --console --install-all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment