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 381 forks source link

p16.2.5 - make error #200

Closed VdovinAlexey closed 1 year ago

VdovinAlexey commented 1 year ago

5.19.0-46-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 21 15:35:31 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

cd ./vmware-host-modules-p16.2.5 sudo CPATH=/usr/src/linux-headers-5.19.0-46-generic/include/linux make

` make -C vmmon-only make[1]: Entering directory '/home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only' Using kernel build system. make -C /lib/modules/5.19.0-46-generic/build/include/.. M=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[2]: Entering directory '/usr/src/linux-headers-5.19.0-46-generic' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0 You are using: gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0 CC [M] /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/driver.o CC [M] /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/driverLog.o CC [M] /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/hostif.o /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/hostif.c: In function ‘isVAReadable’: /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/hostif.c:2363:4: error: unknown type name ‘mm_segment_t’ 2363 | mm_segment_t old_fs; | ^~~~ /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/hostif.c:2365:13: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration] 2365 | old_fs = get_fs(); | ^~ | sget_fc /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/hostif.c:2366:4: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration] 2366 | set_fs(KERNEL_DS); | ^~ | sget_fc /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/hostif.c:2366:11: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNEL_2_1’? 2366 | set_fs(KERNEL_DS); | ^~~~~ | KERNEL_2_1 /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/hostif.c:2366:11: note: each undeclared identifier is reported only once for each function it appears in cc1: some warnings being treated as errors make[3]: [scripts/Makefile.build:257: /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only/linux/hostif.o] Error 1 make[2]: [Makefile:1857: /home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only] Error 2 make[2]: Leaving directory '/usr/src/linux-headers-5.19.0-46-generic' make[1]: [Makefile:117: vmmon.ko] Error 2 make[1]: Leaving directory '/home/alex/vmware/vmware-host-modules-p16.2.5/vmmon-only' make: [Makefile:21: vmmon-only] Error 2

`

VdovinAlexey commented 1 year ago

solution on vmplayer 17.0.2: 1.Disable secure boot via BIOS 2.run "sudo vmware-modconfig --console --install-all"