Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jan 2007 23:03:22 -0500
From:      Kris Kennaway <kris@obsecurity.org>
To:        Grant Wagner <kithera@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Can not compile kernel.
Message-ID:  <20070127040322.GA22543@xor.obsecurity.org>
In-Reply-To: <102481.72957.qm@web43125.mail.sp1.yahoo.com>
References:  <20070127014019.GA20824@xor.obsecurity.org> <102481.72957.qm@web43125.mail.sp1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 26, 2007 at 07:33:44PM -0800, Grant Wagner wrote:
> 
> 
> Kris Kennaway <kris@obsecurity.org> wrote: On Fri, Jan 26, 2007 at 04:40:13PM -0800, Grant Wagner wrote:
> > Hi, although have used various forms of unix for quite a while, I still consider myself a rather novice user. I have reciently reconfigured my machine to dual boot FreeBSD 6.2 and Windows (damn gaming addiction).
> > 
> > I have installed a basic system (only base, games, man and src distros) and modified my /etc/make.conf to look like the following...
> > 
> 
> > > CFLAGS= -O3 -pipe -funroll-loops -ffast-math
> > > COPTFLAGS= -O2 -pipe -funroll-loops -ffast-math
> 
> Step 0) Note the warning about changing these settings in
> /usr/share/examples/etc/make.conf and in the make.conf manpage.
> 
> Step 1) Revert those silly optimizations back to the default
> 
> Step 2) Rebuild everything to undo the damage
> 
> Kris
> 
> Well, in short, that worked. I have now build the kernel. I'm a little confused though and could use a bit of an explination.
>  
>  I thought only the COPTFLAGS options where used during kernel compilation and I had attempted to build with those commented out completely before. I can only guess that the CFLAGS are still in effect too.

CFLAGS are used for module builds.

>  Now I have a custom kernel which is failing to build. I've attached the config file for it, and it fails trying to build with references about ieee80211. The odd thing is I have no wireless in my box and have commented out all the wireless references. What else is dependant on them and should be commented out as well? The last bit of output is below.

Go back to GENERIC (you stripped out too much) or check the comments
more carefully...or note the error message and check whether you have
anything related still in your kernel.

>  if_ural.o(.text+0x66): In function `ural_free_tx_list':
>  : undefined reference to `ieee80211_free_node'
>  if_ural.o(.text+0x2d3): In function `ural_rxeof':
>  : undefined reference to `ieee80211_find_rxnode'

Kris

P.S. Please wrap your lines at 70 characters so that your emails may
be easily read.




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