错误:
[root@ansible kpatch]# make
make -C kpatch-build
make[1]: Entering directory `/home/gn/kpatch/kpatch-build'
gcc -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare -Wconversion -Wno-sign-conversion -g -Werror -c -o create-diff-object.o create-diff-object.c
create-diff-object.c:44:18: fatal error: gelf.h: No such file or directory
#include <gelf.h>
^
compilation terminated.
make[1]: *** [create-diff-object.o] Error 1
make[1]: Leaving directory `/home/gn/kpatch/kpatch-build'
make: *** [build-kpatch-build] Error 2
奇怪的是:kpatch源码中明明用到了该文件,但是在源码中没有找见gelf.h
[root@ansible kpatch]# grep "gelf.h" -rI ./
./kpatch-build/lookup.c:#include <gelf.h>
./kpatch-build/kpatch-elf.h:#include <gelf.h>
./kpatch-build/create-diff-object.c:#include <gelf.h>
--------------------------------------------------------------------
[root@ansible kpatch]# find / -name "gelf.h"
[root@ansible kpatch]#
--------------------------------------------------------------------
怀疑是第三方库文件,但是苦于不知道这个文件gelf的rpm包名