NetBSD-Bugs archive

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

kern/37909: netbsd-4 ticket #1039 breaks non-ipv6 kernel builds



>Number:         37909
>Category:       kern
>Synopsis:       netbsd-4 ticket #1039 breaks non-ipv6 kernel builds
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 29 17:10:00 +0000 2008
>Originator:     Hauke Fath <hf%spg.tu-darmstadt.de@localhost>
>Release:        NetBSD 4.0_STABLE
>Organization:
        
>Environment:
        
        
System: NetBSD Hochstuhl 4.0_STABLE NetBSD 4.0_STABLE (HOCHSTUHL) #0: Tue Dec 
18 18:47:03 CET 2007 
hf@Hochstuhl:/var/obj/netbsd-builds/4/i386/sys/arch/i386/compile/HOCHSTUHL i386
Architecture: i386
Machine: i386
>Description:

        After the recent pull-up of netbsd-4 ticket #1039,
        tcp_usrreq.c does not build for a netbsd-4 kernel configured
        without ipv6:

#   compile  PIZZA/tcp_usrreq.o
/u/netbsd-builds/4/sparc/tools/bin/sparc--netbsdelf-gcc -mno-fpu -ffreestanding 
-fno-zero-initialized-in-bss -mcpu=supersparc -O2 -pipe -Werror -Wall -
Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes 
-Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings 
-Wno-sign-compa
re -Wno-pointer-sign -Wno-attributes -fno-strict-aliasing -I. 
-I/public/netbsd-4/sys/../common/include -I/public/netbsd-4/sys/arch 
-I/public/netbsd-4/s
ys -nostdinc -DMAXDSIZ=(1024*1024*1024) -DNVNODE=40960 
-D__CPU_SIMPLE_LOCK_NOINLINE -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT 
-I/public/netbsd-4/sys/lib/li
bkern/../../../common/lib/libc/quad 
-I/public/netbsd-4/sys/lib/libkern/../../../common/lib/libc/string -I/public/net
bsd-4/sys/lib/libkern/../../../common/lib/libc/arch/sparc/string 
-I/public/netbsd-4/sys/dist/ipf -c /public/netbsd-4/sys/netinet/tcp_usrreq.c
cc1: warnings being treated as errors
/public/netbsd-4/sys/netinet/tcp_usrreq.c: In function 'inet6_ident_core':
/public/netbsd-4/sys/netinet/tcp_usrreq.c:1162: warning: implicit declaration 
of function 'in6_pcblookup_connect'
/public/netbsd-4/sys/netinet/tcp_usrreq.c:1162: warning: assignment makes 
pointer from integer without a cast
/public/netbsd-4/sys/netinet/tcp_usrreq.c:1164: error: dereferencing pointer to 
incomplete type
/public/netbsd-4/sys/netinet/tcp_usrreq.c:1170: warning: implicit declaration 
of function 'in6totcpcb'
/public/netbsd-4/sys/netinet/tcp_usrreq.c:1170: warning: assignment makes 
pointer from integer without a cast
/public/netbsd-4/sys/netinet/tcp_usrreq.c:1171: error: dereferencing pointer to 
incomplete type
/public/netbsd-4/sys/netinet/tcp_usrreq.c:1174: error: dereferencing pointer to 
incomplete type
*** [tcp_usrreq.o] Error code 1

>How-To-Repeat:
        Configure and build a kernel without ipv6 on netbsd-4 branch.

>Fix:
        Add the missing #ifdef INET6 ... #endif incantations, please.

>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index