error building kernel

From: Martin Smith <mjs_at_rakupottery.org.uk>
Date: Tue, 26 Aug 2008 17:43:56 +0100
This is on  a current system, with csup run last nightm while building 
the kernel it dies as follows in if_sl.c:
any pointers to fix this would be most welcome.
cc -c -O2 -pipe -fno-strict-aliasing  -std=c99  -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign 
-fformat-extensions -nostdinc  -I. -I/usr/src/sys 
-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 
-mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx 
-mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector 
-Werror  /usr/src/sys/net/if_sl.c
/usr/src/sys/net/if_sl.c:179: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'slclose'
/usr/src/sys/net/if_sl.c:180: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'slinput'
/usr/src/sys/net/if_sl.c:181: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'sltioctl'
/usr/src/sys/net/if_sl.c:182: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'sltstart'
/usr/src/sys/net/if_sl.c:189: error: variable 'slipdisc' has initializer 
but incomplete type
/usr/src/sys/net/if_sl.c:190: error: unknown field 'l_open' specified in 
initializer
cc1: warnings being treated as errors
/usr/src/sys/net/if_sl.c:190: warning: excess elements in struct initializer
/usr/src/sys/net/if_sl.c:190: warning: (near initialization for 'slipdisc')
/usr/src/sys/net/if_sl.c:191: error: unknown field 'l_close' specified 
in initializer
/usr/src/sys/net/if_sl.c:191: error: 'slclose' undeclared here (not in a 
function)
/usr/src/sys/net/if_sl.c:191: warning: excess elements in struct initializer
/usr/src/sys/net/if_sl.c:191: warning: (near initialization for 'slipdisc')
/usr/src/sys/net/if_sl.c:192: error: unknown field 'l_read' specified in 
initializer
/usr/src/sys/net/if_sl.c:192: error: 'l_noread' undeclared here (not in 
a function)
/usr/src/sys/net/if_sl.c:192: warning: excess elements in struct initializer
/usr/src/sys/net/if_sl.c:192: warning: (near initialization for 'slipdisc')
/usr/src/sys/net/if_sl.c:193: error: unknown field 'l_write' specified 
in initializer
/usr/src/sys/net/if_sl.c:193: error: 'l_nowrite' undeclared here (not in 
a function)
/usr/src/sys/net/if_sl.c:193: warning: excess elements in struct initializer
/usr/src/sys/net/if_sl.c:193: warning: (near initialization for 'slipdisc')
/usr/src/sys/net/if_sl.c:194: error: unknown field 'l_ioctl' specified 
in initializer
/usr/src/sys/net/if_sl.c:194: error: 'sltioctl' undeclared here (not in 
a function)
/usr/src/sys/net/if_sl.c:194: warning: excess elements in struct initializer
/usr/src/sys/net/if_sl.c:194: warning: (near initialization for 'slipdisc')
/usr/src/sys/net/if_sl.c:195: error: unknown field 'l_rint' specified in 
initializer
/usr/src/sys/net/if_sl.c:195: error: 'slinput' undeclared here (not in a 
function)
/usr/src/sys/net/if_sl.c:195: warning: excess elements in struct initializer
/usr/src/sys/net/if_sl.c:195: warning: (near initialization for 'slipdisc')
/usr/src/sys/net/if_sl.c:196: error: unknown field 'l_start' specified 
in initializer
/usr/src/sys/net/if_sl.c:196: error: 'sltstart' undeclared here (not in 
a function)
/usr/src/sys/net/if_sl.c:196: warning: excess elements in struct initializer
/usr/src/sys/net/if_sl.c:196: warning: (near initialization for 'slipdisc')
/usr/src/sys/net/if_sl.c:197: error: unknown field 'l_modem' specified 
in initializer
/usr/src/sys/net/if_sl.c:197: error: 'ttymodem' undeclared here (not in 
a function)
/usr/src/sys/net/if_sl.c:198: warning: excess elements in struct initializer
/usr/src/sys/net/if_sl.c:198: warning: (near initialization for 'slipdisc')
/usr/src/sys/net/if_sl.c: In function 'sl_modevent':
/usr/src/sys/net/if_sl.c:208: warning: implicit declaration of function 
'ldisc_register'
/usr/src/sys/net/if_sl.c:208: warning: nested extern declaration of 
'ldisc_register'
/usr/src/sys/net/if_sl.c:212: warning: implicit declaration of function 
'ldisc_deregister'
/usr/src/sys/net/if_sl.c:212: warning: nested extern declaration of 
'ldisc_deregister'
/usr/src/sys/net/if_sl.c: In function 'slopen':
/usr/src/sys/net/if_sl.c:365: error: 'struct tty' has no member named 
't_hotchar'
/usr/src/sys/net/if_sl.c:367: error: 'struct tty' has no member named 
't_ospeed'
/usr/src/sys/net/if_sl.c:368: warning: implicit declaration of function 
'ttyflush'
/usr/src/sys/net/if_sl.c:368: warning: nested extern declaration of 
'ttyflush'
/usr/src/sys/net/if_sl.c:380: error: 'struct tty' has no member named 
't_canq'
/usr/src/sys/net/if_sl.c:383: warning: passing argument 1 of 
'clist_alloc_cblocks' from incompatible pointer type
/usr/src/sys/net/if_sl.c:384: error: 'struct tty' has no member named 
't_rawq'
/usr/src/sys/net/if_sl.c: In function 'slclose':
/usr/src/sys/net/if_sl.c:423: warning: passing argument 1 of 
'clist_free_cblocks' from incompatible pointer type
/usr/src/sys/net/if_sl.c: In function 'sltioctl':
/usr/src/sys/net/if_sl.c:486: warning: passing argument 1 of 
'clist_alloc_cblocks' from incompatible pointer type
/usr/src/sys/net/if_sl.c: In function 'sloutput':
/usr/src/sys/net/if_sl.c:564: error: 'struct tty' has no member named 
't_state'
/usr/src/sys/net/if_sl.c:564: error: 'TS_CONNECTED' undeclared (first 
use in this function)
/usr/src/sys/net/if_sl.c:564: error: (Each undeclared identifier is 
reported only once
/usr/src/sys/net/if_sl.c:564: error: for each function it appears in.)
/usr/src/sys/net/if_sl.c: In function 'slstart':
/usr/src/sys/net/if_sl.c:592: error: 'struct ttyoutq' has no member 
named 'c_cc'
/usr/src/sys/net/if_sl.c:593: warning: implicit declaration of function 
'sltstart'
/usr/src/sys/net/if_sl.c:593: warning: nested extern declaration of 
'sltstart'
/usr/src/sys/net/if_sl.c: In function 'sltstart':
/usr/src/sys/net/if_sl.c:620: warning: implicit declaration of function 
'tt_oproc'
/usr/src/sys/net/if_sl.c:620: warning: nested extern declaration of 
'tt_oproc'
/usr/src/sys/net/if_sl.c:622: error: 'struct ttyoutq' has no member 
named 'c_cc'
/usr/src/sys/net/if_sl.c:625: error: 'struct ttyoutq' has no member 
named 'c_cc'
/usr/src/sys/net/if_sl.c:719: error: 'struct ttyoutq' has no member 
named 'c_cc'
/usr/src/sys/net/if_sl.c:721: warning: passing argument 2 of 'putc' from 
incompatible pointer type
/usr/src/sys/net/if_sl.c:750: warning: passing argument 3 of 'b_to_q' 
from incompatible pointer type
/usr/src/sys/net/if_sl.c:760: warning: passing argument 2 of 'putc' from 
incompatible pointer type
/usr/src/sys/net/if_sl.c:764: warning: passing argument 2 of 'putc' from 
incompatible pointer type
/usr/src/sys/net/if_sl.c:765: warning: passing argument 1 of 'unputc' 
from incompatible pointer type
/usr/src/sys/net/if_sl.c:774: warning: passing argument 2 of 'putc' from 
incompatible pointer type
/usr/src/sys/net/if_sl.c:782: warning: passing argument 1 of 'unputc' 
from incompatible pointer type
/usr/src/sys/net/if_sl.c:783: warning: passing argument 2 of 'putc' from 
incompatible pointer type
/usr/src/sys/net/if_sl.c: In function 'slinput':
/usr/src/sys/net/if_sl.c:849: error: 'tk_nin' undeclared (first use in 
this function)
/usr/src/sys/net/if_sl.c:853: error: 'TTY_ERRORMASK' undeclared (first 
use in this function)
/usr/src/sys/net/if_sl.c:853: error: 'struct tty' has no member named 
't_state'
/usr/src/sys/net/if_sl.c:853: error: 'TS_CONNECTED' undeclared (first 
use in this function)
/usr/src/sys/net/if_sl.c:857: error: 'TTY_CHARMASK' undeclared (first 
use in this function)
/usr/src/sys/net/if_sl.c: In function 'slioctl':
/usr/src/sys/net/if_sl.c:1059: warning: passing argument 1 of 
'clist_alloc_cblocks' from incompatible pointer type
/usr/src/sys/net/if_sl.c: In function 'sl_outfill':
/usr/src/sys/net/if_sl.c:1101: warning: passing argument 2 of 'putc' 
from incompatible pointer type
*** Error code 1

Stop in /usr/obj/usr/src/sys/SATURN.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
saturn#

-- 
Martin
Received on Tue Aug 26 2008 - 14:56:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:34 UTC