From owner-freebsd-questions@FreeBSD.ORG Sat Jan 27 04:03:28 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0161316A400 for ; Sat, 27 Jan 2007 04:03:28 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id E5FA413C46B for ; Sat, 27 Jan 2007 04:03:27 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id AF1981A4D81; Fri, 26 Jan 2007 20:03:27 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 5542D5127C; Fri, 26 Jan 2007 23:03:22 -0500 (EST) Date: Fri, 26 Jan 2007 23:03:22 -0500 From: Kris Kennaway To: Grant Wagner Message-ID: <20070127040322.GA22543@xor.obsecurity.org> References: <20070127014019.GA20824@xor.obsecurity.org> <102481.72957.qm@web43125.mail.sp1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <102481.72957.qm@web43125.mail.sp1.yahoo.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: Can not compile kernel. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jan 2007 04:03:28 -0000 On Fri, Jan 26, 2007 at 07:33:44PM -0800, Grant Wagner wrote: > > > Kris Kennaway 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.