From owner-freebsd-questions Mon Jan 13 16: 3: 4 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2D5A37B401 for ; Mon, 13 Jan 2003 16:03:02 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 930E843F13 for ; Mon, 13 Jan 2003 16:03:01 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a230.otenet.gr [212.205.215.230]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h0E02ab1000553; Tue, 14 Jan 2003 02:02:49 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id h0E02RQH004836; Tue, 14 Jan 2003 02:02:27 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id h0E02MJ4004835; Tue, 14 Jan 2003 02:02:22 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 14 Jan 2003 02:02:22 +0200 From: Giorgos Keramidas To: Scottman Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Kernel build returns Error code 1 Message-ID: <20030114000222.GD3695@gothmog.gr> References: <20030113182419.14899.qmail@web80302.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030113182419.14899.qmail@web80302.mail.yahoo.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2003-01-13 10:24, fiopp@yahoo.com (Scottman) wrote: > I'm trying to add sound support to my FreeBSD Release 4.6.2 kernel > but it will not build successfully. Here is the error output I get > (tail of make output): > > <<<<<<<<<<<<<<<<<<<<<<<<<< > touch hack.c > cc -elf -shared -nostdlib hack.c -o hack.So > rm -f hack.c > sh ../../conf/newvers.sh PATKERNEL > cc -c -O -pipe -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -c > linking kernel > if.o: In function `if_setlladdr': > if.o(.text+0x1bc4): undefined reference to > `arp_ifinit' > *** Error code 1 > > Stop in /usr/src/sys/compile/PATKERNEL. > >>>>>>>>>>>>>>>>>>>>>>> This is not a copy paste of the message. Nevertheless, you will need to add the `options ether' line that you removed from your GENERIC kernel to get things to work correctly. The `options ether' stuff is not used only by ethernet drivers. Since it doesn't cost much, I keep it in my kernel configs anyway. > I'm only one month old in the Unix/FreeBSD environment and don't > really know what should be done to fix this. I have included my > kernel at the end of this message for reference. I just know that I > get some warnings about some NET, INET and INET6 files... Could this > be related to these options? > > options INET #InterNETworking > options INET6 #IPv6 communications protocols Possibly. I suggest that you start with GENERIC and run buildkernel a few times deleting or adding options a few at a time. It's also a nice idea to avoid mailers that do evil things to whitespace, since it took me too long to read through the differences of your kernel and GENERIC to see if what I suspected (the `ether' stuff) was true. - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message