[CRIU] redefinition of tcp_repar_opt struct

Cyrill Gorcunov gorcunov at openvz.org
Fri Apr 26 10:05:45 EDT 2013


On Fri, Apr 26, 2013 at 05:50:36PM +0400, Vasily Averin wrote:
> 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?

I guess there are at least 2 ways

 1) Start using own .config file thus testing system headers for
    structure and definitions at compile time (which I know Pavel
    is not a big fan of)

 2) Define own structure/enums which won't intersect with system
    headers. This will fix the problem but I personally like 1)
    more.

Pavel?


More information about the CRIU mailing list