NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/45907: new ipf.c fails to build without "options INET6"

>Number:         45907
>Category:       kern
>Synopsis:       new ipf.c fails to build without "options INET6"
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 01 13:35:00 +0000 2012
>Originator:     Havard Eidnes
>Release:        NetBSD-current as of January 31 2012
System: build host: NetBSD 5.0_STABLE NetBSD 5.0_STABLE (MT) 
#1: Mon Nov 16 16:24:52 CET 2009 amd64
Architecture: x86_64
Machine: amd64
        The new ipfilter's fil.c fails to build with kernel configs
        which don't contain "options INET6".

        An example is the evbmips ALCHEMY configuration, where the build
        aborts with:

    compile  ALCHEMY/fil.o
/u/build/HEAD/src/sys/dist/ipf/netinet/fil.c: In function 
/u/build/HEAD/src/sys/dist/ipf/netinet/fil.c:9658:54: error: 'i6addr_t' has no 
member named 'in6'

        Code inspection shows that ip_fil.h defined the i6addr_t union
        differently depending on whether USE_INET6 is defined or not, where the
        non-USE_INET6 branch doesn't declare the in6 member, which causes
        the above build failure.

        According to ip_compat.h, USE_INET6 is only defined in the kernel if
        INET6 is defined.

        Try to build a kernel with IPF but without INET6, watch it fail.
        I suspect some more ifdef'ing on USE_INET6 is required.

Home | Main Index | Thread Index | Old Index