From owner-freebsd-current@FreeBSD.ORG Sat Nov 1 06:36:28 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 040211065679 for ; Sat, 1 Nov 2008 06:36:28 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: from mx.nsu.ru (mx.nsu.ru [212.192.164.5]) by mx1.freebsd.org (Postfix) with ESMTP id 35BE48FC0C for ; Sat, 1 Nov 2008 06:36:27 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.50) id 1Kw9p4-0007Kk-Gx for current@freebsd.org; Sat, 01 Nov 2008 12:18:58 +0600 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id mA16JZdd036530 for ; Sat, 1 Nov 2008 12:19:45 +0600 (NOVT) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id mA16JUnG036520 for current@freebsd.org; Sat, 1 Nov 2008 12:19:30 +0600 (NOVT) (envelope-from danfe) Date: Sat, 1 Nov 2008 12:19:30 +0600 From: Alexey Dokuchaev To: current@freebsd.org Message-ID: <20081101061930.GA34365@regency.nsu.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="vkogqOf2sHV7VnPd" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Mailman-Approved-At: Sat, 01 Nov 2008 14:45:57 +0000 Cc: Subject: device snp build broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Nov 2008 06:36:28 -0000 --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--