Can anyone help with compiling silk-guardian with latest PVE kernel?
Would very appreciate if someone share silk.ko driver.
I have no idea how to sort out following error
Would very appreciate if someone share silk.ko driver.
I have no idea how to sort out following error
Code:
root@pve:/tmp/silk-guard# export KCPPFLAGS="-fno-pie"
root@pve:/tmp/silk-guard# export CPPFLAGS="$KCPPFLAGS"
root@pve:/tmp/silk-guard# make
make -C /lib/modules/4.15.17-2-pve/build M=/tmp/silk-guard
make[1]: Entering directory '/usr/src/linux-headers-4.15.17-2-pve'
CC [M] /tmp/silk-guard/silk.o
In file included from ./include/linux/list.h:5:0,
from ./include/linux/module.h:9,
from /tmp/silk-guard/silk.c:3:
./include/linux/types.h:17:9: error: unknown type name ‘__kernel_ino_t’
typedef __kernel_ino_t ino_t;
^~~~~~~~~~~~~~
./include/linux/types.h:18:9: error: unknown type name ‘__kernel_mode_t’
typedef __kernel_mode_t mode_t;
^~~~~~~~~~~~~~~
./include/linux/types.h:21:9: error: unknown type name ‘__kernel_off_t’
typedef __kernel_off_t off_t;
^~~~~~~~~~~~~~
./include/linux/types.h:22:9: error: unknown type name ‘__kernel_pid_t’
typedef __kernel_pid_t pid_t;
^~~~~~~~~~~~~~
./include/linux/types.h:23:9: error: unknown type name ‘__kernel_daddr_t’
typedef __kernel_daddr_t daddr_t;
^~~~~~~~~~~~~~~~
./include/linux/types.h:25:9: error: unknown type name ‘__kernel_suseconds_t’
typedef __kernel_suseconds_t suseconds_t;
^~~~~~~~~~~~~~~~~~~~
./include/linux/types.h:26:9: error: unknown type name ‘__kernel_timer_t’
typedef __kernel_timer_t timer_t;
^~~~~~~~~~~~~~~~
./include/linux/types.h:27:9: error: unknown type name ‘__kernel_clockid_t’
typedef __kernel_clockid_t clockid_t;
^~~~~~~~~~~~~~~~~~
./include/linux/types.h:32:9: error: unknown type name ‘__kernel_uid32_t’
typedef __kernel_uid32_t uid_t;
^~~~~~~~~~~~~~~~
./include/linux/types.h:33:9: error: unknown type name ‘__kernel_gid32_t’
typedef __kernel_gid32_t gid_t;
^~~~~~~~~~~~~~~~
./include/linux/types.h:34:9: error: unknown type name ‘__kernel_uid16_t’
typedef __kernel_uid16_t uid16_t;
^~~~~~~~~~~~~~~~
./include/linux/types.h:35:9: error: unknown type name ‘__kernel_gid16_t’
typedef __kernel_gid16_t gid16_t;
^~~~~~~~~~~~~~~~
./include/linux/types.h:41:9: error: unknown type name ‘__kernel_old_uid_t’
typedef __kernel_old_uid_t old_uid_t;
^~~~~~~~~~~~~~~~~~
./include/linux/types.h:42:9: error: unknown type name ‘__kernel_old_gid_t’
typedef __kernel_old_gid_t old_gid_t;
^~~~~~~~~~~~~~~~~~
./include/linux/types.h:46:9: error: unknown type name ‘__kernel_loff_t’
typedef __kernel_loff_t loff_t;
^~~~~~~~~~~~~~~
./include/linux/types.h:55:9: error: unknown type name ‘__kernel_size_t’
typedef __kernel_size_t size_t;
^~~~~~~~~~~~~~~
./include/linux/types.h:60:9: error: unknown type name ‘__kernel_ssize_t’
typedef __kernel_ssize_t ssize_t;
^~~~~~~~~~~~~~~~
./include/linux/types.h:65:9: error: unknown type name ‘__kernel_ptrdiff_t’
typedef __kernel_ptrdiff_t ptrdiff_t;
^~~~~~~~~~~~~~~~~~
./include/linux/types.h:70:9: error: unknown type name ‘__kernel_time_t’
typedef __kernel_time_t time_t;
^~~~~~~~~~~~~~~
./include/linux/types.h:75:9: error: unknown type name ‘__kernel_clock_t’
typedef __kernel_clock_t clock_t;
^~~~~~~~~~~~~~~~
./include/linux/types.h:80:9: error: unknown type name ‘__kernel_caddr_t’
typedef __kernel_caddr_t caddr_t;
^~~~~~~~~~~~~~~~
./include/linux/types.h:199:2: error: unknown type name ‘__kernel_daddr_t’
__kernel_daddr_t f_tfree;
^~~~~~~~~~~~~~~~
./include/linux/types.h:200:2: error: unknown type name ‘__kernel_ino_t’
__kernel_ino_t f_tinode;
^~~~~~~~~~~~~~
In file included from ./include/linux/list.h:9:0,
from ./include/linux/module.h:9,
from /tmp/silk-guard/silk.c:3:
./include/linux/kernel.h:6:20: fatal error: stdarg.h: No such file or directory
#include <stdarg.h>
^
compilation terminated.
scripts/Makefile.build:331: recipe for target '/tmp/silk-guard/silk.o' failed
make[2]: *** [/tmp/silk-guard/silk.o] Error 1
Makefile:1552: recipe for target '_module_/tmp/silk-guard' failed
make[1]: *** [_module_/tmp/silk-guard] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.17-2-pve'
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2