mkubecek / vmware-host-modules

Patches needed to build VMware (Player and Workstation) host modules against recent kernels
GNU General Public License v2.0
2.31k stars 376 forks source link

Cannot compile Workstation 17.0.2 modules under kernel 6.4.10-200 Fedora 38 #206

Closed konradziczek closed 1 year ago

konradziczek commented 1 year ago

Hello, I have a problem with the installation. Please help me, I need to get back to work :(

vmware-modconfig --console --install-all

[AppLoader] GLib does not have GSettings support.
Stopping vmware (via systemctl):                           [  OK  ]
make: Entering directory '/tmp/modconfig-gFunFy/vmmon-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/6.4.10-200.fc38.x86_64/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/kernels/6.4.10-200.fc38.x86_64'
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/linux/driver.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/linux/driverLog.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/linux/hostif.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/common/apic.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/common/comport.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/common/cpuid.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/common/crosspage.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/common/memtrack.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/common/moduleloop.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/common/phystrack.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/common/sharedAreaVmmon.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/common/statVarsVmmon.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/common/task.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/common/vmx86.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/bootstrap/bootstrap.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/bootstrap/monLoader.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/bootstrap/monLoaderVmmon.o
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/bootstrap/vmmblob.o
  LD [M]  /tmp/modconfig-gFunFy/vmmon-only/vmmon.o
  MODPOST /tmp/modconfig-gFunFy/vmmon-only/Module.symvers
  CC [M]  /tmp/modconfig-gFunFy/vmmon-only/vmmon.mod.o
  LD [M]  /tmp/modconfig-gFunFy/vmmon-only/vmmon.ko
  BTF [M] /tmp/modconfig-gFunFy/vmmon-only/vmmon.ko
Skipping BTF generation for /tmp/modconfig-gFunFy/vmmon-only/vmmon.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/kernels/6.4.10-200.fc38.x86_64'
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[1]: Entering directory '/tmp/modconfig-gFunFy/vmmon-only'
make[1]: 'postbuild' is up to date.
make[1]: Leaving directory '/tmp/modconfig-gFunFy/vmmon-only'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory '/tmp/modconfig-gFunFy/vmmon-only'
make: Entering directory '/tmp/modconfig-gFunFy/vmnet-only'
Using kernel build system.
/usr/bin/make -C /lib/modules/6.4.10-200.fc38.x86_64/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/kernels/6.4.10-200.fc38.x86_64'
  CC [M]  /tmp/modconfig-gFunFy/vmnet-only/driver.o
  CC [M]  /tmp/modconfig-gFunFy/vmnet-only/hub.o
  CC [M]  /tmp/modconfig-gFunFy/vmnet-only/userif.o
  CC [M]  /tmp/modconfig-gFunFy/vmnet-only/netif.o
  CC [M]  /tmp/modconfig-gFunFy/vmnet-only/bridge.o
  CC [M]  /tmp/modconfig-gFunFy/vmnet-only/procfs.o
  CC [M]  /tmp/modconfig-gFunFy/vmnet-only/smac_compat.o
  CC [M]  /tmp/modconfig-gFunFy/vmnet-only/smac.o
  CC [M]  /tmp/modconfig-gFunFy/vmnet-only/vnetEvent.o
  CC [M]  /tmp/modconfig-gFunFy/vmnet-only/vnetUserListener.o
/tmp/modconfig-gFunFy/vmnet-only/bridge.c: In function 'VNetBridgeSendLargePacket':
/tmp/modconfig-gFunFy/vmnet-only/bridge.c:1416:11: error: implicit declaration of function 'skb_gso_segment'; did you mean 'tcp_gso_segment'? [-Werror=implicit-function-declaration]
 1416 |    segs = skb_gso_segment(skb, 0);
      |           ^~~~~~~~~~~~~~~
      |           tcp_gso_segment
/tmp/modconfig-gFunFy/vmnet-only/bridge.c:1416:9: warning: assignment to 'struct sk_buff *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
 1416 |    segs = skb_gso_segment(skb, 0);
      |         ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:252: /tmp/modconfig-gFunFy/vmnet-only/bridge.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:2050: /tmp/modconfig-gFunFy/vmnet-only] Error 2
make[1]: Leaving directory '/usr/src/kernels/6.4.10-200.fc38.x86_64'
make: *** [Makefile:117: vmnet.ko] Error 2
make: Leaving directory '/tmp/modconfig-gFunFy/vmnet-only'
Unable to install all modules.  See log for details.
konradziczek commented 1 year ago

Solved by applying this commit: https://github.com/mkubecek/vmware-host-modules/commit/b75cd616cca0a4c9ff22124c4c91d218e64e6205