Why do I get "error: implicit declaration of function" when performing "make" on vmwgfx
Why do I get "error: implicit declaration of function" when performing "make" on vmwgfx
我非常接近在 Fedora 23 64 位(使用最新的 Rawhide 内核)上编译 VMWare guest GL driver,但我在 "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
我对 Makefile 及其语法不是很熟悉。这里可能发生了什么?
解决这个问题的方法是安装 4.3 内核,而不是 4.4 内核。
我非常接近在 Fedora 23 64 位(使用最新的 Rawhide 内核)上编译 VMWare guest GL driver,但我在 "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
我对 Makefile 及其语法不是很熟悉。这里可能发生了什么?
解决这个问题的方法是安装 4.3 内核,而不是 4.4 内核。