[CRIU] redefinition of tcp_repar_opt struct

Vasily Averin vvs at parallels.com
Fri Apr 26 09:50:36 EDT 2013


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?

thank you,
	Vasily Averin


More information about the CRIU mailing list