I have updated from CentOS 8 to CentOS 8 stream, but I cannot compile vmmon and vmnet so VMware Workstation won't work.
Checking the message it is caused by totalram_pages
2020-12-12T10:59:17.345+09:00| host-4007| I005: /tmp/modconfig-Bn63vh/vmmon-only/linux/hostif.c: 関数 ‘HostIF_EstimateLockedPageLimit’ 内:
2020-12-12T10:59:17.345+09:00| host-4007| I005: /tmp/modconfig-Bn63vh/vmmon-only/linux/hostif.c:1683:25: エラー: ‘totalram_pages’ が異なる種類のシンボルとして再宣言されました
2020-12-12T10:59:17.345+09:00| host-4007| I005: extern unsigned long totalram_pages;
2020-12-12T10:59:17.345+09:00| host-4007| I005: ^~~~~~~~~~~~~~
2020-12-12T10:59:17.345+09:00| host-4007| I005: In file included from ./include/drm-backport/linux/mm.h:12,
2020-12-12T10:59:17.345+09:00| host-4007| I005: from /tmp/modconfig-Bn63vh/vmmon-only/linux/hostif.c:42:
2020-12-12T10:59:17.345+09:00| host-4007| I005: ./include/linux/mm.h:56:29: 備考: 前の ‘totalram_pages’ の宣言はここです
2020-12-12T10:59:17.345+09:00| host-4007| I005: static inline unsigned long totalram_pages(void)
2020-12-12T10:59:17.345+09:00| host-4007| I005: ^~~~~~~~~~~~~~
2020-12-12T10:59:17.345+09:00| host-4007| I005: make[2]: *** [scripts/Makefile.build:315: /tmp/modconfig-Bn63vh/vmmon-only/linux/hostif.o] エラー 1
Checking the 16.1.0 patch by mkubecek, it is same....
/home/may/vmware-host-modules-w16.1.0/vmmon-only/linux/hostif.c: In function 'HostIF_EstimateLockedPageLimit':
/home/may/vmware-host-modules-w16.1.0/vmmon-only/linux/hostif.c:1683:25: error: 'totalram_pages' redeclared as different kind of symbol
extern unsigned long totalram_pages;
^~~~~~~~~~~~~~
In file included from ./include/drm-backport/linux/mm.h:12,
from /home/may/vmware-host-modules-w16.1.0/vmmon-only/linux/hostif.c:42:
./include/linux/mm.h:56:29: note: previous definition of 'totalram_pages' was here
static inline unsigned long totalram_pages(void)
^~~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:316: /home/may/vmware-host-modules-w16.1.0/vmmon-only/linux/hostif.o] Error 1
make[2]: *** [Makefile:1545: _module_/home/may/vmware-host-modules-w16.1.0/vmmon-only] Error 2
make[2]: Leaving directory '/usr/src/kernels/4.18.0-257.el8.x86_64'
make[1]: *** [Makefile:117: vmmon.ko] Error 2
make[1]: Leaving directory '/home/may/vmware-host-modules-w16.1.0/vmmon-only'
make: *** [Makefile:21: vmmon-only] Error 2
if any ideas/thoughts/advice please let me know.
No, it hasn't. I clicked the update without reading what it was, and screwed up my install. Going to try this fix now (for like the 5th time!)
Hola / Hello
Una disculpa. / I'm sorry.
Comparto los archivos para la nueva versión / .Shared files to the new version.
VMware Workstation 16.2.1 build-18811642
Centos: 8
Kernel versión: 4.18.0.
Copy files to /usr/lib/vmware/modules/source
https://www.mediafire.com/folder/dfhbqtktaz3rj/Workstation_16.2.1_Centos8
Modifique los archivo originales, solamente agregue ifelse, para cargar las librerias correctas.
Modify the original files, just add if else, to load the correct libraries.
I got them from github
https://codeload.github.com/mkubecek/vmware-host-modules/zip/refs/heads/workstation-16.2.1
Is that the same or different?
Regards,
Mark
The definition is similar.
But it puts additional variables, well at least of the 2 files that I modify.
Definition: __RHEL_OBJTOOL_H_HAC
Definition: __RHEL_PAGE_ACCT_HACK
From what I saw quickly, of the two files, only the way of programming and defining variables changes. Do not check if you made any changes to the other files.
In my case add IFELSE and modify an IF.
In short, the two are valid and similar.
Thank bro, it's work to me
I install new version (16.2.4) and it works for me
https://customerconnect.vmware.com/downloads/details?downloadGroup=WKST-1624-LX&productId=1038
