Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Mar 2001 15:53:05 +1030
From:      Matthew Thyer <thyerm@camtech.net.au>
To:        current@FreeBSD.org
Subject:   Problems compiling kern_mutex.c
Message-ID:  <3AA07FB9.CCA40541@camtech.net.au>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------2F6D02896ADA07B51218DA54
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

The last couple of kernel builds (with cvs updates and buildworlds
inbetween) have failed with messages as below.

I assume I need to add something to my kernel config file
so I have attached it.

cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/dev -I/usr/src/sys/../include -I/usr/src/sys/contrib/dev/acpica/Subsystem/Include  -D_KERNEL -include opt_global.h -elf  -mpreferred-stack-boundary=2  /usr/src/sys/kern/kern_mutex.c
/usr/src/sys/kern/kern_mutex.c:593: warning: no previous prototype for `_mtx_assert'
/usr/src/sys/kern/kern_mutex.c: In function `_mtx_assert':
/usr/src/sys/kern/kern_mutex.c:595: `MA_OWNED' undeclared (first use in this function)
/usr/src/sys/kern/kern_mutex.c:595: (Each undeclared identifier is reported only once
/usr/src/sys/kern/kern_mutex.c:595: for each function it appears in.)
/usr/src/sys/kern/kern_mutex.c:596: `MA_RECURSED' undeclared (first use in this function)
/usr/src/sys/kern/kern_mutex.c:597: `MA_NOTRECURSED' undeclared (first use in this function)
/usr/src/sys/kern/kern_mutex.c:610: `MA_NOTOWNED' undeclared (first use in this function)
/usr/src/sys/kern/kern_mutex.c:595: warning: unreachable code at beginning of switch statement
*** Error code 1


/usr/src/UPDATING provides no insight.
--------------2F6D02896ADA07B51218DA54
Content-Type: text/plain; charset=us-ascii;
 name="MATT"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="MATT"

# $FreeBSD: MATT,v 22.8 2001/03/03 15:26:00 +10:30 matt Exp $
# Based on: $FreeBSD: src/sys/i386/conf/NOTES,v 1.899 2001/03/02 05:57:39 markm Exp $

machine		i386
options		INCLUDE_CONFIG_FILE	# Include this file in kernel
cpu		I686_CPU
ident		MATT
maxusers	64

options 	INET			# InterNETworking
options 	INET6			# IPv6 communications protocols
options 	FFS			# Berkeley Fast Filesystem
options 	MFS			# Memory Filesystem
options 	NFS			# Network Filesystem
options 	MSDOSFS			# MSDOS Filesystem
options 	CD9660			# ISO 9660 Filesystem
options 	PROCFS			# Process filesystem
options 	DEVFS			# Devices filesystem
options 	SOFTUPDATES		# Enable FFS soft updates support
options 	COMPAT_43		# Compatible with BSD 4.3 [KEEP THIS!]
options 	SCSI_DELAY=300		# Delay (in ms) before probing SCSI
options		DDB			# Enable the kernel debugger
options 	KTRACE			# Kernel tracing (SYSV emul requirement)
options		INVARIANT_SUPPORT	# Support modules built with INVARIANTS
options 	UCONSOLE		# Allow users to grab the console
options 	USERCONFIG		# Boot -c editor
options 	VISUAL_USERCONFIG	# Visual boot -c editor
options 	SYSVSHM			# SYSV-style shared memory
options 	SYSVMSG			# SYSV-style message queues
options 	SYSVSEM			# SYSV-style semaphores
options		SHMALL=16384
options		SHMMAXPGS=4096
options		SHMMAX="(SHMMAXPGS*PAGE_SIZE+1)"
options		SHMSEG=50
options		SHMMNI=64
options		SEMMNI=32
options		SEMMNS=128
# System V compatible message queues
# Please note that the values provided here are used to test kernel
# building.  The defaults in the sources provide almost the same numbers.
# MSGSSZ must be a power of 2 between 8 and 1024.
options 	MSGMNB=2049	# Max number of chars in queue
options 	MSGMNI=41	# Max number of message queue identifiers
options 	MSGSEG=2049	# Max number of message segments
options 	MSGSSZ=16	# Size of a message segment
options 	MSGTQL=41	# Max number of messages in system
options 	P1003_1B		# Posix P1003_1B real-time extensions
options 	_KPOSIX_PRIORITY_SCHEDULING
options 	KBD_INSTALL_CDEV	# Install a CDEV entry in /dev

options		NCP			# NetWare Core protocol
options		NWFS			# Netware filesystem
options		VFS_AIO			# Real aio_* system calls
options 	ENABLE_VFS_IOOPT	# IO optimization through VM system when vfs.ioopt > 0

options		MSGBUF_SIZE=40960	# Size of the kernel message buffer
options 	COMPAT_LINUX		# Linux ABI emulation
options 	LINPROCFS		# Linux-like proc filesystem support
#options	ACCEPT_FILTER_DATA
#options	ACCEPT_FILTER_HTTP

# PECOFF module (Win32 Execution Format)
#options 	PECOFF_SUPPORT
#options 	PECOFF_DEBUG

device		isa
device		pci
device		agp
options		AUTO_EOI_1		# Save 0.7-1.25 usec for each interrupt

# Floppy drives
device		fdc

# ATA and ATAPI devices
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
options 	ATA_STATIC_ID		# Static device numbering
options 	ATA_ENABLE_ATAPI_DMA	# Enable DMA on ATAPI devices
options 	ATA_ENABLE_TAGS		# Enable tagged queuing if poss
options		ATA_ENABLE_WC		# Enable write caching (for tags)

# SCSI Controllers
device		sym		# NCR/Symbios Logic (newer chipsets)

# SCSI peripherals
device		scbus		# SCSI bus (required)
device		da		# Direct Access (disks)
device		sa		# Sequential Access (tape etc)
device		cd		# CD
device		pass		# Passthrough device (direct SCSI access)

device		vga
options		VESA

# splash screen/screen saver
device		splash

# syscons is the default console driver, resembling an SCO console
device		sc	1
options		MAXCONS=12		# Number of virtual consoles
options		SC_HISTORY_SIZE=400	# Number of history buffer lines
options		SC_DISABLE_REBOOT	# Disable Ctrl-Alt-Del reboot
options 	SC_NORM_ATTR="(FG_GREEN|BG_BLACK)"
options 	SC_NORM_REV_ATTR="(FG_YELLOW|BG_GREEN)"
options 	SC_KERNEL_CONS_ATTR="(FG_RED|BG_BLACK)"
options 	SC_KERNEL_CONS_REV_ATTR="(FG_BLACK|BG_RED)"
#options 	SC_DEBUG_LEVEL=5	# Syscons debug level
#options 	SC_RENDER_DEBUG	# syscons rendering debugging
#options 	VFS_BIO_DEBUG	# VFS buffer I/O debugging

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc	1
device		atkbd
device		psm

# Floating point support - do not disable.
device		npx

# Power management support (see LINT for more options)
device		apm

# Serial (COM) ports
device		sio
options 	BREAK_TO_DEBUGGER	# A BREAK on a comconsole goes to DDB

# Parallel port
device		ppc
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer

# PCI Ethernet NICs.
device		de		# DEC/Intel DC21x4x (``Tulip'')

# Pseudo devices - the number indicates how many units to allocated.
device		loop		# Network loopback
device		ether		# Ethernet support
device		tun		# Packet tunnel.
device		pty		# Pseudo-ttys (telnet etc)
device		vn		# Vnode (turn a file into a device)
device		gif	4	# IPv6 and IPv4 tunneling
device		faith	1	# IPv6-to-IPv4 relaying (translation)
device		random

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device		bpf		# Berkeley packet filter
options		PPP_FILTER	# Enable bpf filtering (needs bpf)

# USB support
device		uhci		# UHCI PCI->USB interface
device		usb		# USB Bus (required)
device		ukbd		# Keyboard
device		ums		# Mouse

# Sound
device		pcm
device		sbc
device		midi
device		seq

device		smbus
device		iicbus
device		iicbb
device		intpm
device		smb
device		ichsmb

device		bktr	1	# Brooktree BT848 support
options		BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_PAL

device		tdfx		# Enable 3Dfx Voodoo support
options		TDFX_LINUX	# Enable Linuxulator support

# ACPI support based on Intels ACPI component architecture
device		acpica

# pmtimer: Timer device driver for power management events (APM or ACPI)
device		pmtimer			# Adjust system timer at wakeup time


--------------2F6D02896ADA07B51218DA54--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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