Date: Sun, 2 Jan 2011 21:48:04 GMT From: Rikiya YONEMOTO <fbsd-send-pr-201101@lackaday.org> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/153640: kernel: COMPAT_FREEBSD[456] depend on COMPAT_FREEBSD7 Message-ID: <201101022148.p02Lm4VP043417@red.freebsd.org> Resent-Message-ID: <201101022150.p02Lo8Hs048159@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101022148.p02Lm4VP043417>