Skip to content

Basilisk II fails to build with TUN/TAP support on CentOS 7 #153

@dcoshea

Description

@dcoshea

With 1c9b21f on CentOS 7, configure reports:

checking whether TUN/TAP is supported... no

config.log shows:

configure:15995: checking whether TUN/TAP is supported
configure:16025: gcc -c -g -O2  conftest.c >&5
In file included from conftest.c:94:0:
/usr/include/linux/if.h:211:19: error: field 'ifru_addr' has incomplete type
   struct sockaddr ifru_addr;
                   ^
/usr/include/linux/if.h:212:19: error: field 'ifru_dstaddr' has incomplete type
   struct sockaddr ifru_dstaddr;
                   ^
/usr/include/linux/if.h:213:19: error: field 'ifru_broadaddr' has incomplete type
   struct sockaddr ifru_broadaddr;
                   ^
/usr/include/linux/if.h:214:19: error: field 'ifru_netmask' has incomplete type
   struct sockaddr ifru_netmask;
                   ^
/usr/include/linux/if.h:215:20: error: field 'ifru_hwaddr' has incomplete type
   struct  sockaddr ifru_hwaddr;

It appears that sys/socket.h must be included for struct sockaddr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions