From owner-freebsd-current@FreeBSD.ORG Tue Oct 18 08:08:18 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E21F516A420 for ; Tue, 18 Oct 2005 08:08:17 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CD1E43D4C for ; Tue, 18 Oct 2005 08:08:12 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.3/8.13.3) with ESMTP id j9I887DG094535; Tue, 18 Oct 2005 12:08:07 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.3/8.13.3/Submit) id j9I887Xc094534; Tue, 18 Oct 2005 12:08:07 +0400 (MSD) (envelope-from yar) Date: Tue, 18 Oct 2005 12:08:07 +0400 From: Yar Tikhiy To: Adam Gregoire Message-ID: <20051018080806.GB93560@comp.chem.msu.su> References: <1129613711.65622.6.camel@S0106c0ffeec0ffee.su.shawcable.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1129613711.65622.6.camel@S0106c0ffeec0ffee.su.shawcable.net> User-Agent: Mutt/1.5.9i Cc: freebsd-current@freebsd.org Subject: Re: kernel build failure. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 08:08:18 -0000 On Tue, Oct 18, 2005 at 01:35:11AM -0400, Adam Gregoire wrote: > For the past few days I've been getting a build failure. > > ===> if_gif (all) > cc -O2 -pipe -march=athlon64 -fno-strict-aliasing -Werror -D_KERNEL > -DKLD_MODULE -nostdinc -I- -DHAVE_KERNEL_OPTION_HEADERS > -include /usr/obj/usr/src/sys/OPTMZD/opt_global.h -I. -I@ > -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -g > -fno-omit-frame-pointer -I/usr/obj/usr/src/sys/OPTMZD -mcmodel=kernel > -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow > -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual > -fformat-extensions -std=c99 > -c /usr/src/sys/modules/if_gif/../../net/if_gif.c > cc -O2 -pipe -march=athlon64 -fno-strict-aliasing -Werror -D_KERNEL > -DKLD_MODULE -nostdinc -I- -DHAVE_KERNEL_OPTION_HEADERS > -include /usr/obj/usr/src/sys/OPTMZD/opt_global.h -I. -I@ > -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -g > -fno-omit-frame-pointer -I/usr/obj/usr/src/sys/OPTMZD -mcmodel=kernel > -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow > -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual > -fformat-extensions -std=c99 > -c /usr/src/sys/modules/if_gif/../../netinet/in_gif.c > cc -O2 -pipe -march=athlon64 -fno-strict-aliasing -Werror -D_KERNEL > -DKLD_MODULE -nostdinc -I- -DHAVE_KERNEL_OPTION_HEADERS > -include /usr/obj/usr/src/sys/OPTMZD/opt_global.h -I. -I@ > -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -g > -fno-omit-frame-pointer -I/usr/obj/usr/src/sys/OPTMZD -mcmodel=kernel > -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow > -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual > -fformat-extensions -std=c99 > -c /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c > cc -c -O2 -pipe -fno-strict-aliasing -march=athlon64 -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual > -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/usr/src/sys > -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel > -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow > -msoft-float -fno-asynchronous-unwind-tables -ffreestanding > -Werror /usr/src/sys/ufs/ufs/ufs_acl.c > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:79: error: > `in6_gif_input' undeclared here (not in a function) > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:79: error: > initializer element is not constant > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:79: error: (near > initialization for `in6_gif_protosw.pr_input') > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:79: error: > `rip6_output' undeclared here (not in a function) > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:79: error: > initializer element is not constant > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:79: error: (near > initialization for `in6_gif_protosw.pr_output') > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:79: error: > `rip6_ctloutput' undeclared here (not in a function) > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:79: error: > initializer element is not constant > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:79: error: (near > initialization for `in6_gif_protosw.pr_ctloutput') > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:83: error: > `rip6_usrreqs' undeclared here (not in a function) > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:83: error: > initializer element is not constant > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:83: error: (near > initialization for `in6_gif_protosw.pr_usrreqs') > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:87: warning: > function declaration isn't a prototype > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c: In function > `in6_gif_output': > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:92: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:148: error: invalid > application of `sizeof' to incomplete type `ip6_hdr' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:149: error: invalid > application of `sizeof' to incomplete type `ip6_hdr' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:150: error: invalid > application of `sizeof' to incomplete type `ip6_hdr' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:157: error: > dereferencing pointer to incomplete type > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:158: error: > dereferencing pointer to incomplete type > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:158: error: > `IPV6_VERSION_MASK' undeclared (first use in this function) > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:158: error: (Each > undeclared identifier is reported only once > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:158: error: for > each function it appears in.) > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:159: error: > dereferencing pointer to incomplete type > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:159: error: > `IPV6_VERSION' undeclared (first use in this function) > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:160: error: > dereferencing pointer to incomplete type > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:161: error: > dereferencing pointer to incomplete type > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:162: error: > dereferencing pointer to incomplete type > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:162: error: > `ip6_gif_hlim' undeclared (first use in this function) > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:163: error: > dereferencing pointer to incomplete type > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:166: error: > dereferencing pointer to incomplete type > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:173: error: > dereferencing pointer to incomplete type > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:174: error: > dereferencing pointer to incomplete type > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:183: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:184: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:184: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:184: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:184: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:184: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:184: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:185: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:192: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:193: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:194: error: > structure has no member named `gif_ro6' > cc -c -O2 -pipe -fno-strict-aliasing -march=athlon64 -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual > -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/usr/src/sys > -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel > -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow > -msoft-float -fno-asynchronous-unwind-tables -ffreestanding > -Werror /usr/src/sys/ufs/ufs/ufs_bmap.c > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:218: warning: > implicit declaration of function `ip6_output' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:218: warning: > nested extern declaration of `ip6_output' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:218: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:222: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:223: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:223: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:223: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:223: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:223: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:223: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:224: error: > structure has no member named `gif_ro6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c: At top level: > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:232: warning: > function declaration isn't a prototype > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c: In function > `in6_gif_input': > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:247: error: > `ip6stat' undeclared (first use in this function) > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:258: error: > dereferencing pointer to incomplete type > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c: In function > `gif_validate6': > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:333: error: > dereferencing pointer to incomplete type > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:334: error: > dereferencing pointer to incomplete type > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:347: error: > dereferencing pointer to incomplete type > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c: At top level: > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:374: warning: > function declaration isn't a prototype > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c: In function > `gif_encapcheck6': > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:379: error: storage > size of 'ip6' isn't known > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:379: warning: > unused variable `ip6' > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c: At top level: > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:395: warning: > function declaration isn't a prototype > /usr/src/sys/modules/if_gif/../../netinet6/in6_gif.c:406: warning: > function declaration isn't a prototype > *** Error code 1 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > > > Same thing from sources checked out today and a few days ago, any > suggestions? You are building modules with the kernel, and there is no INET6 in your kernel config file, right? If so, it is a problem uncovered in our module build system by my recent changes to it. I've just temporarily disabled the changes for if_gif so that it can build w/o INET6 in the kernel config for now, but the resulting module will be unusable with the IPv6-disabled kernel, as it were before. I'm afraid that the build error will persist after updating the kernel sources until you clean at least the module's build directory. If you're using "make buildkernel" in /usr/src, then just don't enable NO_CLEAN nor NO_KERNELCLEAN during the next kernel build. -- Yar