Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200716003124.GA8572@pi3.com.pl>
Date: Thu, 16 Jul 2020 02:31:24 +0200
From: Adam Zabrocki <pi3@....com.pl>
To: lkrg-users@...ts.openwall.com
Subject: Re: error: redefinition of ‘struct stack_trace’ - Centos
 8 with default kernel.

Hi,

I've just pushed fix. Can you verify if that helps?

Thanks,
Adam

On Sat, Jul 11, 2020 at 12:07:00AM +0200, bryn1u wrote:
> Hey,
> 
> I use Centos 8 with default kernel. After sources downloaded i was trying
> to compile the files but got errors as below :((
> 
> [root@...iVibe lkrg-0.8.1]# make -j8
> make -C /lib/modules/4.18.0-193.6.3.el8_2.x86_64/build M=/root/lkrg-0.8.1
> modules
> make[1]: Entering directory '/usr/src/kernels/4.18.0-193.6.3.el8_2.x86_64'
>   CC [M]  /root/lkrg-0.8.1/src/modules/ksyms/p_resolve_ksym.o
>   CC [M]  /root/lkrg-0.8.1/src/modules/hashing/p_lkrg_fast_hash.o
>   CC [M]  /root/lkrg-0.8.1/src/modules/comm_channel/p_comm_channel.o
>   CC [M]  /root/lkrg-0.8.1/src/modules/integrity_timer/p_integrity_timer.o
>   CC [M]  /root/lkrg-0.8.1/src/modules/kmod/p_kmod.o
>   CC [M]  /root/lkrg-0.8.1/src/modules/database/CPU.o
>   CC [M]  /root/lkrg-0.8.1/src/modules/database/arch/x86/p_x86_metadata.o
>   CC [M]
>  /root/lkrg-0.8.1/src/modules/database/arch/x86/p_switch_idt/p_switch_idt.o
> In file included from
> /root/lkrg-0.8.1/src/modules/ksyms/../../p_lkrg_main.h:232,
>                  from
> /root/lkrg-0.8.1/src/modules/ksyms/p_resolve_ksym.c:19:
> /root/lkrg-0.8.1/src/modules/ksyms/../../modules/exploit_detection/p_exploit_detection.h:152:8:
> error: redefinition of ‘struct stack_trace’
>  struct stack_trace {
>         ^~~~~~~~~~~
> In file included from ./include/linux/page_ext.h:6,
>                  from ./include/linux/mm.h:24,
>                  from ./include/drm-backport/linux/mm.h:12,
>                  from ./include/linux/kallsyms.h:12,
>                  from
> /root/lkrg-0.8.1/src/modules/ksyms/../../p_lkrg_main.h:27,
>                  from
> /root/lkrg-0.8.1/src/modules/ksyms/p_resolve_ksym.c:19:
> ./include/linux/stacktrace.h:29:8: note: originally defined here
>  struct stack_trace {
>         ^~~~~~~~~~~
> make[2]: *** [scripts/Makefile.build:312:
> /root/lkrg-0.8.1/src/modules/ksyms/p_resolve_ksym.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> In file included from
> /root/lkrg-0.8.1/src/modules/hashing/../../p_lkrg_main.h:232,
>                  from
> /root/lkrg-0.8.1/src/modules/hashing/p_lkrg_fast_hash.c:22:
> /root/lkrg-0.8.1/src/modules/hashing/../../modules/exploit_detection/p_exploit_detection.h:152:8:
> error: redefinition of ‘struct stack_trace’
>  struct stack_trace {
>         ^~~~~~~~~~~
> In file included from ./include/linux/page_ext.h:6,
>                  from ./include/linux/mm.h:24,
>                  from ./include/drm-backport/linux/mm.h:12,
>                  from ./include/linux/kallsyms.h:12,
>                  from
> /root/lkrg-0.8.1/src/modules/hashing/../../p_lkrg_main.h:27,
>                  from
> /root/lkrg-0.8.1/src/modules/hashing/p_lkrg_fast_hash.c:22:
> ./include/linux/stacktrace.h:29:8: note: originally defined here
>  struct stack_trace {
>         ^~~~~~~~~~~
> make[2]: *** [scripts/Makefile.build:312:
> /root/lkrg-0.8.1/src/modules/hashing/p_lkrg_fast_hash.o] Error 1
> In file included from
> /root/lkrg-0.8.1/src/modules/integrity_timer/../../p_lkrg_main.h:232,
>                  from
> /root/lkrg-0.8.1/src/modules/integrity_timer/p_integrity_timer.c:18:
> /root/lkrg-0.8.1/src/modules/integrity_timer/../../modules/exploit_detection/p_exploit_detection.h:152:8:
> error: redefinition of ‘struct stack_trace’
>  struct stack_trace {
>         ^~~~~~~~~~~
> In file included from ./include/linux/page_ext.h:6,
>                  from ./include/linux/mm.h:24,
>                  from ./include/drm-backport/linux/mm.h:12,
>                  from ./include/linux/kallsyms.h:12,
>                  from
> /root/lkrg-0.8.1/src/modules/integrity_timer/../../p_lkrg_main.h:27,
>                  from
> /root/lkrg-0.8.1/src/modules/integrity_timer/p_integrity_timer.c:18:
> ./include/linux/stacktrace.h:29:8: note: originally defined here
>  struct stack_trace {
>         ^~~~~~~~~~~
> In file included from
> /root/lkrg-0.8.1/src/modules/comm_channel/../../p_lkrg_main.h:232,
>                  from
> /root/lkrg-0.8.1/src/modules/comm_channel/p_comm_channel.c:18:
> /root/lkrg-0.8.1/src/modules/comm_channel/../../modules/exploit_detection/p_exploit_detection.h:152:8:
> error: redefinition of ‘struct stack_trace’
>  struct stack_trace {
>         ^~~~~~~~~~~
> In file included from ./include/linux/page_ext.h:6,
>                  from ./include/linux/mm.h:24,
>                  from ./include/drm-backport/linux/mm.h:12,
>                  from ./include/linux/kallsyms.h:12,
>                  from
> /root/lkrg-0.8.1/src/modules/comm_channel/../../p_lkrg_main.h:27,
>                  from
> /root/lkrg-0.8.1/src/modules/comm_channel/p_comm_channel.c:18:
> ./include/linux/stacktrace.h:29:8: note: originally defined here
>  struct stack_trace {
>         ^~~~~~~~~~~
> In file included from
> /root/lkrg-0.8.1/src/modules/kmod/../../p_lkrg_main.h:232,
>                  from /root/lkrg-0.8.1/src/modules/kmod/p_kmod.c:22:
> /root/lkrg-0.8.1/src/modules/kmod/../../modules/exploit_detection/p_exploit_detection.h:152:8:
> error: redefinition of ‘struct stack_trace’
>  struct stack_trace {
>         ^~~~~~~~~~~
> In file included from ./include/linux/page_ext.h:6,
>                  from ./include/linux/mm.h:24,
>                  from ./include/drm-backport/linux/mm.h:12,
>                  from ./include/linux/kallsyms.h:12,
>                  from
> /root/lkrg-0.8.1/src/modules/kmod/../../p_lkrg_main.h:27,
>                  from /root/lkrg-0.8.1/src/modules/kmod/p_kmod.c:22:
> ./include/linux/stacktrace.h:29:8: note: originally defined here
>  struct stack_trace {
>         ^~~~~~~~~~~
> In file included from
> /root/lkrg-0.8.1/src/modules/database/../../p_lkrg_main.h:232,
>                  from /root/lkrg-0.8.1/src/modules/database/CPU.c:44:
> /root/lkrg-0.8.1/src/modules/database/../../modules/exploit_detection/p_exploit_detection.h:152:8:
> error: redefinition of ‘struct stack_trace’
>  struct stack_trace {
>         ^~~~~~~~~~~
> In file included from ./include/linux/page_ext.h:6,
>                  from ./include/linux/mm.h:24,
>                  from ./include/drm-backport/linux/mm.h:12,
>                  from ./include/linux/kallsyms.h:12,
>                  from
> /root/lkrg-0.8.1/src/modules/database/../../p_lkrg_main.h:27,
>                  from /root/lkrg-0.8.1/src/modules/database/CPU.c:44:
> ./include/linux/stacktrace.h:29:8: note: originally defined here
>  struct stack_trace {
>         ^~~~~~~~~~~
> make[2]: *** [scripts/Makefile.build:312:
> /root/lkrg-0.8.1/src/modules/kmod/p_kmod.o] Error 1
> make[2]: *** [scripts/Makefile.build:312:
> /root/lkrg-0.8.1/src/modules/database/CPU.o] Error 1
> In file included from
> /root/lkrg-0.8.1/src/modules/database/arch/x86/../../../../p_lkrg_main.h:232,
>                  from
> /root/lkrg-0.8.1/src/modules/database/arch/x86/p_x86_metadata.c:29:
> /root/lkrg-0.8.1/src/modules/database/arch/x86/../../../../modules/exploit_detection/p_exploit_detection.h:152:8:
> error: redefinition of ‘struct stack_trace’
>  struct stack_trace {
>         ^~~~~~~~~~~
> In file included from ./include/linux/page_ext.h:6,
>                  from ./include/linux/mm.h:24,
>                  from ./include/drm-backport/linux/mm.h:12,
>                  from ./include/linux/kallsyms.h:12,
>                  from
> /root/lkrg-0.8.1/src/modules/database/arch/x86/../../../../p_lkrg_main.h:27,
>                  from
> /root/lkrg-0.8.1/src/modules/database/arch/x86/p_x86_metadata.c:29:
> ./include/linux/stacktrace.h:29:8: note: originally defined here
>  struct stack_trace {
>         ^~~~~~~~~~~
> make[2]: *** [scripts/Makefile.build:312:
> /root/lkrg-0.8.1/src/modules/comm_channel/p_comm_channel.o] Error 1
> make[2]: *** [scripts/Makefile.build:312:
> /root/lkrg-0.8.1/src/modules/database/arch/x86/p_x86_metadata.o] Error 1
> In file included from
> /root/lkrg-0.8.1/src/modules/database/arch/x86/p_switch_idt/../../../../../p_lkrg_main.h:232,
>                  from
> /root/lkrg-0.8.1/src/modules/database/arch/x86/p_switch_idt/p_switch_idt.c:24:
> /root/lkrg-0.8.1/src/modules/database/arch/x86/p_switch_idt/../../../../../modules/exploit_detection/p_exploit_detection.h:152:8:
> error: redefinition of ‘struct stack_trace’
>  struct stack_trace {
>         ^~~~~~~~~~~
> In file included from ./include/linux/page_ext.h:6,
>                  from ./include/linux/mm.h:24,
>                  from ./include/drm-backport/linux/mm.h:12,
>                  from ./include/linux/kallsyms.h:12,
>                  from
> /root/lkrg-0.8.1/src/modules/database/arch/x86/p_switch_idt/../../../../../p_lkrg_main.h:27,
>                  from
> /root/lkrg-0.8.1/src/modules/database/arch/x86/p_switch_idt/p_switch_idt.c:24:
> ./include/linux/stacktrace.h:29:8: note: originally defined here
>  struct stack_trace {
>         ^~~~~~~~~~~
> make[2]: *** [scripts/Makefile.build:312:
> /root/lkrg-0.8.1/src/modules/database/arch/x86/p_switch_idt/p_switch_idt.o]
> Error 1
> make[2]: *** [scripts/Makefile.build:312:
> /root/lkrg-0.8.1/src/modules/integrity_timer/p_integrity_timer.o] Error 1
> make[1]: *** [Makefile:1545: _module_/root/lkrg-0.8.1] Error 2
> make[1]: Leaving directory '/usr/src/kernels/4.18.0-193.6.3.el8_2.x86_64'
> make: *** [Makefile:98: all] Error 2

-- 
pi3 (pi3ki31ny) - pi3 (at) itsec pl
http://pi3.com.pl

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.