Bug 134870 - freebsd-6.1 kernel fails to compile with gcc-4.1.1
Bug#: 134870 Product:  Gentoo/Alt Version: unspecified Platform: All
OS/Version: FreeBSD Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: bsd@gentoo.org Reported By: arachnist@gmail.com
Component: FreeBSD
URL: 
Summary: freebsd-6.1 kernel fails to compile with gcc-4.1.1
Keywords:  
Status Whiteboard: 
Opened: 2006-05-29 23:22 0000
Description:   Opened: 2006-05-29 23:22 0000
freebsd-6.1 kernel fails to compile with gcc-4.1.1, here's the error msg:

gcc -c -O2 -pipe -fno-strict-aliasing  -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual 
-std=c99  -nostdinc -I-  -I. -I../../.. -I../../../contrib/altq
-I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath
-I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa
-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  -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow
-mno-sse -mno-sse2 -ffreestanding -fno-stack-protector -Wno-error 
../../../kern/kern_sysctl.c
cc1: note: obsolete option -I- used, please use -iquote instead
gcc -c -O2 -pipe -fno-strict-aliasing  -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual 
-std=c99  -nostdinc -I-  -I. -I../../.. -I../../../contrib/altq
-I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath
-I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -I../../../dev/twa
-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  -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow
-mno-sse -mno-sse2 -ffreestanding -fno-stack-protector -Wno-error 
../../../kern/kern_tc.c
cc1: note: obsolete option -I- used, please use -iquote instead
../../../kern/kern_tc.c:74: error: static declaration of 'th0' follows
non-static declaration
../../../kern/kern_tc.c:64: error: previous declaration of 'th0' was here
*** Error code 1
../../../kern/kern_sig.c: In function 'kern_sigtimedwait':
../../../kern/kern_sig.c:850: warning: 'ets.tv_sec' may be used uninitialized
in this function
../../../kern/kern_sig.c:850: warning: 'ets.tv_nsec' may be used uninitialized
in this function
1 error

------- Comment #1 From Diego E. 'Flameeyes' Pettenò 2006-05-31 16:46:43 0000 -------
Fixed.