Sunday, November 14, 2021

[SOLVED] Why do I get "error: implicit declaration of function" when performing "make" on vmwgfx

Issue

I'm very close to have compiled the VMWare guest GL driver on Fedora 23 64-bit (using latest Rawhide kernel), but I'm getting errors during "make":

$ cd $TOP/vmwgfx
$ make

make -C /lib/modules/4.4.0-0.rc2.git2.2.fc24.x86_64/source  SUBDIRS=`/bin/pwd` DRMSRCDIR=`/bin/pwd` modules
make[1]: Entering directory '/usr/src/kernels/4.4.0-0.rc2.git2.2.fc24.x86_64'
  CC [M]  /home/IRUser/github/vmwgfx/drm_lock.o
/home/IRUser/github/vmwgfx/drm_lock.c: In function ‘drm_lock’:
/home/IRUser/github/vmwgfx/drm_lock.c:124:3: error: implicit declaration of function ‘block_all_signals’ [-Werror=implicit-function-declaration]
   block_all_signals(drm_notifier, &dev->sigdata, &dev->sigmask);
   ^
/home/IRUser/github/vmwgfx/drm_lock.c: In function ‘drm_unlock’:
/home/IRUser/github/vmwgfx/drm_lock.c:183:2: error: implicit declaration of function ‘unblock_all_signals’ [-Werror=implicit-function-declaration]
  unblock_all_signals();
  ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/IRUser/github/vmwgfx/drm_lock.o' failed
make[2]: *** [/home/IRUser/github/vmwgfx/drm_lock.o] Error 1
Makefile:1388: recipe for target '_module_/home/IRUser/github/vmwgfx' failed
make[1]: *** [_module_/home/IRUser/github/vmwgfx] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.4.0-0.rc2.git2.2.fc24.x86_64'
Makefile:139: recipe for target 'modules' failed
make: *** [modules] Error 2

I'm not very familiar with Makefile and its syntax. What could be going on here?


Solution

The solution to this was to install the 4.3 kernel, not the 4.4 kernel.



Answered By - fredrik