Skip to content

redefinition of struct in6_addr error on compiling clickos #7

@M3hd1R

Description

@M3hd1R

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions