From nobody@FreeBSD.org  Tue Apr  3 22:33:50 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 6B12E10657A6
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  3 Apr 2012 22:33:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 560CC8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  3 Apr 2012 22:33:50 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q33MXoeA028720
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 3 Apr 2012 22:33:50 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q33MXotL028699;
	Tue, 3 Apr 2012 22:33:50 GMT
	(envelope-from nobody)
Message-Id: <201204032233.q33MXotL028699@red.freebsd.org>
Date: Tue, 3 Apr 2012 22:33:50 GMT
From: Judah Levine <Judah.Levine@colorado.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sio.c driver won't compile -- error in include file
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         166626
>Category:       kern
>Synopsis:       [build] sio.c driver won't compile -- error in include file
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 03 22:40:01 UTC 2012
>Closed-Date:    
>Last-Modified:  Sat Mar  9 07:30:00 UTC 2013
>Originator:     Judah Levine
>Release:        9.0
>Organization:
University of Colorado
>Environment:
FreeBSD 9.0
>Description:
Driver sio.c cannot be compiled because it expects members in structure consdev that are not defined. The structure is defined in cons.h. I think there may be additional problems of this type in other structures that are used by sio.c.

The include file /usr/include/sys/cons.h did not have this problem in FreeBSD version 6.
>How-To-Repeat:
add line 
device sio 
to system configuration and then try to re-build the kernel.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Apr 9 00:58:01 UTC 2012 
Responsible-Changed-Why:  
reclassify. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=166626 

From: "Conall O'Brien" <conall@conall.net>
To: bug-followup@FreeBSD.org, Judah.Levine@colorado.edu
Cc:  
Subject: Re: kern/166626: [build] sio.c driver won't compile -- error in
 include file
Date: Wed, 4 Jul 2012 14:51:20 +0100

 Confirmed that this is not architecture specific, I am able to
 reproduce this on an amd64 system during an attempted src upgrade from
 RELENG8 to RELENG9
 
 ...
 /usr/src/sys/dev/sio/sio.c: In function 'sysctl_machdep_comdefaultrate':
 /usr/src/sys/dev/sio/sio.c:355: error: 'struct tty' has no member
 named 't_init_in'
 /usr/src/sys/dev/sio/sio.c:355: error: 'struct tty' has no member
 named 't_init_in'
 /usr/src/sys/dev/sio/sio.c:356: error: 'struct tty' has no member
 named 't_lock_in'
 /usr/src/sys/dev/sio/sio.c:356: error: 'struct tty' has no member
 named 't_lock_in'
 /usr/src/sys/dev/sio/sio.c:357: error: 'struct tty' has no member
 named 't_init_out'
 /usr/src/sys/dev/sio/sio.c:357: error: 'struct tty' has no member
 named 't_init_out'
 /usr/src/sys/dev/sio/sio.c:358: error: 'struct tty' has no member
 named 't_lock_out'
 /usr/src/sys/dev/sio/sio.c:358: error: 'struct tty' has no member
 named 't_lock_out'
 /usr/src/sys/dev/sio/sio.c:360: error: 'struct tty' has no member
 named 't_state'
 /usr/src/sys/dev/sio/sio.c:360: error: 'TS_ISOPEN' undeclared (first
 use in this function)
 /usr/src/sys/dev/sio/sio.c:360: error: (Each undeclared identifier is
 reported only once
 /usr/src/sys/dev/sio/sio.c:360: error: for each function it appears in.)
 cc1: warnings being treated as errors
 /usr/src/sys/dev/sio/sio.c: In function 'siodetach':
 /usr/src/sys/dev/sio/sio.c:399: warning: implicit declaration of
 function 'ttyfree'
 /usr/src/sys/dev/sio/sio.c:399: warning: nested extern declaration of
 'ttyfree' [-Wnested-externs]
 /usr/src/sys/dev/sio/sio.c: In function 'sioattach':
 /usr/src/sys/dev/sio/sio.c:927: warning: implicit declaration of
 function 'ttyalloc'
 /usr/src/sys/dev/sio/sio.c:927: warning: nested extern declaration of
 'ttyalloc' [-Wnested-externs]
 /usr/src/sys/dev/sio/sio.c:927: warning: assignment makes pointer from
 integer without a cast
 /usr/src/sys/dev/sio/sio.c:928: error: 'struct tty' has no member
 named 't_oproc'
 /usr/src/sys/dev/sio/sio.c:929: error: 'struct tty' has no member
 named 't_param'
 /usr/src/sys/dev/sio/sio.c:930: error: 'struct tty' has no member named 't_stop'
 /usr/src/sys/dev/sio/sio.c:931: error: 'struct tty' has no member
 named 't_modem'
 /usr/src/sys/dev/sio/sio.c:932: error: 'struct tty' has no member
 named 't_break'
 /usr/src/sys/dev/sio/sio.c:933: error: 'struct tty' has no member
 named 't_close'
 /usr/src/sys/dev/sio/sio.c:934: error: 'struct tty' has no member named 't_open'
 /usr/src/sys/dev/sio/sio.c:935: error: 'struct tty' has no member named 't_sc'
 /usr/src/sys/dev/sio/sio.c:942: warning: implicit declaration of
 function 'ttyconsolemode'
 /usr/src/sys/dev/sio/sio.c:942: warning: nested extern declaration of
 'ttyconsolemode' [-Wnested-externs]
 /usr/src/sys/dev/sio/sio.c:943: error: 'struct tty' has no member
 named 't_init_in'
 /usr/src/sys/dev/sio/sio.c:1080: error: 'struct tty' has no member named 't_pps'
 /usr/src/sys/dev/sio/sio.c:1116: warning: implicit declaration of
 function 'ttycreate'
 /usr/src/sys/dev/sio/sio.c:1116: warning: nested extern declaration of
 'ttycreate' [-Wnested-externs]
 /usr/src/sys/dev/sio/sio.c:1116: error: 'TS_CALLOUT' undeclared (first
 use in this function)
 /usr/src/sys/dev/sio/sio.c: In function 'comopen':
 /usr/src/sys/dev/sio/sio.c:1127: error: 'struct tty' has no member named 't_sc'
 /usr/src/sys/dev/sio/sio.c:1179: warning: implicit declaration of
 function 'ISCALLOUT'
 /usr/src/sys/dev/sio/sio.c:1179: warning: nested extern declaration of
 'ISCALLOUT' [-Wnested-externs]
 /usr/src/sys/dev/sio/sio.c:1180: warning: implicit declaration of
 function 'ttyld_modem'
 /usr/src/sys/dev/sio/sio.c:1180: warning: nested extern declaration of
 'ttyld_modem' [-Wnested-externs]
 /usr/src/sys/dev/sio/sio.c: In function 'comclose':
 /usr/src/sys/dev/sio/sio.c:1192: error: 'struct tty' has no member named 't_sc'
 /usr/src/sys/dev/sio/sio.c:1207: error: 'struct tty' has no member
 named 't_cflag'
 /usr/src/sys/dev/sio/sio.c:1215: error: 'struct tty' has no member
 named 't_actout'
 /usr/src/sys/dev/sio/sio.c:1217: error: 'struct tty' has no member
 named 't_init_in'
 /usr/src/sys/dev/sio/sio.c:1218: error: 'struct tty' has no member
 named 't_state'
 /usr/src/sys/dev/sio/sio.c:1218: error: 'TS_ISOPEN' undeclared (first
 use in this function)
 /usr/src/sys/dev/sio/sio.c:1220: warning: implicit declaration of
 function 'ttydtrwaitstart'
 /usr/src/sys/dev/sio/sio.c:1220: warning: nested extern declaration of
 'ttydtrwaitstart' [-Wnested-externs]
 /usr/src/sys/dev/sio/sio.c:1231: error: 'struct tty' has no member
 named 't_actout'
 /usr/src/sys/dev/sio/sio.c:1232: error: 'struct tty' has no member
 named 't_actout'
 /usr/src/sys/dev/sio/sio.c:1233: warning: implicit declaration of
 function 'TSA_CARR_ON'
 /usr/src/sys/dev/sio/sio.c:1233: warning: nested extern declaration of
 'TSA_CARR_ON' [-Wnested-externs]
 /usr/src/sys/dev/sio/sio.c:1233: warning: passing argument 1 of
 'wakeup' makes pointer from integer without a cast
 /usr/src/sys/dev/sio/sio.c: In function 'siobusycheck':
 /usr/src/sys/dev/sio/sio.c:1260: error: 'struct tty' has no member
 named 't_state'
 /usr/src/sys/dev/sio/sio.c:1260: error: 'TS_BUSY' undeclared (first
 use in this function)
 /usr/src/sys/dev/sio/sio.c:1261: warning: implicit declaration of
 function 'ttwwakeup'
 /usr/src/sys/dev/sio/sio.c:1261: warning: nested extern declaration of
 'ttwwakeup' [-Wnested-externs]
 /usr/src/sys/dev/sio/sio.c: In function 'sioinput':
 /usr/src/sys/dev/sio/sio.c:1314: error: 'struct tty' has no member
 named 't_state'
 /usr/src/sys/dev/sio/sio.c:1314: error: 'TS_ISOPEN' undeclared (first
 use in this function)
 /usr/src/sys/dev/sio/sio.c:1314: error: 'struct tty' has no member
 named 't_cflag'
 /usr/src/sys/dev/sio/sio.c:1319: error: 'struct tty' has no member
 named 't_state'
 /usr/src/sys/dev/sio/sio.c:1319: error: 'TS_CAN_BYPASS_L_RINT'
 undeclared (first use in this function)
 /usr/src/sys/dev/sio/sio.c:1335: error: 'struct tty' has no member
 named 't_rawq'
 /usr/src/sys/dev/sio/sio.c:1335: error: 'struct tty' has no member
 named 't_ihiwat'
 /usr/src/sys/dev/sio/sio.c:1337: error: 'struct tty' has no member
 named 't_iflag'
 /usr/src/sys/dev/sio/sio.c:1338: error: 'struct tty' has no member
 named 't_state'
 /usr/src/sys/dev/sio/sio.c:1338: error: 'TS_TBLOCK' undeclared (first
 use in this function)
 /usr/src/sys/dev/sio/sio.c:1339: warning: implicit declaration of
 function 'ttyblock'
 /usr/src/sys/dev/sio/sio.c:1339: warning: nested extern declaration of
 'ttyblock' [-Wnested-externs]
 /usr/src/sys/dev/sio/sio.c:1341: warning: implicit declaration of
 function 'b_to_q'
 /usr/src/sys/dev/sio/sio.c:1341: warning: nested extern declaration of
 'b_to_q' [-Wnested-externs]
 /usr/src/sys/dev/sio/sio.c:1341: error: 'struct tty' has no member
 named 't_rawq'
 /usr/src/sys/dev/sio/sio.c:1343: error: 'tk_nin' undeclared (first use
 in this function)
 /usr/src/sys/dev/sio/sio.c:1344: error: 'tk_rawcc' undeclared (first
 use in this function)
 /usr/src/sys/dev/sio/sio.c:1345: error: 'struct tty' has no member
 named 't_rawcc'
 /usr/src/sys/dev/sio/sio.c:1346: warning: implicit declaration of
 function 'ttwakeup'
 /usr/src/sys/dev/sio/sio.c:1346: warning: nested extern declaration of
 'ttwakeup' [-Wnested-externs]
 /usr/src/sys/dev/sio/sio.c:1347: error: 'struct tty' has no member
 named 't_state'
 /usr/src/sys/dev/sio/sio.c:1347: error: 'TS_TTSTOP' undeclared (first
 use in this function)
 /usr/src/sys/dev/sio/sio.c:1348: error: 'struct tty' has no member
 named 't_iflag'
 /usr/src/sys/dev/sio/sio.c:1349: error: 'struct tty' has no member named 't_cc'
 /usr/src/sys/dev/sio/sio.c:1349: error: 'struct tty' has no member named 't_cc'
 /usr/src/sys/dev/sio/sio.c:1350: error: 'struct tty' has no member
 named 't_state'
 /usr/src/sys/dev/sio/sio.c:1351: error: 'struct tty' has no member
 named 't_lflag'
 /usr/src/sys/dev/sio/sio.c:1369: error: 'TTY_BI' undeclared (first use
 in this function)
 /usr/src/sys/dev/sio/sio.c:1371: error: 'TTY_FE' undeclared (first use
 in this function)
 /usr/src/sys/dev/sio/sio.c:1373: error: 'TTY_OE' undeclared (first use
 in this function)
 /usr/src/sys/dev/sio/sio.c:1375: error: 'TTY_PE' undeclared (first use
 in this function)
 /usr/src/sys/dev/sio/sio.c:1377: warning: implicit declaration of
 function 'ttyld_rint'
 /usr/src/sys/dev/sio/sio.c:1377: warning: nested extern declaration of
 'ttyld_rint' [-Wnested-externs]
 /usr/src/sys/dev/sio/sio.c:1390: error: 'struct tty' has no member
 named 't_state'
 /usr/src/sys/dev/sio/sio.c: In function 'siointr1':
 /usr/src/sys/dev/sio/sio.c:1542: error: 'struct tty' has no member
 named 't_iflag'
 /usr/src/sys/dev/sio/sio.c:1546: error: 'struct tty' has no member
 named 't_iflag'
 /usr/src/sys/dev/sio/sio.c:1549: error: 'struct tty' has no member
 named 't_state'
 /usr/src/sys/dev/sio/sio.c:1549: error: 'TS_CAN_BYPASS_L_RINT'
 undeclared (first use in this function)
 /usr/src/sys/dev/sio/sio.c:1551: error: 'struct tty' has no member
 named 't_iflag'
 /usr/src/sys/dev/sio/sio.c:1556: error: 'struct tty' has no member
 named 't_hotchar'
 /usr/src/sys/dev/sio/sio.c:1556: error: 'struct tty' has no member
 named 't_hotchar'
 /usr/src/sys/dev/sio/sio.c:1562: error: 'struct tty' has no member
 named 't_do_timestamp'
 /usr/src/sys/dev/sio/sio.c:1563: error: 'struct tty' has no member
 named 't_timestamp'
 /usr/src/sys/dev/sio/sio.c: In function 'siopoll':
 /usr/src/sys/dev/sio/sio.c:1742: warning: implicit declaration of
 function 'ttyld_start'
 /usr/src/sys/dev/sio/sio.c:1742: warning: nested extern declaration of
 'ttyld_start' [-Wnested-externs]
 /usr/src/sys/dev/sio/sio.c: In function 'combreak':
 /usr/src/sys/dev/sio/sio.c:1758: error: 'struct tty' has no member named 't_sc'
 /usr/src/sys/dev/sio/sio.c: In function 'comparam':
 /usr/src/sys/dev/sio/sio.c:1780: error: 'struct tty' has no member named 't_sc'
 /usr/src/sys/dev/sio/sio.c:1785: error: 'struct tty' has no member
 named 't_ospeed'
 /usr/src/sys/dev/sio/sio.c:1912: warning: implicit declaration of
 function 'ttyldoptim'
 /usr/src/sys/dev/sio/sio.c:1912: warning: nested extern declaration of
 'ttyldoptim' [-Wnested-externs]
 /usr/src/sys/dev/sio/sio.c: In function 'siosetwater':
 /usr/src/sys/dev/sio/sio.c:1967: error: 'struct tty' has no member
 named 't_ififosize'
 /usr/src/sys/dev/sio/sio.c:1968: error: 'struct tty' has no member
 named 't_ispeedwat'
 /usr/src/sys/dev/sio/sio.c:1969: error: 'struct tty' has no member
 named 't_ospeedwat'
 /usr/src/sys/dev/sio/sio.c: In function 'comstart':
 /usr/src/sys/dev/sio/sio.c:2005: error: 'struct tty' has no member named 't_sc'
 /usr/src/sys/dev/sio/sio.c:2010: error: 'struct tty' has no member
 named 't_state'
 /usr/src/sys/dev/sio/sio.c:2010: error: 'TS_TTSTOP' undeclared (first
 use in this function)
 /usr/src/sys/dev/sio/sio.c:2014: error: 'struct tty' has no member
 named 't_state'
 /usr/src/sys/dev/sio/sio.c:2014: error: 'TS_TBLOCK' undeclared (first
 use in this function)
 /usr/src/sys/dev/sio/sio.c:2023: error: 'struct tty' has no member
 named 't_state'
 /usr/src/sys/dev/sio/sio.c:2023: error: 'TS_TIMEOUT' undeclared (first
 use in this function)
 /usr/src/sys/dev/sio/sio.c:2028: error: 'struct ttyoutq' has no member
 named 'c_cc'
 /usr/src/sys/dev/sio/sio.c:2034: warning: implicit declaration of
 function 'q_to_b'
 /usr/src/sys/dev/sio/sio.c:2034: warning: nested extern declaration of
 'q_to_b' [-Wnested-externs]
 /usr/src/sys/dev/sio/sio.c:2052: error: 'struct ttyoutq' has no member
 named 'c_cc'
 /usr/src/sys/dev/sio/sio.c:2072: error: 'struct tty' has no member
 named 't_state'
 /usr/src/sys/dev/sio/sio.c:2072: error: 'TS_BUSY' undeclared (first
 use in this function)
 /usr/src/sys/dev/sio/sio.c: In function 'comstop':
 /usr/src/sys/dev/sio/sio.c:2089: error: 'struct tty' has no member named 't_sc'
 /usr/src/sys/dev/sio/sio.c:2106: error: 'struct tty' has no member
 named 't_state'
 /usr/src/sys/dev/sio/sio.c:2106: error: 'TS_BUSY' undeclared (first
 use in this function)
 /usr/src/sys/dev/sio/sio.c: In function 'commodem':
 /usr/src/sys/dev/sio/sio.c:2129: error: 'struct tty' has no member named 't_sc'
 /usr/src/sys/dev/sio/sio.c: In function 'siosettimeout':
 /usr/src/sys/dev/sio/sio.c:2188: error: 'struct tty' has no member
 named 't_state'
 /usr/src/sys/dev/sio/sio.c:2188: error: 'TS_ISOPEN' undeclared (first
 use in this function)
 /usr/src/sys/dev/sio/sio.c: In function 'siocnset':
 /usr/src/sys/dev/sio/sio.c:2282: error: 'struct consdev' has no member
 named 'cn_unit'
 /usr/src/sys/dev/sio/sio.c: In function 'sio_cninit':
 /usr/src/sys/dev/sio/sio.c:2505: error: 'struct consdev' has no member
 named 'cn_unit'
 /usr/src/sys/dev/sio/sio.c: In function 'sio_cngetc':
 /usr/src/sys/dev/sio/sio.c:2524: error: 'struct consdev' has no member
 named 'cn_unit'
 /usr/src/sys/dev/sio/sio.c: In function 'sio_cnputc':
 /usr/src/sys/dev/sio/sio.c:2555: error: 'struct consdev' has no member
 named 'cn_unit'
 *** Error code 1
 
 Stop in /usr/src/obj/usr/src/sys/GALVATRON.
 *** Error code 1
 
 Stop in /usr/src.
 *** Error code 1
 
 Stop in /usr/src.

From: Anthony Chavez <acc@hexadecagram.org>
To: bug-followup@FreeBSD.org, Judah.Levine@colorado.edu
Cc:  
Subject: Re: kern/166626: [build] sio.c driver won&#39;t compile -- error
 in include file
Date: Sat, 09 Mar 2013 00:19:30 -0700

 This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
 ------enig2ULDEBRCCMSJDMUPSNDSP
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 This bug affects 9-STABLE and 8-STABLE as well.
 
 --=20
 Anthony Chavez                                  http://hexadecagram.org/
 mailto:acc@hexadecagram.org                    xmpp:acc@hexadecagram.org
 
 
 ------enig2ULDEBRCCMSJDMUPSNDSP
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.19 (GNU/Linux)
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
 
 iEYEARECAAYFAlE64oYACgkQbZTbIaRBRXFjwQCeN/0ViChFdYhkCxWNVVRViB1H
 v/cAnA9XKj1h4LybXMWUDeWY7lgVV2xQ
 =kCQl
 -----END PGP SIGNATURE-----
 
 ------enig2ULDEBRCCMSJDMUPSNDSP--
>Unformatted:
