Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jul 2012 14:00:25 GMT
From:      "Conall O'Brien" <conall@conall.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/166626: [build] sio.c driver won't compile -- error in include file
Message-ID:  <201207041400.q64E0PgZ060895@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/166626; it has been noted by GNATS.

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207041400.q64E0PgZ060895>