From owner-freebsd-bugs@FreeBSD.ORG Sun Jan 2 21:50:08 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EC70106564A for ; Sun, 2 Jan 2011 21:50:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 515A38FC18 for ; Sun, 2 Jan 2011 21:50:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p02Lo8Mm048160 for ; Sun, 2 Jan 2011 21:50:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p02Lo8Hs048159; Sun, 2 Jan 2011 21:50:08 GMT (envelope-from gnats) Resent-Date: Sun, 2 Jan 2011 21:50:08 GMT Resent-Message-Id: <201101022150.p02Lo8Hs048159@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rikiya YONEMOTO Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8E7F106566C for ; Sun, 2 Jan 2011 21:48:04 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id B7FA88FC0A for ; Sun, 2 Jan 2011 21:48:04 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p02Lm48K043418 for ; Sun, 2 Jan 2011 21:48:04 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p02Lm4VP043417; Sun, 2 Jan 2011 21:48:04 GMT (envelope-from nobody) Message-Id: <201101022148.p02Lm4VP043417@red.freebsd.org> Date: Sun, 2 Jan 2011 21:48:04 GMT From: Rikiya YONEMOTO To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/153640: kernel: COMPAT_FREEBSD[456] depend on COMPAT_FREEBSD7 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2011 21:50:08 -0000 >Number: 153640 >Category: kern >Synopsis: kernel: COMPAT_FREEBSD[456] depend on COMPAT_FREEBSD7 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jan 02 21:50:07 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Rikiya YONEMOTO >Release: 8.2-RC1 >Organization: >Environment: FreeBSD fbsdsendpr.lackaday.org 8.2-RC1 FreeBSD 8.2-RC1 #0: Fri Dec 31 02:44:56 JST 2010 builder@fbsdsendpr.lackaday.org:/usr/src/sys/i386/compile/GENERIC i386 >Description: The kernel options COMPAT_FREEBSD[456] depend on COMPAT_FREEBSD7 in different from natural understanding. I think they should be independent each other. Additional infomation of verifying build-failure: fbsdsendpr# uname -a FreeBSD fbsdsendpr.lackaday.org 8.2-RC1 FreeBSD 8.2-RC1 #0: Fri Dec 31 02:44:56 JST 2010 builder@fbsdsendpr.lackaday.org:/usr/src/sys/i386/compile/GENERIC i386 fbsdsendpr# fbsdsendpr# cd /usr/src/sys/i386/conf fbsdsendpr# diff -u GENERIC TEST --- GENERIC 2010-12-22 02:09:25.000000000 +0900 +++ TEST 2010-12-31 02:58:59.000000000 +0900 @@ -59,7 +59,7 @@ options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options COMPAT_FREEBSD6 # Compatible with FreeBSD6 -options COMPAT_FREEBSD7 # Compatible with FreeBSD7 +#options COMPAT_FREEBSD7 # Compatible with FreeBSD7 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options STACK # stack(9) support fbsdsendpr# fbsdsendpr# config TEST Kernel build directory is ../compile/TEST Don't forget to do ``make cleandepend && make depend'' fbsdsendpr# cd ../compile/TEST fbsdsendpr# make cleandepend && make depend (snip output) fbsdsendpr# fbsdsendpr# make (snip OK files) cc -c -pipe -O -march=pentium-m -mtune=pentium-m -momit-leaf-frame-pointer -fno-strict-aliasing -fno-force-addr -fno-unroll-all-loops -fno-unroll-loops -fno-delayed-branch -fno-schedule-insns -fno-schedule-insns2 -fthread-jumps -fstrength-reduce -frerun-cse-after-loop -frerun-loop-opt -fgcse -fexpensive-optimizations -foptimize-register-move -fregmove -frename-registers -freorder-blocks -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I../../.. -I../../../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 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -Werror ../../../kern/sysv_msg.c ./../../kern/sysv_msg.c:163: error: invalid application of 'sizeof' to incomplete type 'struct freebsd7_msgctl_args' ./../../kern/sysv_msg.c:163: error: 'freebsd7_msgctl' undeclared here (not in a function) ./../../kern/sysv_msg.c:1463: error: initializer element is not constant ./../../kern/sysv_msg.c:1463: error: (near initialization for 'msgcalls[0]') cc1: warnings being treated as errors ./../../kern/sysv_msg.c:1507: warning: function declaration isn't a prototype ./../../kern/sysv_msg.c: In function 'freebsd7_msgctl': ./../../kern/sysv_msg.c:1516: error: dereferencing pointer to incomplete type ./../../kern/sysv_msg.c:1516: error: request for member 'cmd' in something not a structure or union ./../../kern/sysv_msg.c:1516: warning: comparison between pointer and integer ./../../kern/sysv_msg.c:1517: error: dereferencing pointer to incomplete type ./../../kern/sysv_msg.c:1517: error: request for member 'buf' in something not a structure or union ./../../kern/sysv_msg.c:1532: error: dereferencing pointer to incomplete type ./../../kern/sysv_msg.c:1532: error: request for member 'msqid' in something not a structure or union ./../../kern/sysv_msg.c:1532: error: dereferencing pointer to incomplete type ./../../kern/sysv_msg.c:1532: error: request for member 'cmd' in something not a structure or union ./../../kern/sysv_msg.c:1532: warning: passing argument 2 of 'kern_msgctl' makes integer from pointer without a cast ./../../kern/sysv_msg.c:1532: warning: passing argument 3 of 'kern_msgctl' makes integer from pointer without a cast ./../../kern/sysv_msg.c:1535: error: dereferencing pointer to incomplete type ./../../kern/sysv_msg.c:1535: error: request for member 'cmd' in something not a structure or union ./../../kern/sysv_msg.c:1535: warning: comparison between pointer and integer ./../../kern/sysv_msg.c:1548: error: dereferencing pointer to incomplete type ./../../kern/sysv_msg.c:1548: error: request for member 'buf' in something not a structure or union *** Error code 1 Stop in /usr/src/sys/i386/compile/TEST. fbsdsendpr# >How-To-Repeat: Copy GENERIC kernel config and comment out "options COMPAT_FREEBSD7" line, then try to build a kernel with the config file. See the above "Full Description". >Fix: >Release-Note: >Audit-Trail: >Unformatted: