toolchain icon indicating copy to clipboard operation
toolchain copied to clipboard

redefinition of struct in6_addr error on compiling clickos

Open M3hd1R opened this issue 4 years ago • 0 comments

Hi I want to compile clickos. I do this with the following command and environment variables:

./configure --enable-minios --with-xen=$XEN_ROOT make minios export MINIOS_ROOT=pwd/mini-os export XEN_ROOT=/root/xen/ export NEWLIB_ROOT=pwd/toolchain/x86_64-root/x86_64-xen-elf export LWIP_ROOT=pwd/toolchain/x86_64-root/x86_64-xen-elf

and when I first do it I get the following error: can not find xenstore.h: no such a file or directory In order to resolve above error I checkout to 'stable-4.1' branch of xen project, and run compile commands again then my error changes to the following error:

In file included from /root/mini-os/include/posix/netinet/in.h:7, from /root/clickos/include/click/glue.hh:71, from /root/clickos/include/click/hashcontainer.hh:3, from /root/clickos/include/click/hashtable.hh:20, from /root/clickos/include/click/lexer.hh:4, from /root/clickos/minios/click.cc:42: /root/mini-os/include/posix/netinet/in6.h:91:8: error: redefinition of 'struct in6_addr' struct in6_addr {

how cat I resolve this problem? thanks

M3hd1R avatar Apr 19 '21 13:04 M3hd1R