Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jun 2004 12:46:39 -0800
From:      Beecher Rintoul <akbeech@northwindcom.dyndns.org>
To:        freebsd-current@freebsd.org
Cc:        Robert Watson <rwatson@freebsd.org>
Subject:   Re: Kernel compile error
Message-ID:  <200406131246.39831.akbeech@northwindcom.dyndns.org>
In-Reply-To: <Pine.NEB.3.96L.1040613160424.9835F-100000@fledge.watson.org>
References:  <Pine.NEB.3.96L.1040613160424.9835F-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 13 June 2004 12:06 pm, Robert Watson wrote:
> 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.
>
I cvsuped today's sources and the compile now completed with no errors. I must 
have caught the last one in the middle of a commit.

Beech
---------------------------------------------------------------------------------------
Beech Rintoul - System Administrator - akbeech@northwindcom.dyndns.org
/"\   ASCII Ribbon Campaign  | NorthWind Communications
\ / - NO HTML/RTF in e-mail  | 201 East 9th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \ 
---------------------------------------------------------------------------------------













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