From owner-freebsd-current@FreeBSD.ORG Sun Jun 13 20:07:41 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3EBF16A4CE for ; Sun, 13 Jun 2004 20:07:41 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9377743D48 for ; Sun, 13 Jun 2004 20:07:41 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i5DK65p8013469; Sun, 13 Jun 2004 16:06:05 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i5DK65U0013466; Sun, 13 Jun 2004 16:06:05 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Sun, 13 Jun 2004 16:06:04 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Beecher Rintoul In-Reply-To: <200406131120.36946.akbeech@northwindcom.dyndns.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: Kernel compile error X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 13 Jun 2004 20:07:42 -0000 On Sun, 13 Jun 2004, Beecher Rintoul wrote: > Got this error while compiling yesterday's -current: > > cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual > -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys > -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter > -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath > -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL > -include opt_global.h -fno-common -finline-limit=8000 > -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding > -Werror /usr/src/sys/net/raw_cb.c > /usr/src/sys/net/raw_cb.c: In function `raw_detach': > /usr/src/sys/net/raw_cb.c:97: warning: implicit declaration of function > `mtx_assert' > /usr/src/sys/net/raw_cb.c:97: error: `MA_OWNED' undeclared (first use in this > function) > /usr/src/sys/net/raw_cb.c:97: error: (Each undeclared identifier is reported > only once > /usr/src/sys/net/raw_cb.c:97: error: for each function it appears in.) > /usr/src/sys/net/raw_cb.c:97: warning: implicit declaration of function > `mtx_unlock' > *** Error code 1 Weird. The same change that introduced the call to SOCK_LOCK(so) in raw_cb.c also introduced an include of mutex.h, which provides the definition of MA_OWNED. Could you confirm the version number of raw_cb.c is 1.28? You might have some sort of bad snapshot version of the source tree, but if re-updating, doing a make depend, and then a make doesn't fix it, please let me know. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research