You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://github.com/bytedance/Elkeid.git
cd Elkeid/driver/LKM/
make clean && make 或 bash build_script/x86_64/batch_compile_el7.sh
In file included from ./include/linux/bug.h:5:0,
from ./include/linux/thread_info.h:12,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:78,
from ./include/linux/spinlock.h:51,
from ./include/linux/seqlock.h:36,
from ./include/linux/time.h:6,
from ./include/linux/stat.h:19,
from ./include/linux/module.h:10,
from /root/Elkeid/driver/LKM/src/../include/kprobe.h:11,
from /root/Elkeid/driver/LKM/src/../include/smith_hook.h:14,
from /root/Elkeid/driver/LKM/src/smith_hook.c:7:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
asm_inline volatile("1:\t" ins "\n" \
^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
_BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags)); \
^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
__WARN_FLAGS(BUGFLAG_ONCE | \
^
./include/linux/netfilter.h:234:7: note: in expansion of macro ‘WARN_ON_ONCE’
if (WARN_ON_ONCE(hook >= ARRAY_SIZE(net->nf.hooks_arp)))
^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:214:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
#define asm_inline asm __inline
^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
asm_inline volatile("1:\t" ins "\n" \
^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
_BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags)); \
^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
__WARN_FLAGS(BUGFLAG_ONCE | \
^
./include/linux/netfilter.h:234:7: note: in expansion of macro ‘WARN_ON_ONCE’
if (WARN_ON_ONCE(hook >= ARRAY_SIZE(net->nf.hooks_arp)))
^
././include/linux/compiler_types.h:214:24: error: expected ‘(’ before ‘__inline’
#define asm_inline asm __inline
^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
asm_inline volatile("1:\t" ins "\n" \
^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
_BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags)); \
^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
__WARN_FLAGS(BUGFLAG_ONCE | \
^
./include/linux/netfilter.h:250:3: note: in expansion of macro ‘WARN_ON_ONCE’
WARN_ON_ONCE(1);
^
In file included from ./include/linux/bug.h:5:0,
from ./include/linux/thread_info.h:12,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:78,
from ./include/linux/spinlock.h:51,
from ./include/linux/seqlock.h:36,
from ./include/linux/time.h:6,
from ./include/linux/stat.h:19,
from ./include/linux/module.h:10,
from /root/Elkeid/driver/LKM/src/../include/kprobe.h:11,
from /root/Elkeid/driver/LKM/src/../include/smith_hook.h:14,
from /root/Elkeid/driver/LKM/src/smith_hook.c:7:
./arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant
asm_inline volatile("1:\t" ins "\n" \
^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
_BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags)); \
^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
__WARN_FLAGS(BUGFLAG_ONCE | \
^
./include/linux/netfilter.h:250:3: note: in expansion of macro ‘WARN_ON_ONCE’
WARN_ON_ONCE(1);
^
In file included from <command-line>:0:0:
././include/linux/compiler_types.h:214:24: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
#define asm_inline asm __inline
^
./arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’
asm_inline volatile("1:\t" ins "\n" \
^
./arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’
_BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags)); \
^
./include/asm-generic/bug.h:98:3: note: in expansion of macro ‘__WARN_FLAGS’
__WARN_FLAGS(BUGFLAG_ONCE | \
^
./include/linux/netfilter.h:250:3: note: in expansion of macro ‘WARN_ON_ONCE’
WARN_ON_ONCE(1);
^
make[3]: *** [/root/Elkeid/driver/LKM/src/smith_hook.o] Error 1
make[2]: *** [/root/Elkeid/driver/LKM] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/kernels/5.4.204-1.el7.elrepo.x86_64'
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
环境
OS: Centos7.9.2009
Kernel: 5.4.204-1.el7.elrepo.x86_64
报错信息
The text was updated successfully, but these errors were encountered: