[CRIU] Compile errors with 4.18 kernels

Radostin Stoyanov rstoyanov1 at gmail.com
Thu Jun 14 22:15:21 MSK 2018


On 14/06/18 20:11, Radostin Stoyanov wrote:
> Hi Adrian,
>
> I saw similar errors for the test on fedora rawhidein
>      https://travis-ci.org/criupatchwork/criu/jobs/392132369#L2281
>
> In file included from /usr/include/asm/signal.h:26,
> from /usr/include/linux/signal.h:5,
> from /usr/include/linux/aio_abi.h:32,
> from criu/include/aio.h:4,
> from criu/pie/parasite.c:22:
> /usr/include/asm-generic/signal.h:92:3: error: conflicting types for
> 'sigset_t'
> } sigset_t;
> ^~~~~~~~
>
> I think this issue can be fixed with:
>
diff --git a/criu/pie/parasite.c b/criu/pie/parasite.c
index b9dae3f9..5f3bed96 100644
--- a/criu/pie/parasite.c
+++ b/criu/pie/parasite.c
@@ -1,6 +1,5 @@
 #include <sys/mman.h>
 #include <errno.h>
-#include <signal.h>
 #include <linux/limits.h>
 #include <linux/capability.h>
 #include <sys/mount.h>

(send the wrong diff in previous email)
>  
>  
> Kind regards,
> Radostin
>
> On 14/06/18 19:20, Adrian Reber wrote:
>> As I see it also in travis (https://api.travis-ci.org/v3/job/392077603/log.txt)
>> I guess it is known that currently compilation fails on early 4.18
>> kernels.
>>
>>   CC       criu/pie/parasite.o
>> In file included from /usr/include/asm/signal.h:7,
>>                  from /usr/include/linux/signal.h:5,
>>                  from /usr/include/linux/aio_abi.h:32,
>>                  from criu/include/aio.h:4,
>>                  from criu/pie/parasite.c:22:
>> /usr/include/linux/time.h:10:8: error: redefinition of ‘struct timespec’
>>
>> (and more)
>>
>> Is this a bug in the kernel or does it need a fix in CRIU? Just curious
>> if somebody is looking into it?
>>
>> 		Adrian
>> _______________________________________________
>> CRIU mailing list
>> CRIU at openvz.org
>> https://lists.openvz.org/mailman/listinfo/criu
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20180614/688815bf/attachment.html>


More information about the CRIU mailing list