CarlC Computer Tips, Tricks, and Support

Fedora Core 28 and VMware Workstation 12.5.2 VMMON issue

After upgrading to Fedora Core 28, and getting the new gcc 8, VMMON will not build:

untar the vmmon from /usr/lib/vmware/modules/sources/vmmon.tar to /tmp

MODULEBUILDDIR= modules
make[1]: Entering directory ‘/usr/src/kernels/4.16.7-300.fc28.x86_64’
CC [M] /tmp/vmmon-only/linux/driverLog.o
In file included from /tmp/vmmon-only/./include/compat_kernel.h:23,
from /tmp/vmmon-only/linux/driverLog.c:27:

./include/linux/kernel.h:6:10: fatal error: stdarg.h: No such file or directory
#include <stdarg.h>

^~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:325: /tmp/vmmon-only/linux/driverLog.o] Error 1
make[1]: *** [Makefile:1565: _module_/tmp/vmmon-only] Error 2
make[1]: Leaving directory ‘/usr/src/kernels/4.16.7-300.fc28.x86_64’
make: *** [Makefile:120: vmmon.ko] Error 2

As you can see, we are missing the stdarg.h [it’s a GCC messed up thing].

cp /usr/lib/gcc/x86_64-redhat-linux/8/include/stdarg.h /tmp/vmmon/include/

NOW you can make vmmon and copy the module to /lib/modules/<kernel>/misc/

No Trackback/Pingback

Pinging is currently not allowed.

Comments are closed.