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
>Organization:
        None
>Environment:
System: build host: NetBSD mt.urc.uninett.no 5.0_STABLE NetBSD 5.0_STABLE (MT) 
#1: Mon Nov 16 16:24:52 CET 2009 
he%mt.urc.uninett.no@localhost:/usr/obj/sys/arch/amd64/compile/MT amd64
Architecture: x86_64
Machine: amd64
>Description:
        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 
'ipf_ht_node_make_key':
/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.

>How-To-Repeat:
        Try to build a kernel with IPF but without INET6, watch it fail.
>Fix:
        I suspect some more ifdef'ing on USE_INET6 is required.



Home | Main Index | Thread Index | Old Index