На 8-ке какая то проблема с включением в ядро опции device sio. При сборке ядра вылазит ошибка:
конфиг ядра
Код: Выделить всё
cpu I686_CPU
ident BSDSERV
###############################################################################
options IPFIREWALL
options IPFIREWALL_FORWARD
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=10
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPDIVERT
options DUMMYNET
device sio #for modem
###############################################################################
options SCHED_ULE # ULE scheduler
options PREEMPTION # Enable kernel thread preemption
options INET # InterNETworking
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options UFS_GJOURNAL # Enable gjournal-based UFS journaling
options PROCFS # Process filesystem (requires PSEUDOFS)
options PSEUDOFS # Pseudo-filesystem framework
options GEOM_PART_GPT # GUID Partition Tables.
options GEOM_LABEL # Provides labelization
options COMPAT_43TTY # BSD 4.3 TTY compat (sgtty)
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options COMPAT_FREEBSD6 # Compatible with FreeBSD6
options COMPAT_FREEBSD7 # Compatible with FreeBSD7
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options KTRACE # ktrace(1) support
options STACK # stack(9) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options P1003_1B_SEMAPHORES # POSIX-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed.
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4)
options AUDIT # Security event auditing
options MAC # TrustedBSD MAC Framework
#options FLOWTABLE # per-cpu routing cache
#options KDTRACE_HOOKS # Kernel DTrace hooks
# To make an SMP kernel, the next two lines are needed
#device apic # I/O APIC
# Bus support.
device acpi
device eisa
device pci
# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
options ATA_STATIC_ID # Static device numbering
# SCSI peripherals
device scbus # SCSI bus (required for SCSI)
device da # Direct Access (disks)
device pass # Passthrough device (direct SCSI access)
# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc # AT keyboard controller
device atkbd # AT keyboard
device psm # PS/2 mouse
device kbdmux # keyboard multiplexer
device vga # VGA video card driver
# syscons is the default console driver, resembling an SCO console
device sc
# Power management support (see NOTES for more options)
#device apm
# Add suspend/resume support for the i8254.
device pmtimer
# Serial (COM) ports
device uart # Generic UART driver
# Parallel port
device ppc
device ppbus # Parallel port bus (required)
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device miibus # MII bus support
device age # Attansic/Atheros L1 Gigabit Ethernet
device rl # RealTek 8129/8139
# Pseudo devices.
device loop # Network loopback
device random # Entropy device
device ether # Ethernet support
device tun # Packet tunnel.
device pty # BSD-style compatibility pseudo ttys
device gif # IPv6 and IPv4 tunneling
#device faith # IPv6-to-IPv4 relaying (translation)
#device firmware # firmware assist module
device bpf # Berkeley packet filter
Код: Выделить всё
cc -c -O2 -pipe -msse -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../../.. -I../../../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 ../../../dev/sio/sio.c
../../../dev/sio/sio.c: In function 'sysctl_machdep_comdefaultrate':
../../../dev/sio/sio.c:356: error: 'struct tty' has no member named 't_init_in'
../../../dev/sio/sio.c:356: error: 'struct tty' has no member named 't_init_in'
../../../dev/sio/sio.c:357: error: 'struct tty' has no member named 't_lock_in'
../../../dev/sio/sio.c:357: error: 'struct tty' has no member named 't_lock_in'
../../../dev/sio/sio.c:358: error: 'struct tty' has no member named 't_init_out'
../../../dev/sio/sio.c:358: error: 'struct tty' has no member named 't_init_out'
../../../dev/sio/sio.c:359: error: 'struct tty' has no member named 't_lock_out'
../../../dev/sio/sio.c:359: error: 'struct tty' has no member named 't_lock_out'
../../../dev/sio/sio.c:361: error: 'struct tty' has no member named 't_state'
../../../dev/sio/sio.c:361: error: 'TS_ISOPEN' undeclared (first use in this function)
../../../dev/sio/sio.c:361: error: (Each undeclared identifier is reported only once
../../../dev/sio/sio.c:361: error: for each function it appears in.)
cc1: warnings being treated as errors
../../../dev/sio/sio.c: In function 'siodetach':
../../../dev/sio/sio.c:400: warning: implicit declaration of function 'ttyfree'
../../../dev/sio/sio.c:400: warning: nested extern declaration of 'ttyfree'
../../../dev/sio/sio.c: In function 'sioattach':
../../../dev/sio/sio.c:928: warning: implicit declaration of function 'ttyalloc'
../../../dev/sio/sio.c:928: warning: nested extern declaration of 'ttyalloc'
../../../dev/sio/sio.c:928: warning: assignment makes pointer from integer without a cast
../../../dev/sio/sio.c:929: error: 'struct tty' has no member named 't_oproc'
../../../dev/sio/sio.c:930: error: 'struct tty' has no member named 't_param'
../../../dev/sio/sio.c:931: error: 'struct tty' has no member named 't_stop'
../../../dev/sio/sio.c:932: error: 'struct tty' has no member named 't_modem'
../../../dev/sio/sio.c:933: error: 'struct tty' has no member named 't_break'
../../../dev/sio/sio.c:934: error: 'struct tty' has no member named 't_close'
../../../dev/sio/sio.c:935: error: 'struct tty' has no member named 't_open'
../../../dev/sio/sio.c:936: error: 'struct tty' has no member named 't_sc'
../../../dev/sio/sio.c:943: warning: implicit declaration of function 'ttyconsolemode'
../../../dev/sio/sio.c:943: warning: nested extern declaration of 'ttyconsolemode'
../../../dev/sio/sio.c:944: error: 'struct tty' has no member named 't_init_in'
../../../dev/sio/sio.c:1081: error: 'struct tty' has no member named 't_pps'
../../../dev/sio/sio.c:1118: warning: implicit declaration of function 'ttycreate'
../../../dev/sio/sio.c:1118: warning: nested extern declaration of 'ttycreate'
../../../dev/sio/sio.c:1118: error: 'TS_CALLOUT' undeclared (first use in this function)
../../../dev/sio/sio.c: In function 'comopen':
../../../dev/sio/sio.c:1129: error: 'struct tty' has no member named 't_sc'
../../../dev/sio/sio.c:1181: warning: implicit declaration of function 'ISCALLOUT'
../../../dev/sio/sio.c:1181: warning: nested extern declaration of 'ISCALLOUT'
../../../dev/sio/sio.c:1182: warning: implicit declaration of function 'ttyld_modem'
../../../dev/sio/sio.c:1182: warning: nested extern declaration of 'ttyld_modem'
../../../dev/sio/sio.c: In function 'comclose':
../../../dev/sio/sio.c:1194: error: 'struct tty' has no member named 't_sc'
../../../dev/sio/sio.c:1210: error: 'struct tty' has no member named 't_cflag'
../../../dev/sio/sio.c:1218: error: 'struct tty' has no member named 't_actout'
../../../dev/sio/sio.c:1220: error: 'struct tty' has no member named 't_init_in'
../../../dev/sio/sio.c:1221: error: 'struct tty' has no member named 't_state'
../../../dev/sio/sio.c:1221: error: 'TS_ISOPEN' undeclared (first use in this function)
../../../dev/sio/sio.c:1223: warning: implicit declaration of function 'ttydtrwaitstart'
../../../dev/sio/sio.c:1223: warning: nested extern declaration of 'ttydtrwaitstart'
../../../dev/sio/sio.c:1234: error: 'struct tty' has no member named 't_actout'
../../../dev/sio/sio.c:1235: error: 'struct tty' has no member named 't_actout'
../../../dev/sio/sio.c:1236: warning: implicit declaration of function 'TSA_CARR_ON'
../../../dev/sio/sio.c:1236: warning: nested extern declaration of 'TSA_CARR_ON'
../../../dev/sio/sio.c:1236: warning: passing argument 1 of 'wakeup' makes pointer from integer without a cast
../../../dev/sio/sio.c: In function 'siobusycheck':
../../../dev/sio/sio.c:1263: error: 'struct tty' has no member named 't_state'
../../../dev/sio/sio.c:1263: error: 'TS_BUSY' undeclared (first use in this function)
../../../dev/sio/sio.c:1264: warning: implicit declaration of function 'ttwwakeup'
../../../dev/sio/sio.c:1264: warning: nested extern declaration of 'ttwwakeup'
../../../dev/sio/sio.c: In function 'sioinput':
../../../dev/sio/sio.c:1317: error: 'struct tty' has no member named 't_state'
../../../dev/sio/sio.c:1317: error: 'TS_ISOPEN' undeclared (first use in this function)
../../../dev/sio/sio.c:1317: error: 'struct tty' has no member named 't_cflag'
../../../dev/sio/sio.c:1322: error: 'struct tty' has no member named 't_state'
../../../dev/sio/sio.c:1322: error: 'TS_CAN_BYPASS_L_RINT' undeclared (first use in this function)
../../../dev/sio/sio.c:1338: error: 'struct tty' has no member named 't_rawq'
../../../dev/sio/sio.c:1338: error: 'struct tty' has no member named 't_ihiwat'
../../../dev/sio/sio.c:1340: error: 'struct tty' has no member named 't_iflag'
../../../dev/sio/sio.c:1341: error: 'struct tty' has no member named 't_state'
../../../dev/sio/sio.c:1341: error: 'TS_TBLOCK' undeclared (first use in this function)
../../../dev/sio/sio.c:1342: warning: implicit declaration of function 'ttyblock'
../../../dev/sio/sio.c:1342: warning: nested extern declaration of 'ttyblock'
../../../dev/sio/sio.c:1344: warning: implicit declaration of function 'b_to_q'
../../../dev/sio/sio.c:1344: warning: nested extern declaration of 'b_to_q'
../../../dev/sio/sio.c:1344: error: 'struct tty' has no member named 't_rawq'
../../../dev/sio/sio.c:1346: error: 'tk_nin' undeclared (first use in this function)
../../../dev/sio/sio.c:1347: error: 'tk_rawcc' undeclared (first use in this function)
../../../dev/sio/sio.c:1348: error: 'struct tty' has no member named 't_rawcc'
../../../dev/sio/sio.c:1349: warning: implicit declaration of function 'ttwakeup'
../../../dev/sio/sio.c:1349: warning: nested extern declaration of 'ttwakeup'
../../../dev/sio/sio.c:1350: error: 'struct tty' has no member named 't_state'
../../../dev/sio/sio.c:1350: error: 'TS_TTSTOP' undeclared (first use in this function)
../../../dev/sio/sio.c:1351: error: 'struct tty' has no member named 't_iflag'
../../../dev/sio/sio.c:1352: error: 'struct tty' has no member named 't_cc'
../../../dev/sio/sio.c:1352: error: 'struct tty' has no member named 't_cc'
../../../dev/sio/sio.c:1353: error: 'struct tty' has no member named 't_state'
../../../dev/sio/sio.c:1354: error: 'struct tty' has no member named 't_lflag'
../../../dev/sio/sio.c:1372: error: 'TTY_BI' undeclared (first use in this function)
../../../dev/sio/sio.c:1374: error: 'TTY_FE' undeclared (first use in this function)
../../../dev/sio/sio.c:1376: error: 'TTY_OE' undeclared (first use in this function)
../../../dev/sio/sio.c:1378: error: 'TTY_PE' undeclared (first use in this function)
../../../dev/sio/sio.c:1380: warning: implicit declaration of function 'ttyld_rint'
../../../dev/sio/sio.c:1380: warning: nested extern declaration of 'ttyld_rint'
../../../dev/sio/sio.c:1393: error: 'struct tty' has no member named 't_state'
../../../dev/sio/sio.c: In function 'siointr1':
../../../dev/sio/sio.c:1566: error: 'struct tty' has no member named 't_iflag'
../../../dev/sio/sio.c:1570: error: 'struct tty' has no member named 't_iflag'
../../../dev/sio/sio.c:1573: error: 'struct tty' has no member named 't_state'
../../../dev/sio/sio.c:1573: error: 'TS_CAN_BYPASS_L_RINT' undeclared (first use in this function)
../../../dev/sio/sio.c:1575: error: 'struct tty' has no member named 't_iflag'
../../../dev/sio/sio.c:1580: error: 'struct tty' has no member named 't_hotchar'
../../../dev/sio/sio.c:1580: error: 'struct tty' has no member named 't_hotchar'
../../../dev/sio/sio.c:1586: error: 'struct tty' has no member named 't_do_timestamp'
../../../dev/sio/sio.c:1587: error: 'struct tty' has no member named 't_timestamp'
../../../dev/sio/sio.c: In function 'siopoll':
../../../dev/sio/sio.c:1766: warning: implicit declaration of function 'ttyld_start'
../../../dev/sio/sio.c:1766: warning: nested extern declaration of 'ttyld_start'
../../../dev/sio/sio.c: In function 'combreak':
../../../dev/sio/sio.c:1782: error: 'struct tty' has no member named 't_sc'
../../../dev/sio/sio.c: In function 'comparam':
../../../dev/sio/sio.c:1804: error: 'struct tty' has no member named 't_sc'
../../../dev/sio/sio.c:1809: error: 'struct tty' has no member named 't_ospeed'
../../../dev/sio/sio.c:1936: warning: implicit declaration of function 'ttyldoptim'
../../../dev/sio/sio.c:1936: warning: nested extern declaration of 'ttyldoptim'
../../../dev/sio/sio.c: In function 'siosetwater':
../../../dev/sio/sio.c:1991: error: 'struct tty' has no member named 't_ififosize'
../../../dev/sio/sio.c:1992: error: 'struct tty' has no member named 't_ispeedwat'
../../../dev/sio/sio.c:1993: error: 'struct tty' has no member named 't_ospeedwat'
../../../dev/sio/sio.c: In function 'comstart':
../../../dev/sio/sio.c:2029: error: 'struct tty' has no member named 't_sc'
../../../dev/sio/sio.c:2034: error: 'struct tty' has no member named 't_state'
../../../dev/sio/sio.c:2034: error: 'TS_TTSTOP' undeclared (first use in this function)
../../../dev/sio/sio.c:2038: error: 'struct tty' has no member named 't_state'
../../../dev/sio/sio.c:2038: error: 'TS_TBLOCK' undeclared (first use in this function)
../../../dev/sio/sio.c:2047: error: 'struct tty' has no member named 't_state'
../../../dev/sio/sio.c:2047: error: 'TS_TIMEOUT' undeclared (first use in this function)
../../../dev/sio/sio.c:2052: error: 'struct ttyoutq' has no member named 'c_cc'
../../../dev/sio/sio.c:2058: warning: implicit declaration of function 'q_to_b'
../../../dev/sio/sio.c:2058: warning: nested extern declaration of 'q_to_b'
../../../dev/sio/sio.c:2076: error: 'struct ttyoutq' has no member named 'c_cc'
../../../dev/sio/sio.c:2096: error: 'struct tty' has no member named 't_state'
../../../dev/sio/sio.c:2096: error: 'TS_BUSY' undeclared (first use in this function)
../../../dev/sio/sio.c: In function 'comstop':
../../../dev/sio/sio.c:2113: error: 'struct tty' has no member named 't_sc'
../../../dev/sio/sio.c:2130: error: 'struct tty' has no member named 't_state'
../../../dev/sio/sio.c:2130: error: 'TS_BUSY' undeclared (first use in this function)
../../../dev/sio/sio.c: In function 'commodem':
../../../dev/sio/sio.c:2153: error: 'struct tty' has no member named 't_sc'
../../../dev/sio/sio.c: In function 'siosettimeout':
../../../dev/sio/sio.c:2212: error: 'struct tty' has no member named 't_state'
../../../dev/sio/sio.c:2212: error: 'TS_ISOPEN' undeclared (first use in this function)
../../../dev/sio/sio.c: In function 'siocnset':
../../../dev/sio/sio.c:2306: error: 'struct consdev' has no member named 'cn_unit'
../../../dev/sio/sio.c: In function 'sio_cninit':
../../../dev/sio/sio.c:2529: error: 'struct consdev' has no member named 'cn_unit'
../../../dev/sio/sio.c: In function 'sio_cngetc':
../../../dev/sio/sio.c:2548: error: 'struct consdev' has no member named 'cn_unit'
../../../dev/sio/sio.c: In function 'sio_cnputc':
../../../dev/sio/sio.c:2579: error: 'struct consdev' has no member named 'cn_unit'
*** Error code 1