• Andrei Vagin's avatar
    aarch64: copy the sigcontext structure from the kernel headers · d0a8aa74
    Andrei Vagin authored
    Its declaration was changed in glibc headers and we don't want
    to handle two version of itю
    
    In file included from compel/include/uapi/compel/infect.h:6:0,
                     from compel/include/uapi/compel/compel.h:12,
                     from compel/include/log.h:4,
                     from compel/arch/aarch64/src/lib/infect.c:8:
    compel/arch/aarch64/src/lib/infect.c: In function 'sigreturn_prep_regs_plain':
    compel/include/uapi/compel/asm/sigframe.h:47:99: error: 'mcontext_t {aka struct <anonymous>}' has no member named '__reserved'; did you mean '__glibc_reserved1'?
     #define RT_SIGFRAME_AUX_CONTEXT(rt_sigframe) ((struct aux_context*)&(rt_sigframe)->uc.uc_mcontext.__reserved)
                                                                                                       ^
    compel/include/uapi/compel/asm/sigframe.h:48:41: note: in expansion of macro 'RT_SIGFRAME_AUX_CONTEXT'
     #define RT_SIGFRAME_FPU(rt_sigframe)  (&RT_SIGFRAME_AUX_CONTEXT(rt_sigframe)->fpsimd)
                                             ^~~~~~~~~~~~~~~~~~~~~~~
    compel/arch/aarch64/src/lib/infect.c:34:34: note: in expansion of macro 'RT_SIGFRAME_FPU'
      struct fpsimd_context *fpsimd = RT_SIGFRAME_FPU(sigframe);
                                      ^~~~~~~~~~~~~~~
    make[1]: *** [/builddir/build/BUILD/criu-3.5/scripts/nmk/scripts/build.mk:209: compel/arch/aarch64/src/lib/infect.o] Error 1
    make: *** [Makefile.compel:36: compel/libcompel.a] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.IExY9K (%build)
    
    This seems to be related to the following glibc changes:
    
    https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=4fa9b3bfe6759c82beb4b043a54a3598ca467289Reported-by: 's avatarAdrian Reber <adrian@lisas.de>
    Tested-by: 's avatarAdrian Reber <adrian@lisas.de>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    d0a8aa74
Name
Last commit
Last update
..
aarch64 Loading commit data...
arm Loading commit data...
ppc64 Loading commit data...
s390 Loading commit data...
x86 Loading commit data...