Reply to Message

View discussion in a popup

Replying to:
masafumiohta
Contributor
Contributor

hi @mkubecek just build on my CentOS stream 8, I got the error, though just modified ‘NR_SLAB_UNRECLAIMABLE with NR_SLAB_UNRECLAIMABLE_B’ following the compiling instruction, it works. 

[may@may-centos vmware-host-modules-workstation-16.1.2]$ make
make -C vmmon-only
make[1]: ディレクトリ '/home/may/tmp/vmware-host-modules-workstation-16.1.2/vmmon-only' に入ります
Using kernel build system.
make -C /lib/modules/4.18.0-301.1.el8.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[2]: ディレクトリ '/usr/src/kernels/4.18.0-301.1.el8.x86_64' に入ります
CC [M] /home/may/tmp/vmware-host-modules-workstation-16.1.2/vmmon-only/linux/driver.o
CC [M] /home/may/tmp/vmware-host-modules-workstation-16.1.2/vmmon-only/linux/hostif.o
/home/may/tmp/vmware-host-modules-workstation-16.1.2/vmmon-only/linux/hostif.c: 関数 ‘HostIF_EstimateLockedPageLimit’ 内:
/home/may/tmp/vmware-host-modules-workstation-16.1.2/vmmon-only/linux/hostif.c:1727:42: エラー: ‘NR_SLAB_UNRECLAIMABLE’ undeclared (first use in this function); did you mean ‘NR_SLAB_UNRECLAIMABLE_B’?
lockedPages += global_node_page_state(NR_SLAB_UNRECLAIMABLE);
^~~~~~~~~~~~~~~~~~~~~
NR_SLAB_UNRECLAIMABLE_B
/home/may/tmp/vmware-host-modules-workstation-16.1.2/vmmon-only/linux/hostif.c:1727:42: 備考: 未宣言の識別子は出現した各関数内で一回のみ報告されます
make[3]: *** [scripts/Makefile.build:316: /home/may/tmp/vmware-host-modules-workstation-16.1.2/vmmon-only/linux/hostif.o] エラー 1
make[2]: *** [Makefile:1563: _module_/home/may/tmp/vmware-host-modules-workstation-16.1.2/vmmon-only] エラー 2
make[2]: ディレクトリ '/usr/src/kernels/4.18.0-301.1.el8.x86_64' から出ます
make[1]: *** [Makefile:117: vmmon.ko] エラー 2
make[1]: ディレクトリ '/home/may/tmp/vmware-host-modules-workstation-16.1.2/vmmon-only' から出ます
make: *** [Makefile:21: vmmon-only] エラー 2

Masafumi Ohta mail to colon masafumi atmark pid zero dot orgdomain (to prevent from spam sorry) https://masafumi.me
Reply
0 Kudos