[CRIU] redefinition of tcp_repar_opt struct

Pavel Emelyanov xemul at parallels.com
Tue Apr 30 09:59:42 EDT 2013


On 04/26/2013 05:50 PM, Vasily Averin wrote:
> Dear all,
> 
> compilation fails in Ubuntu 13.04 
> 
> sk-tcp.c:25:8: error: redefinition of \u2018struct tcp_repair_opt\u2019
> In file included from sk-tcp.c:1:0:
> /usr/include/netinet/tcp.h:256:8: note: originally defined here
> sk-tcp.c:31:2: error: redeclaration of enumerator \u2018TCP_NO_QUEUE\u2019
> In file included from sk-tcp.c:1:0:
> /usr/include/netinet/tcp.h:265:3: note: previous definition of \u2018TCP_NO_QUEUE\u2019 was here
> sk-tcp.c:32:2: error: redeclaration of enumerator \u2018TCP_RECV_QUEUE\u2019
> In file included from sk-tcp.c:1:0:
> /usr/include/netinet/tcp.h:266:3: note: previous definition of \u2018TCP_RECV_QUEUE\u2019 was here
> sk-tcp.c:33:2: error: redeclaration of enumerator \u2018TCP_SEND_QUEUE\u2019
> In file included from sk-tcp.c:1:0:
> /usr/include/netinet/tcp.h:267:3: note: previous definition of \u2018TCP_SEND_QUEUE\u2019 was here
> sk-tcp.c:34:2: error: redeclaration of enumerator \u2018TCP_QUEUES_NR\u2019
> In file included from sk-tcp.c:1:0:
> /usr/include/netinet/tcp.h:268:3: note: previous definition of \u2018TCP_QUEUES_NR\u2019 was here
> make[2]: *** [sk-tcp.o] Error 1
> make[1]: *** [built-in.o] Error 2
> 
> could anybody advise how to fix it correctly?

The easiest fix is to place the whole stuff under #ifdef that appeared in
this ubuntu. Complex fix (not for v0.5) is to use the autoconf and co.

> thank you,
> 	Vasily Averin
> .
> 




More information about the CRIU mailing list