Date: Sat, 1 Nov 2008 12:19:30 +0600 From: Alexey Dokuchaev <danfe@nsu.ru> To: current@freebsd.org Subject: device snp build broken? Message-ID: <20081101061930.GA34365@regency.nsu.ru>
next in thread | raw e-mail | index | archive | help
--vkogqOf2sHV7VnPd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi there, Looks like device snp is broken on recent -CURRENT. Is it being supported at all? How useful it is in modern environment? Thanks. Relevant part of build log attached. ./danfe --vkogqOf2sHV7VnPd Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="snp.log" 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/dev/snp/snp.c /usr/src/sys/dev/snp/snp.c:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'snplclose' /usr/src/sys/dev/snp/snp.c:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'snplwrite' /usr/src/sys/dev/snp/snp.c:55: error: variable 'snpdisc' has initializer but incomplete type /usr/src/sys/dev/snp/snp.c:56: error: unknown field 'l_open' specified in initializer /usr/src/sys/dev/snp/snp.c:56: error: 'tty_open' undeclared here (not in a function) cc1: warnings being treated as errors /usr/src/sys/dev/snp/snp.c:56: warning: excess elements in struct initializer /usr/src/sys/dev/snp/snp.c:56: warning: (near initialization for 'snpdisc') /usr/src/sys/dev/snp/snp.c:57: error: unknown field 'l_close' specified in initializer /usr/src/sys/dev/snp/snp.c:57: error: 'snplclose' undeclared here (not in a function) /usr/src/sys/dev/snp/snp.c:57: warning: excess elements in struct initializer /usr/src/sys/dev/snp/snp.c:57: warning: (near initialization for 'snpdisc') /usr/src/sys/dev/snp/snp.c:58: error: unknown field 'l_read' specified in initializer /usr/src/sys/dev/snp/snp.c:58: error: 'ttread' undeclared here (not in a function) /usr/src/sys/dev/snp/snp.c:58: warning: excess elements in struct initializer /usr/src/sys/dev/snp/snp.c:58: warning: (near initialization for 'snpdisc') /usr/src/sys/dev/snp/snp.c:59: error: unknown field 'l_write' specified in initializer /usr/src/sys/dev/snp/snp.c:59: error: 'snplwrite' undeclared here (not in a function) /usr/src/sys/dev/snp/snp.c:59: warning: excess elements in struct initializer /usr/src/sys/dev/snp/snp.c:59: warning: (near initialization for 'snpdisc') /usr/src/sys/dev/snp/snp.c:60: error: unknown field 'l_ioctl' specified in initializer /usr/src/sys/dev/snp/snp.c:60: error: 'l_nullioctl' undeclared here (not in a function) /usr/src/sys/dev/snp/snp.c:60: warning: excess elements in struct initializer /usr/src/sys/dev/snp/snp.c:60: warning: (near initialization for 'snpdisc') /usr/src/sys/dev/snp/snp.c:61: error: unknown field 'l_rint' specified in initializer /usr/src/sys/dev/snp/snp.c:61: error: 'ttyinput' undeclared here (not in a function) /usr/src/sys/dev/snp/snp.c:61: warning: excess elements in struct initializer /usr/src/sys/dev/snp/snp.c:61: warning: (near initialization for 'snpdisc') /usr/src/sys/dev/snp/snp.c:62: error: unknown field 'l_start' specified in initializer /usr/src/sys/dev/snp/snp.c:62: error: 'ttstart' undeclared here (not in a function) /usr/src/sys/dev/snp/snp.c:62: warning: excess elements in struct initializer /usr/src/sys/dev/snp/snp.c:62: warning: (near initialization for 'snpdisc') /usr/src/sys/dev/snp/snp.c:63: error: unknown field 'l_modem' specified in initializer /usr/src/sys/dev/snp/snp.c:63: error: 'ttymodem' undeclared here (not in a function) /usr/src/sys/dev/snp/snp.c:64: warning: excess elements in struct initializer /usr/src/sys/dev/snp/snp.c:64: warning: (near initialization for 'snpdisc') /usr/src/sys/dev/snp/snp.c: In function 'snplclose': /usr/src/sys/dev/snp/snp.c:144: warning: implicit declaration of function 'ttylclose' /usr/src/sys/dev/snp/snp.c:144: warning: nested extern declaration of 'ttylclose' /usr/src/sys/dev/snp/snp.c: In function 'snplwrite': /usr/src/sys/dev/snp/snp.c:177: warning: implicit declaration of function 'ttwrite' /usr/src/sys/dev/snp/snp.c:177: warning: nested extern declaration of 'ttwrite' /usr/src/sys/dev/snp/snp.c: In function 'snpdevtotty': /usr/src/sys/dev/snp/snp.c:200: error: 'struct cdev' has no member named 'si_tty' /usr/src/sys/dev/snp/snp.c: In function 'snpwrite': /usr/src/sys/dev/snp/snp.c:225: error: 'struct tty' has no member named 't_state' /usr/src/sys/dev/snp/snp.c:225: error: 'TS_SNOOP' undeclared (first use in this function) /usr/src/sys/dev/snp/snp.c:225: error: (Each undeclared identifier is reported only once /usr/src/sys/dev/snp/snp.c:225: error: for each function it appears in.) /usr/src/sys/dev/snp/snp.c:225: error: 'struct tty' has no member named 't_line' /usr/src/sys/dev/snp/snp.c:232: error: 'struct tty' has no member named 't_state' /usr/src/sys/dev/snp/snp.c:232: error: 'TS_ISOPEN' undeclared (first use in this function) /usr/src/sys/dev/snp/snp.c:240: warning: implicit declaration of function 'ttyinput' /usr/src/sys/dev/snp/snp.c:240: warning: nested extern declaration of 'ttyinput' /usr/src/sys/dev/snp/snp.c: In function 'snp_detach': /usr/src/sys/dev/snp/snp.c:456: error: 'struct tty' has no member named 't_state' /usr/src/sys/dev/snp/snp.c:456: error: 'TS_SNOOP' undeclared (first use in this function) /usr/src/sys/dev/snp/snp.c:456: error: 'struct tty' has no member named 't_line' /usr/src/sys/dev/snp/snp.c:457: error: 'struct tty' has no member named 't_state' /usr/src/sys/dev/snp/snp.c:458: error: 'struct tty' has no member named 't_line' /usr/src/sys/dev/snp/snp.c: In function 'snpioctl': /usr/src/sys/dev/snp/snp.c:523: error: 'struct tty' has no member named 't_state' /usr/src/sys/dev/snp/snp.c:523: error: 'TS_SNOOP' undeclared (first use in this function) /usr/src/sys/dev/snp/snp.c:527: error: 'struct tty' has no member named 't_state' /usr/src/sys/dev/snp/snp.c:528: error: 'struct tty' has no member named 't_line' /usr/src/sys/dev/snp/snp.c:529: error: 'struct tty' has no member named 't_line' /usr/src/sys/dev/snp/snp.c: In function 'snp_modevent': /usr/src/sys/dev/snp/snp.c:614: warning: implicit declaration of function 'ldisc_register' /usr/src/sys/dev/snp/snp.c:614: warning: nested extern declaration of 'ldisc_register' /usr/src/sys/dev/snp/snp.c:614: error: 'LDISC_LOAD' undeclared (first use in this function) /usr/src/sys/dev/snp/snp.c:624: warning: implicit declaration of function 'ldisc_deregister' /usr/src/sys/dev/snp/snp.c:624: warning: nested extern declaration of 'ldisc_deregister' *** Error code 1 Stop in /usr/obj/usr/src/sys/LITE. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. --vkogqOf2sHV7VnPd--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081101061930.GA34365>