kpatch dicono che sia testato solo su poche distribuzioni, tra cui non slackware, io ho attivato CONFIG_LIVEPATCH nel kernel ma la compilazione del pacchetto kpatch trovato su gitub https://github.com/dynup/kpatch non va a buon fine:
Codice: Seleziona tutto
bash-4.3$ make
make -C kpatch-build
make[1]: Entering directory `/mnt/wd2/Sviluppo/Linux/SlackBuild/kpatch-master/kpatch-build'
gcc -MMD -MP -I../kmod/patch -Iinsn -Wall -g -c -o create-diff-object.o create-diff-object.c
In file included from create-diff-object.c:49:0:
list.h:33:0: warning: "offsetof" redefined
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
^
In file included from /usr/include/unistd.h:226:0,
from create-diff-object.c:47:
/usr/lib64/gcc/x86_64-slackware-linux/4.9.2/include/stddef.h:413:0: note: this is the location of the previous definition
#define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
^
create-diff-object.c: In function ‘kpatch_elf_open’:
create-diff-object.c:487:22: error: ‘ELF_C_READ_MMAP’ undeclared (first use in this function)
elf = elf_begin(fd, ELF_C_READ_MMAP, NULL);
^
create-diff-object.c:487:22: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [create-diff-object.o] Errore 1
make[1]: Leaving directory `/mnt/wd2/Sviluppo/Linux/SlackBuild/kpatch-master/kpatch-build'
make: *** [build-kpatch-build] Errore 2
