为什么我会得到"错误:隐含的函数声明"表演"制作"在vmwgfx上

时间:2015-11-27 15:05:46

标签: makefile vmware fedora

我非常接近在64位Fedora 23上编译VMWare guest GL driver(使用最新的Rawhide内核),但我在#34; 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及其语法不是很熟悉。可能会发生什么?

1 个答案:

答案 0 :(得分:0)

解决方法是安装4.3内核,而不是4.4内核。